anys.pb.h 126 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/util/internal/testdata/anys.proto
  3. #ifndef PROTOBUF_INCLUDED_google_2fprotobuf_2futil_2finternal_2ftestdata_2fanys_2eproto
  4. #define PROTOBUF_INCLUDED_google_2fprotobuf_2futil_2finternal_2ftestdata_2fanys_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/any.pb.h>
  32. #include <google/protobuf/struct.pb.h>
  33. #include <google/protobuf/timestamp.pb.h>
  34. #include <google/protobuf/duration.pb.h>
  35. #include <google/protobuf/wrappers.pb.h>
  36. // @@protoc_insertion_point(includes)
  37. #define PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fanys_2eproto
  38. namespace protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fanys_2eproto {
  39. // Internal implementation detail -- do not use these members.
  40. struct TableStruct {
  41. static const ::google::protobuf::internal::ParseTableField entries[];
  42. static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
  43. static const ::google::protobuf::internal::ParseTable schema[8];
  44. static const ::google::protobuf::internal::FieldMetadata field_metadata[];
  45. static const ::google::protobuf::internal::SerializationTable serialization_table[];
  46. static const ::google::protobuf::uint32 offsets[];
  47. };
  48. void AddDescriptors();
  49. } // namespace protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fanys_2eproto
  50. namespace google {
  51. namespace protobuf {
  52. namespace testing {
  53. class AnyIn;
  54. class AnyInDefaultTypeInternal;
  55. extern AnyInDefaultTypeInternal _AnyIn_default_instance_;
  56. class AnyM;
  57. class AnyMDefaultTypeInternal;
  58. extern AnyMDefaultTypeInternal _AnyM_default_instance_;
  59. class AnyOut;
  60. class AnyOutDefaultTypeInternal;
  61. extern AnyOutDefaultTypeInternal _AnyOut_default_instance_;
  62. class AnyTestCases;
  63. class AnyTestCasesDefaultTypeInternal;
  64. extern AnyTestCasesDefaultTypeInternal _AnyTestCases_default_instance_;
  65. class AnyWrapper;
  66. class AnyWrapperDefaultTypeInternal;
  67. extern AnyWrapperDefaultTypeInternal _AnyWrapper_default_instance_;
  68. class Data;
  69. class DataDefaultTypeInternal;
  70. extern DataDefaultTypeInternal _Data_default_instance_;
  71. class Data_MapDataEntry_DoNotUse;
  72. class Data_MapDataEntry_DoNotUseDefaultTypeInternal;
  73. extern Data_MapDataEntry_DoNotUseDefaultTypeInternal _Data_MapDataEntry_DoNotUse_default_instance_;
  74. class Imports;
  75. class ImportsDefaultTypeInternal;
  76. extern ImportsDefaultTypeInternal _Imports_default_instance_;
  77. } // namespace testing
  78. } // namespace protobuf
  79. } // namespace google
  80. namespace google {
  81. namespace protobuf {
  82. template<> ::google::protobuf::testing::AnyIn* Arena::CreateMaybeMessage<::google::protobuf::testing::AnyIn>(Arena*);
  83. template<> ::google::protobuf::testing::AnyM* Arena::CreateMaybeMessage<::google::protobuf::testing::AnyM>(Arena*);
  84. template<> ::google::protobuf::testing::AnyOut* Arena::CreateMaybeMessage<::google::protobuf::testing::AnyOut>(Arena*);
  85. template<> ::google::protobuf::testing::AnyTestCases* Arena::CreateMaybeMessage<::google::protobuf::testing::AnyTestCases>(Arena*);
  86. template<> ::google::protobuf::testing::AnyWrapper* Arena::CreateMaybeMessage<::google::protobuf::testing::AnyWrapper>(Arena*);
  87. template<> ::google::protobuf::testing::Data* Arena::CreateMaybeMessage<::google::protobuf::testing::Data>(Arena*);
  88. template<> ::google::protobuf::testing::Data_MapDataEntry_DoNotUse* Arena::CreateMaybeMessage<::google::protobuf::testing::Data_MapDataEntry_DoNotUse>(Arena*);
  89. template<> ::google::protobuf::testing::Imports* Arena::CreateMaybeMessage<::google::protobuf::testing::Imports>(Arena*);
  90. } // namespace protobuf
  91. } // namespace google
  92. namespace google {
  93. namespace protobuf {
  94. namespace testing {
  95. // ===================================================================
  96. class AnyTestCases : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.AnyTestCases) */ {
  97. public:
  98. AnyTestCases();
  99. virtual ~AnyTestCases();
  100. AnyTestCases(const AnyTestCases& from);
  101. inline AnyTestCases& operator=(const AnyTestCases& from) {
  102. CopyFrom(from);
  103. return *this;
  104. }
  105. #if LANG_CXX11
  106. AnyTestCases(AnyTestCases&& from) noexcept
  107. : AnyTestCases() {
  108. *this = ::std::move(from);
  109. }
  110. inline AnyTestCases& operator=(AnyTestCases&& from) noexcept {
  111. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  112. if (this != &from) InternalSwap(&from);
  113. } else {
  114. CopyFrom(from);
  115. }
  116. return *this;
  117. }
  118. #endif
  119. static const ::google::protobuf::Descriptor* descriptor();
  120. static const AnyTestCases& default_instance();
  121. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  122. static inline const AnyTestCases* internal_default_instance() {
  123. return reinterpret_cast<const AnyTestCases*>(
  124. &_AnyTestCases_default_instance_);
  125. }
  126. static constexpr int kIndexInFileMessages =
  127. 0;
  128. void Swap(AnyTestCases* other);
  129. friend void swap(AnyTestCases& a, AnyTestCases& b) {
  130. a.Swap(&b);
  131. }
  132. // implements Message ----------------------------------------------
  133. inline AnyTestCases* New() const final {
  134. return CreateMaybeMessage<AnyTestCases>(NULL);
  135. }
  136. AnyTestCases* New(::google::protobuf::Arena* arena) const final {
  137. return CreateMaybeMessage<AnyTestCases>(arena);
  138. }
  139. void CopyFrom(const ::google::protobuf::Message& from) final;
  140. void MergeFrom(const ::google::protobuf::Message& from) final;
  141. void CopyFrom(const AnyTestCases& from);
  142. void MergeFrom(const AnyTestCases& from);
  143. void Clear() final;
  144. bool IsInitialized() const final;
  145. size_t ByteSizeLong() const final;
  146. bool MergePartialFromCodedStream(
  147. ::google::protobuf::io::CodedInputStream* input) final;
  148. void SerializeWithCachedSizes(
  149. ::google::protobuf::io::CodedOutputStream* output) const final;
  150. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  151. bool deterministic, ::google::protobuf::uint8* target) const final;
  152. int GetCachedSize() const final { return _cached_size_.Get(); }
  153. private:
  154. void SharedCtor();
  155. void SharedDtor();
  156. void SetCachedSize(int size) const final;
  157. void InternalSwap(AnyTestCases* other);
  158. private:
  159. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  160. return NULL;
  161. }
  162. inline void* MaybeArenaPtr() const {
  163. return NULL;
  164. }
  165. public:
  166. ::google::protobuf::Metadata GetMetadata() const final;
  167. // nested types ----------------------------------------------------
  168. // accessors -------------------------------------------------------
  169. // .google.protobuf.testing.AnyWrapper empty_any = 1;
  170. bool has_empty_any() const;
  171. void clear_empty_any();
  172. static const int kEmptyAnyFieldNumber = 1;
  173. private:
  174. const ::google::protobuf::testing::AnyWrapper& _internal_empty_any() const;
  175. public:
  176. const ::google::protobuf::testing::AnyWrapper& empty_any() const;
  177. ::google::protobuf::testing::AnyWrapper* release_empty_any();
  178. ::google::protobuf::testing::AnyWrapper* mutable_empty_any();
  179. void set_allocated_empty_any(::google::protobuf::testing::AnyWrapper* empty_any);
  180. // .google.protobuf.testing.AnyWrapper type_only_any = 2;
  181. bool has_type_only_any() const;
  182. void clear_type_only_any();
  183. static const int kTypeOnlyAnyFieldNumber = 2;
  184. private:
  185. const ::google::protobuf::testing::AnyWrapper& _internal_type_only_any() const;
  186. public:
  187. const ::google::protobuf::testing::AnyWrapper& type_only_any() const;
  188. ::google::protobuf::testing::AnyWrapper* release_type_only_any();
  189. ::google::protobuf::testing::AnyWrapper* mutable_type_only_any();
  190. void set_allocated_type_only_any(::google::protobuf::testing::AnyWrapper* type_only_any);
  191. // .google.protobuf.testing.AnyWrapper wrapper_any = 3;
  192. bool has_wrapper_any() const;
  193. void clear_wrapper_any();
  194. static const int kWrapperAnyFieldNumber = 3;
  195. private:
  196. const ::google::protobuf::testing::AnyWrapper& _internal_wrapper_any() const;
  197. public:
  198. const ::google::protobuf::testing::AnyWrapper& wrapper_any() const;
  199. ::google::protobuf::testing::AnyWrapper* release_wrapper_any();
  200. ::google::protobuf::testing::AnyWrapper* mutable_wrapper_any();
  201. void set_allocated_wrapper_any(::google::protobuf::testing::AnyWrapper* wrapper_any);
  202. // .google.protobuf.testing.AnyWrapper any_with_timestamp_value = 4;
  203. bool has_any_with_timestamp_value() const;
  204. void clear_any_with_timestamp_value();
  205. static const int kAnyWithTimestampValueFieldNumber = 4;
  206. private:
  207. const ::google::protobuf::testing::AnyWrapper& _internal_any_with_timestamp_value() const;
  208. public:
  209. const ::google::protobuf::testing::AnyWrapper& any_with_timestamp_value() const;
  210. ::google::protobuf::testing::AnyWrapper* release_any_with_timestamp_value();
  211. ::google::protobuf::testing::AnyWrapper* mutable_any_with_timestamp_value();
  212. void set_allocated_any_with_timestamp_value(::google::protobuf::testing::AnyWrapper* any_with_timestamp_value);
  213. // .google.protobuf.testing.AnyWrapper any_with_duration_value = 5;
  214. bool has_any_with_duration_value() const;
  215. void clear_any_with_duration_value();
  216. static const int kAnyWithDurationValueFieldNumber = 5;
  217. private:
  218. const ::google::protobuf::testing::AnyWrapper& _internal_any_with_duration_value() const;
  219. public:
  220. const ::google::protobuf::testing::AnyWrapper& any_with_duration_value() const;
  221. ::google::protobuf::testing::AnyWrapper* release_any_with_duration_value();
  222. ::google::protobuf::testing::AnyWrapper* mutable_any_with_duration_value();
  223. void set_allocated_any_with_duration_value(::google::protobuf::testing::AnyWrapper* any_with_duration_value);
  224. // .google.protobuf.testing.AnyWrapper any_with_struct_value = 6;
  225. bool has_any_with_struct_value() const;
  226. void clear_any_with_struct_value();
  227. static const int kAnyWithStructValueFieldNumber = 6;
  228. private:
  229. const ::google::protobuf::testing::AnyWrapper& _internal_any_with_struct_value() const;
  230. public:
  231. const ::google::protobuf::testing::AnyWrapper& any_with_struct_value() const;
  232. ::google::protobuf::testing::AnyWrapper* release_any_with_struct_value();
  233. ::google::protobuf::testing::AnyWrapper* mutable_any_with_struct_value();
  234. void set_allocated_any_with_struct_value(::google::protobuf::testing::AnyWrapper* any_with_struct_value);
  235. // .google.protobuf.testing.AnyWrapper recursive_any = 7;
  236. bool has_recursive_any() const;
  237. void clear_recursive_any();
  238. static const int kRecursiveAnyFieldNumber = 7;
  239. private:
  240. const ::google::protobuf::testing::AnyWrapper& _internal_recursive_any() const;
  241. public:
  242. const ::google::protobuf::testing::AnyWrapper& recursive_any() const;
  243. ::google::protobuf::testing::AnyWrapper* release_recursive_any();
  244. ::google::protobuf::testing::AnyWrapper* mutable_recursive_any();
  245. void set_allocated_recursive_any(::google::protobuf::testing::AnyWrapper* recursive_any);
  246. // .google.protobuf.testing.AnyWrapper any_with_message_value = 8;
  247. bool has_any_with_message_value() const;
  248. void clear_any_with_message_value();
  249. static const int kAnyWithMessageValueFieldNumber = 8;
  250. private:
  251. const ::google::protobuf::testing::AnyWrapper& _internal_any_with_message_value() const;
  252. public:
  253. const ::google::protobuf::testing::AnyWrapper& any_with_message_value() const;
  254. ::google::protobuf::testing::AnyWrapper* release_any_with_message_value();
  255. ::google::protobuf::testing::AnyWrapper* mutable_any_with_message_value();
  256. void set_allocated_any_with_message_value(::google::protobuf::testing::AnyWrapper* any_with_message_value);
  257. // .google.protobuf.testing.AnyWrapper any_with_nested_message = 9;
  258. bool has_any_with_nested_message() const;
  259. void clear_any_with_nested_message();
  260. static const int kAnyWithNestedMessageFieldNumber = 9;
  261. private:
  262. const ::google::protobuf::testing::AnyWrapper& _internal_any_with_nested_message() const;
  263. public:
  264. const ::google::protobuf::testing::AnyWrapper& any_with_nested_message() const;
  265. ::google::protobuf::testing::AnyWrapper* release_any_with_nested_message();
  266. ::google::protobuf::testing::AnyWrapper* mutable_any_with_nested_message();
  267. void set_allocated_any_with_nested_message(::google::protobuf::testing::AnyWrapper* any_with_nested_message);
  268. // .google.protobuf.testing.AnyWrapper any_with_message_with_wrapper_type = 10;
  269. bool has_any_with_message_with_wrapper_type() const;
  270. void clear_any_with_message_with_wrapper_type();
  271. static const int kAnyWithMessageWithWrapperTypeFieldNumber = 10;
  272. private:
  273. const ::google::protobuf::testing::AnyWrapper& _internal_any_with_message_with_wrapper_type() const;
  274. public:
  275. const ::google::protobuf::testing::AnyWrapper& any_with_message_with_wrapper_type() const;
  276. ::google::protobuf::testing::AnyWrapper* release_any_with_message_with_wrapper_type();
  277. ::google::protobuf::testing::AnyWrapper* mutable_any_with_message_with_wrapper_type();
  278. void set_allocated_any_with_message_with_wrapper_type(::google::protobuf::testing::AnyWrapper* any_with_message_with_wrapper_type);
  279. // .google.protobuf.testing.AnyWrapper any_with_message_with_timestamp = 11;
  280. bool has_any_with_message_with_timestamp() const;
  281. void clear_any_with_message_with_timestamp();
  282. static const int kAnyWithMessageWithTimestampFieldNumber = 11;
  283. private:
  284. const ::google::protobuf::testing::AnyWrapper& _internal_any_with_message_with_timestamp() const;
  285. public:
  286. const ::google::protobuf::testing::AnyWrapper& any_with_message_with_timestamp() const;
  287. ::google::protobuf::testing::AnyWrapper* release_any_with_message_with_timestamp();
  288. ::google::protobuf::testing::AnyWrapper* mutable_any_with_message_with_timestamp();
  289. void set_allocated_any_with_message_with_timestamp(::google::protobuf::testing::AnyWrapper* any_with_message_with_timestamp);
  290. // .google.protobuf.testing.AnyWrapper any_with_message_containing_map = 12;
  291. bool has_any_with_message_containing_map() const;
  292. void clear_any_with_message_containing_map();
  293. static const int kAnyWithMessageContainingMapFieldNumber = 12;
  294. private:
  295. const ::google::protobuf::testing::AnyWrapper& _internal_any_with_message_containing_map() const;
  296. public:
  297. const ::google::protobuf::testing::AnyWrapper& any_with_message_containing_map() const;
  298. ::google::protobuf::testing::AnyWrapper* release_any_with_message_containing_map();
  299. ::google::protobuf::testing::AnyWrapper* mutable_any_with_message_containing_map();
  300. void set_allocated_any_with_message_containing_map(::google::protobuf::testing::AnyWrapper* any_with_message_containing_map);
  301. // .google.protobuf.testing.AnyWrapper any_with_message_containing_struct = 13;
  302. bool has_any_with_message_containing_struct() const;
  303. void clear_any_with_message_containing_struct();
  304. static const int kAnyWithMessageContainingStructFieldNumber = 13;
  305. private:
  306. const ::google::protobuf::testing::AnyWrapper& _internal_any_with_message_containing_struct() const;
  307. public:
  308. const ::google::protobuf::testing::AnyWrapper& any_with_message_containing_struct() const;
  309. ::google::protobuf::testing::AnyWrapper* release_any_with_message_containing_struct();
  310. ::google::protobuf::testing::AnyWrapper* mutable_any_with_message_containing_struct();
  311. void set_allocated_any_with_message_containing_struct(::google::protobuf::testing::AnyWrapper* any_with_message_containing_struct);
  312. // .google.protobuf.testing.AnyWrapper any_with_message_containing_repeated_message = 14;
  313. bool has_any_with_message_containing_repeated_message() const;
  314. void clear_any_with_message_containing_repeated_message();
  315. static const int kAnyWithMessageContainingRepeatedMessageFieldNumber = 14;
  316. private:
  317. const ::google::protobuf::testing::AnyWrapper& _internal_any_with_message_containing_repeated_message() const;
  318. public:
  319. const ::google::protobuf::testing::AnyWrapper& any_with_message_containing_repeated_message() const;
  320. ::google::protobuf::testing::AnyWrapper* release_any_with_message_containing_repeated_message();
  321. ::google::protobuf::testing::AnyWrapper* mutable_any_with_message_containing_repeated_message();
  322. void set_allocated_any_with_message_containing_repeated_message(::google::protobuf::testing::AnyWrapper* any_with_message_containing_repeated_message);
  323. // .google.protobuf.testing.AnyWrapper recursive_any_with_type_field_at_end = 15;
  324. bool has_recursive_any_with_type_field_at_end() const;
  325. void clear_recursive_any_with_type_field_at_end();
  326. static const int kRecursiveAnyWithTypeFieldAtEndFieldNumber = 15;
  327. private:
  328. const ::google::protobuf::testing::AnyWrapper& _internal_recursive_any_with_type_field_at_end() const;
  329. public:
  330. const ::google::protobuf::testing::AnyWrapper& recursive_any_with_type_field_at_end() const;
  331. ::google::protobuf::testing::AnyWrapper* release_recursive_any_with_type_field_at_end();
  332. ::google::protobuf::testing::AnyWrapper* mutable_recursive_any_with_type_field_at_end();
  333. void set_allocated_recursive_any_with_type_field_at_end(::google::protobuf::testing::AnyWrapper* recursive_any_with_type_field_at_end);
  334. // .google.protobuf.Any top_level_any = 50;
  335. bool has_top_level_any() const;
  336. void clear_top_level_any();
  337. static const int kTopLevelAnyFieldNumber = 50;
  338. private:
  339. const ::google::protobuf::Any& _internal_top_level_any() const;
  340. public:
  341. const ::google::protobuf::Any& top_level_any() const;
  342. ::google::protobuf::Any* release_top_level_any();
  343. ::google::protobuf::Any* mutable_top_level_any();
  344. void set_allocated_top_level_any(::google::protobuf::Any* top_level_any);
  345. // .google.protobuf.Any top_level_any_with_type_field_at_end = 51;
  346. bool has_top_level_any_with_type_field_at_end() const;
  347. void clear_top_level_any_with_type_field_at_end();
  348. static const int kTopLevelAnyWithTypeFieldAtEndFieldNumber = 51;
  349. private:
  350. const ::google::protobuf::Any& _internal_top_level_any_with_type_field_at_end() const;
  351. public:
  352. const ::google::protobuf::Any& top_level_any_with_type_field_at_end() const;
  353. ::google::protobuf::Any* release_top_level_any_with_type_field_at_end();
  354. ::google::protobuf::Any* mutable_top_level_any_with_type_field_at_end();
  355. void set_allocated_top_level_any_with_type_field_at_end(::google::protobuf::Any* top_level_any_with_type_field_at_end);
  356. // @@protoc_insertion_point(class_scope:google.protobuf.testing.AnyTestCases)
  357. private:
  358. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  359. ::google::protobuf::testing::AnyWrapper* empty_any_;
  360. ::google::protobuf::testing::AnyWrapper* type_only_any_;
  361. ::google::protobuf::testing::AnyWrapper* wrapper_any_;
  362. ::google::protobuf::testing::AnyWrapper* any_with_timestamp_value_;
  363. ::google::protobuf::testing::AnyWrapper* any_with_duration_value_;
  364. ::google::protobuf::testing::AnyWrapper* any_with_struct_value_;
  365. ::google::protobuf::testing::AnyWrapper* recursive_any_;
  366. ::google::protobuf::testing::AnyWrapper* any_with_message_value_;
  367. ::google::protobuf::testing::AnyWrapper* any_with_nested_message_;
  368. ::google::protobuf::testing::AnyWrapper* any_with_message_with_wrapper_type_;
  369. ::google::protobuf::testing::AnyWrapper* any_with_message_with_timestamp_;
  370. ::google::protobuf::testing::AnyWrapper* any_with_message_containing_map_;
  371. ::google::protobuf::testing::AnyWrapper* any_with_message_containing_struct_;
  372. ::google::protobuf::testing::AnyWrapper* any_with_message_containing_repeated_message_;
  373. ::google::protobuf::testing::AnyWrapper* recursive_any_with_type_field_at_end_;
  374. ::google::protobuf::Any* top_level_any_;
  375. ::google::protobuf::Any* top_level_any_with_type_field_at_end_;
  376. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  377. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fanys_2eproto::TableStruct;
  378. };
  379. // -------------------------------------------------------------------
  380. class AnyWrapper : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.AnyWrapper) */ {
  381. public:
  382. AnyWrapper();
  383. virtual ~AnyWrapper();
  384. AnyWrapper(const AnyWrapper& from);
  385. inline AnyWrapper& operator=(const AnyWrapper& from) {
  386. CopyFrom(from);
  387. return *this;
  388. }
  389. #if LANG_CXX11
  390. AnyWrapper(AnyWrapper&& from) noexcept
  391. : AnyWrapper() {
  392. *this = ::std::move(from);
  393. }
  394. inline AnyWrapper& operator=(AnyWrapper&& from) noexcept {
  395. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  396. if (this != &from) InternalSwap(&from);
  397. } else {
  398. CopyFrom(from);
  399. }
  400. return *this;
  401. }
  402. #endif
  403. static const ::google::protobuf::Descriptor* descriptor();
  404. static const AnyWrapper& default_instance();
  405. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  406. static inline const AnyWrapper* internal_default_instance() {
  407. return reinterpret_cast<const AnyWrapper*>(
  408. &_AnyWrapper_default_instance_);
  409. }
  410. static constexpr int kIndexInFileMessages =
  411. 1;
  412. void Swap(AnyWrapper* other);
  413. friend void swap(AnyWrapper& a, AnyWrapper& b) {
  414. a.Swap(&b);
  415. }
  416. // implements Message ----------------------------------------------
  417. inline AnyWrapper* New() const final {
  418. return CreateMaybeMessage<AnyWrapper>(NULL);
  419. }
  420. AnyWrapper* New(::google::protobuf::Arena* arena) const final {
  421. return CreateMaybeMessage<AnyWrapper>(arena);
  422. }
  423. void CopyFrom(const ::google::protobuf::Message& from) final;
  424. void MergeFrom(const ::google::protobuf::Message& from) final;
  425. void CopyFrom(const AnyWrapper& from);
  426. void MergeFrom(const AnyWrapper& from);
  427. void Clear() final;
  428. bool IsInitialized() const final;
  429. size_t ByteSizeLong() const final;
  430. bool MergePartialFromCodedStream(
  431. ::google::protobuf::io::CodedInputStream* input) final;
  432. void SerializeWithCachedSizes(
  433. ::google::protobuf::io::CodedOutputStream* output) const final;
  434. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  435. bool deterministic, ::google::protobuf::uint8* target) const final;
  436. int GetCachedSize() const final { return _cached_size_.Get(); }
  437. private:
  438. void SharedCtor();
  439. void SharedDtor();
  440. void SetCachedSize(int size) const final;
  441. void InternalSwap(AnyWrapper* other);
  442. private:
  443. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  444. return NULL;
  445. }
  446. inline void* MaybeArenaPtr() const {
  447. return NULL;
  448. }
  449. public:
  450. ::google::protobuf::Metadata GetMetadata() const final;
  451. // nested types ----------------------------------------------------
  452. // accessors -------------------------------------------------------
  453. // .google.protobuf.Any any = 1;
  454. bool has_any() const;
  455. void clear_any();
  456. static const int kAnyFieldNumber = 1;
  457. private:
  458. const ::google::protobuf::Any& _internal_any() const;
  459. public:
  460. const ::google::protobuf::Any& any() const;
  461. ::google::protobuf::Any* release_any();
  462. ::google::protobuf::Any* mutable_any();
  463. void set_allocated_any(::google::protobuf::Any* any);
  464. // @@protoc_insertion_point(class_scope:google.protobuf.testing.AnyWrapper)
  465. private:
  466. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  467. ::google::protobuf::Any* any_;
  468. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  469. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fanys_2eproto::TableStruct;
  470. };
  471. // -------------------------------------------------------------------
  472. class Imports : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.Imports) */ {
  473. public:
  474. Imports();
  475. virtual ~Imports();
  476. Imports(const Imports& from);
  477. inline Imports& operator=(const Imports& from) {
  478. CopyFrom(from);
  479. return *this;
  480. }
  481. #if LANG_CXX11
  482. Imports(Imports&& from) noexcept
  483. : Imports() {
  484. *this = ::std::move(from);
  485. }
  486. inline Imports& operator=(Imports&& from) noexcept {
  487. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  488. if (this != &from) InternalSwap(&from);
  489. } else {
  490. CopyFrom(from);
  491. }
  492. return *this;
  493. }
  494. #endif
  495. static const ::google::protobuf::Descriptor* descriptor();
  496. static const Imports& default_instance();
  497. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  498. static inline const Imports* internal_default_instance() {
  499. return reinterpret_cast<const Imports*>(
  500. &_Imports_default_instance_);
  501. }
  502. static constexpr int kIndexInFileMessages =
  503. 2;
  504. void Swap(Imports* other);
  505. friend void swap(Imports& a, Imports& b) {
  506. a.Swap(&b);
  507. }
  508. // implements Message ----------------------------------------------
  509. inline Imports* New() const final {
  510. return CreateMaybeMessage<Imports>(NULL);
  511. }
  512. Imports* New(::google::protobuf::Arena* arena) const final {
  513. return CreateMaybeMessage<Imports>(arena);
  514. }
  515. void CopyFrom(const ::google::protobuf::Message& from) final;
  516. void MergeFrom(const ::google::protobuf::Message& from) final;
  517. void CopyFrom(const Imports& from);
  518. void MergeFrom(const Imports& from);
  519. void Clear() final;
  520. bool IsInitialized() const final;
  521. size_t ByteSizeLong() const final;
  522. bool MergePartialFromCodedStream(
  523. ::google::protobuf::io::CodedInputStream* input) final;
  524. void SerializeWithCachedSizes(
  525. ::google::protobuf::io::CodedOutputStream* output) const final;
  526. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  527. bool deterministic, ::google::protobuf::uint8* target) const final;
  528. int GetCachedSize() const final { return _cached_size_.Get(); }
  529. private:
  530. void SharedCtor();
  531. void SharedDtor();
  532. void SetCachedSize(int size) const final;
  533. void InternalSwap(Imports* other);
  534. private:
  535. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  536. return NULL;
  537. }
  538. inline void* MaybeArenaPtr() const {
  539. return NULL;
  540. }
  541. public:
  542. ::google::protobuf::Metadata GetMetadata() const final;
  543. // nested types ----------------------------------------------------
  544. // accessors -------------------------------------------------------
  545. // .google.protobuf.DoubleValue dbl = 1;
  546. bool has_dbl() const;
  547. void clear_dbl();
  548. static const int kDblFieldNumber = 1;
  549. private:
  550. const ::google::protobuf::DoubleValue& _internal_dbl() const;
  551. public:
  552. const ::google::protobuf::DoubleValue& dbl() const;
  553. ::google::protobuf::DoubleValue* release_dbl();
  554. ::google::protobuf::DoubleValue* mutable_dbl();
  555. void set_allocated_dbl(::google::protobuf::DoubleValue* dbl);
  556. // .google.protobuf.Struct struct = 2;
  557. bool has_struct_() const;
  558. void clear_struct_();
  559. static const int kStructFieldNumber = 2;
  560. private:
  561. const ::google::protobuf::Struct& _internal_struct_() const;
  562. public:
  563. const ::google::protobuf::Struct& struct_() const;
  564. ::google::protobuf::Struct* release_struct_();
  565. ::google::protobuf::Struct* mutable_struct_();
  566. void set_allocated_struct_(::google::protobuf::Struct* struct_);
  567. // .google.protobuf.Timestamp timestamp = 3;
  568. bool has_timestamp() const;
  569. void clear_timestamp();
  570. static const int kTimestampFieldNumber = 3;
  571. private:
  572. const ::google::protobuf::Timestamp& _internal_timestamp() const;
  573. public:
  574. const ::google::protobuf::Timestamp& timestamp() const;
  575. ::google::protobuf::Timestamp* release_timestamp();
  576. ::google::protobuf::Timestamp* mutable_timestamp();
  577. void set_allocated_timestamp(::google::protobuf::Timestamp* timestamp);
  578. // .google.protobuf.Duration duration = 4;
  579. bool has_duration() const;
  580. void clear_duration();
  581. static const int kDurationFieldNumber = 4;
  582. private:
  583. const ::google::protobuf::Duration& _internal_duration() const;
  584. public:
  585. const ::google::protobuf::Duration& duration() const;
  586. ::google::protobuf::Duration* release_duration();
  587. ::google::protobuf::Duration* mutable_duration();
  588. void set_allocated_duration(::google::protobuf::Duration* duration);
  589. // .google.protobuf.Int32Value i32 = 5;
  590. bool has_i32() const;
  591. void clear_i32();
  592. static const int kI32FieldNumber = 5;
  593. private:
  594. const ::google::protobuf::Int32Value& _internal_i32() const;
  595. public:
  596. const ::google::protobuf::Int32Value& i32() const;
  597. ::google::protobuf::Int32Value* release_i32();
  598. ::google::protobuf::Int32Value* mutable_i32();
  599. void set_allocated_i32(::google::protobuf::Int32Value* i32);
  600. // .google.protobuf.testing.Data data = 100;
  601. bool has_data() const;
  602. void clear_data();
  603. static const int kDataFieldNumber = 100;
  604. private:
  605. const ::google::protobuf::testing::Data& _internal_data() const;
  606. public:
  607. const ::google::protobuf::testing::Data& data() const;
  608. ::google::protobuf::testing::Data* release_data();
  609. ::google::protobuf::testing::Data* mutable_data();
  610. void set_allocated_data(::google::protobuf::testing::Data* data);
  611. // @@protoc_insertion_point(class_scope:google.protobuf.testing.Imports)
  612. private:
  613. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  614. ::google::protobuf::DoubleValue* dbl_;
  615. ::google::protobuf::Struct* struct__;
  616. ::google::protobuf::Timestamp* timestamp_;
  617. ::google::protobuf::Duration* duration_;
  618. ::google::protobuf::Int32Value* i32_;
  619. ::google::protobuf::testing::Data* data_;
  620. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  621. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fanys_2eproto::TableStruct;
  622. };
  623. // -------------------------------------------------------------------
  624. class Data_MapDataEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<Data_MapDataEntry_DoNotUse,
  625. ::std::string, ::std::string,
  626. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  627. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  628. 0 > {
  629. public:
  630. typedef ::google::protobuf::internal::MapEntry<Data_MapDataEntry_DoNotUse,
  631. ::std::string, ::std::string,
  632. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  633. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  634. 0 > SuperType;
  635. Data_MapDataEntry_DoNotUse();
  636. Data_MapDataEntry_DoNotUse(::google::protobuf::Arena* arena);
  637. void MergeFrom(const Data_MapDataEntry_DoNotUse& other);
  638. static const Data_MapDataEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const Data_MapDataEntry_DoNotUse*>(&_Data_MapDataEntry_DoNotUse_default_instance_); }
  639. void MergeFrom(const ::google::protobuf::Message& other) final;
  640. ::google::protobuf::Metadata GetMetadata() const;
  641. };
  642. // -------------------------------------------------------------------
  643. class Data : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.Data) */ {
  644. public:
  645. Data();
  646. virtual ~Data();
  647. Data(const Data& from);
  648. inline Data& operator=(const Data& from) {
  649. CopyFrom(from);
  650. return *this;
  651. }
  652. #if LANG_CXX11
  653. Data(Data&& from) noexcept
  654. : Data() {
  655. *this = ::std::move(from);
  656. }
  657. inline Data& operator=(Data&& from) noexcept {
  658. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  659. if (this != &from) InternalSwap(&from);
  660. } else {
  661. CopyFrom(from);
  662. }
  663. return *this;
  664. }
  665. #endif
  666. static const ::google::protobuf::Descriptor* descriptor();
  667. static const Data& default_instance();
  668. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  669. static inline const Data* internal_default_instance() {
  670. return reinterpret_cast<const Data*>(
  671. &_Data_default_instance_);
  672. }
  673. static constexpr int kIndexInFileMessages =
  674. 4;
  675. void Swap(Data* other);
  676. friend void swap(Data& a, Data& b) {
  677. a.Swap(&b);
  678. }
  679. // implements Message ----------------------------------------------
  680. inline Data* New() const final {
  681. return CreateMaybeMessage<Data>(NULL);
  682. }
  683. Data* New(::google::protobuf::Arena* arena) const final {
  684. return CreateMaybeMessage<Data>(arena);
  685. }
  686. void CopyFrom(const ::google::protobuf::Message& from) final;
  687. void MergeFrom(const ::google::protobuf::Message& from) final;
  688. void CopyFrom(const Data& from);
  689. void MergeFrom(const Data& from);
  690. void Clear() final;
  691. bool IsInitialized() const final;
  692. size_t ByteSizeLong() const final;
  693. bool MergePartialFromCodedStream(
  694. ::google::protobuf::io::CodedInputStream* input) final;
  695. void SerializeWithCachedSizes(
  696. ::google::protobuf::io::CodedOutputStream* output) const final;
  697. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  698. bool deterministic, ::google::protobuf::uint8* target) const final;
  699. int GetCachedSize() const final { return _cached_size_.Get(); }
  700. private:
  701. void SharedCtor();
  702. void SharedDtor();
  703. void SetCachedSize(int size) const final;
  704. void InternalSwap(Data* other);
  705. private:
  706. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  707. return NULL;
  708. }
  709. inline void* MaybeArenaPtr() const {
  710. return NULL;
  711. }
  712. public:
  713. ::google::protobuf::Metadata GetMetadata() const final;
  714. // nested types ----------------------------------------------------
  715. // accessors -------------------------------------------------------
  716. // repeated string msgs = 3;
  717. int msgs_size() const;
  718. void clear_msgs();
  719. static const int kMsgsFieldNumber = 3;
  720. const ::std::string& msgs(int index) const;
  721. ::std::string* mutable_msgs(int index);
  722. void set_msgs(int index, const ::std::string& value);
  723. #if LANG_CXX11
  724. void set_msgs(int index, ::std::string&& value);
  725. #endif
  726. void set_msgs(int index, const char* value);
  727. void set_msgs(int index, const char* value, size_t size);
  728. ::std::string* add_msgs();
  729. void add_msgs(const ::std::string& value);
  730. #if LANG_CXX11
  731. void add_msgs(::std::string&& value);
  732. #endif
  733. void add_msgs(const char* value);
  734. void add_msgs(const char* value, size_t size);
  735. const ::google::protobuf::RepeatedPtrField< ::std::string>& msgs() const;
  736. ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_msgs();
  737. // map<string, string> map_data = 7;
  738. int map_data_size() const;
  739. void clear_map_data();
  740. static const int kMapDataFieldNumber = 7;
  741. const ::google::protobuf::Map< ::std::string, ::std::string >&
  742. map_data() const;
  743. ::google::protobuf::Map< ::std::string, ::std::string >*
  744. mutable_map_data();
  745. // repeated .google.protobuf.testing.Data repeated_data = 9;
  746. int repeated_data_size() const;
  747. void clear_repeated_data();
  748. static const int kRepeatedDataFieldNumber = 9;
  749. ::google::protobuf::testing::Data* mutable_repeated_data(int index);
  750. ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::Data >*
  751. mutable_repeated_data();
  752. const ::google::protobuf::testing::Data& repeated_data(int index) const;
  753. ::google::protobuf::testing::Data* add_repeated_data();
  754. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::Data >&
  755. repeated_data() const;
  756. // string str = 2;
  757. void clear_str();
  758. static const int kStrFieldNumber = 2;
  759. const ::std::string& str() const;
  760. void set_str(const ::std::string& value);
  761. #if LANG_CXX11
  762. void set_str(::std::string&& value);
  763. #endif
  764. void set_str(const char* value);
  765. void set_str(const char* value, size_t size);
  766. ::std::string* mutable_str();
  767. ::std::string* release_str();
  768. void set_allocated_str(::std::string* str);
  769. // .google.protobuf.testing.Data nested_data = 4;
  770. bool has_nested_data() const;
  771. void clear_nested_data();
  772. static const int kNestedDataFieldNumber = 4;
  773. private:
  774. const ::google::protobuf::testing::Data& _internal_nested_data() const;
  775. public:
  776. const ::google::protobuf::testing::Data& nested_data() const;
  777. ::google::protobuf::testing::Data* release_nested_data();
  778. ::google::protobuf::testing::Data* mutable_nested_data();
  779. void set_allocated_nested_data(::google::protobuf::testing::Data* nested_data);
  780. // .google.protobuf.Int32Value int_wrapper = 5;
  781. bool has_int_wrapper() const;
  782. void clear_int_wrapper();
  783. static const int kIntWrapperFieldNumber = 5;
  784. private:
  785. const ::google::protobuf::Int32Value& _internal_int_wrapper() const;
  786. public:
  787. const ::google::protobuf::Int32Value& int_wrapper() const;
  788. ::google::protobuf::Int32Value* release_int_wrapper();
  789. ::google::protobuf::Int32Value* mutable_int_wrapper();
  790. void set_allocated_int_wrapper(::google::protobuf::Int32Value* int_wrapper);
  791. // .google.protobuf.Timestamp time = 6;
  792. bool has_time() const;
  793. void clear_time();
  794. static const int kTimeFieldNumber = 6;
  795. private:
  796. const ::google::protobuf::Timestamp& _internal_time() const;
  797. public:
  798. const ::google::protobuf::Timestamp& time() const;
  799. ::google::protobuf::Timestamp* release_time();
  800. ::google::protobuf::Timestamp* mutable_time();
  801. void set_allocated_time(::google::protobuf::Timestamp* time);
  802. // .google.protobuf.Struct struct_data = 8;
  803. bool has_struct_data() const;
  804. void clear_struct_data();
  805. static const int kStructDataFieldNumber = 8;
  806. private:
  807. const ::google::protobuf::Struct& _internal_struct_data() const;
  808. public:
  809. const ::google::protobuf::Struct& struct_data() const;
  810. ::google::protobuf::Struct* release_struct_data();
  811. ::google::protobuf::Struct* mutable_struct_data();
  812. void set_allocated_struct_data(::google::protobuf::Struct* struct_data);
  813. // int32 attr = 1;
  814. void clear_attr();
  815. static const int kAttrFieldNumber = 1;
  816. ::google::protobuf::int32 attr() const;
  817. void set_attr(::google::protobuf::int32 value);
  818. // @@protoc_insertion_point(class_scope:google.protobuf.testing.Data)
  819. private:
  820. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  821. ::google::protobuf::RepeatedPtrField< ::std::string> msgs_;
  822. ::google::protobuf::internal::MapField<
  823. Data_MapDataEntry_DoNotUse,
  824. ::std::string, ::std::string,
  825. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  826. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  827. 0 > map_data_;
  828. ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::Data > repeated_data_;
  829. ::google::protobuf::internal::ArenaStringPtr str_;
  830. ::google::protobuf::testing::Data* nested_data_;
  831. ::google::protobuf::Int32Value* int_wrapper_;
  832. ::google::protobuf::Timestamp* time_;
  833. ::google::protobuf::Struct* struct_data_;
  834. ::google::protobuf::int32 attr_;
  835. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  836. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fanys_2eproto::TableStruct;
  837. };
  838. // -------------------------------------------------------------------
  839. class AnyIn : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.AnyIn) */ {
  840. public:
  841. AnyIn();
  842. virtual ~AnyIn();
  843. AnyIn(const AnyIn& from);
  844. inline AnyIn& operator=(const AnyIn& from) {
  845. CopyFrom(from);
  846. return *this;
  847. }
  848. #if LANG_CXX11
  849. AnyIn(AnyIn&& from) noexcept
  850. : AnyIn() {
  851. *this = ::std::move(from);
  852. }
  853. inline AnyIn& operator=(AnyIn&& from) noexcept {
  854. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  855. if (this != &from) InternalSwap(&from);
  856. } else {
  857. CopyFrom(from);
  858. }
  859. return *this;
  860. }
  861. #endif
  862. static const ::google::protobuf::Descriptor* descriptor();
  863. static const AnyIn& default_instance();
  864. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  865. static inline const AnyIn* internal_default_instance() {
  866. return reinterpret_cast<const AnyIn*>(
  867. &_AnyIn_default_instance_);
  868. }
  869. static constexpr int kIndexInFileMessages =
  870. 5;
  871. void Swap(AnyIn* other);
  872. friend void swap(AnyIn& a, AnyIn& b) {
  873. a.Swap(&b);
  874. }
  875. // implements Message ----------------------------------------------
  876. inline AnyIn* New() const final {
  877. return CreateMaybeMessage<AnyIn>(NULL);
  878. }
  879. AnyIn* New(::google::protobuf::Arena* arena) const final {
  880. return CreateMaybeMessage<AnyIn>(arena);
  881. }
  882. void CopyFrom(const ::google::protobuf::Message& from) final;
  883. void MergeFrom(const ::google::protobuf::Message& from) final;
  884. void CopyFrom(const AnyIn& from);
  885. void MergeFrom(const AnyIn& from);
  886. void Clear() final;
  887. bool IsInitialized() const final;
  888. size_t ByteSizeLong() const final;
  889. bool MergePartialFromCodedStream(
  890. ::google::protobuf::io::CodedInputStream* input) final;
  891. void SerializeWithCachedSizes(
  892. ::google::protobuf::io::CodedOutputStream* output) const final;
  893. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  894. bool deterministic, ::google::protobuf::uint8* target) const final;
  895. int GetCachedSize() const final { return _cached_size_.Get(); }
  896. private:
  897. void SharedCtor();
  898. void SharedDtor();
  899. void SetCachedSize(int size) const final;
  900. void InternalSwap(AnyIn* other);
  901. private:
  902. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  903. return NULL;
  904. }
  905. inline void* MaybeArenaPtr() const {
  906. return NULL;
  907. }
  908. public:
  909. ::google::protobuf::Metadata GetMetadata() const final;
  910. // nested types ----------------------------------------------------
  911. // accessors -------------------------------------------------------
  912. // string something = 1;
  913. void clear_something();
  914. static const int kSomethingFieldNumber = 1;
  915. const ::std::string& something() const;
  916. void set_something(const ::std::string& value);
  917. #if LANG_CXX11
  918. void set_something(::std::string&& value);
  919. #endif
  920. void set_something(const char* value);
  921. void set_something(const char* value, size_t size);
  922. ::std::string* mutable_something();
  923. ::std::string* release_something();
  924. void set_allocated_something(::std::string* something);
  925. // .google.protobuf.Any any = 2;
  926. bool has_any() const;
  927. void clear_any();
  928. static const int kAnyFieldNumber = 2;
  929. private:
  930. const ::google::protobuf::Any& _internal_any() const;
  931. public:
  932. const ::google::protobuf::Any& any() const;
  933. ::google::protobuf::Any* release_any();
  934. ::google::protobuf::Any* mutable_any();
  935. void set_allocated_any(::google::protobuf::Any* any);
  936. // @@protoc_insertion_point(class_scope:google.protobuf.testing.AnyIn)
  937. private:
  938. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  939. ::google::protobuf::internal::ArenaStringPtr something_;
  940. ::google::protobuf::Any* any_;
  941. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  942. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fanys_2eproto::TableStruct;
  943. };
  944. // -------------------------------------------------------------------
  945. class AnyOut : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.AnyOut) */ {
  946. public:
  947. AnyOut();
  948. virtual ~AnyOut();
  949. AnyOut(const AnyOut& from);
  950. inline AnyOut& operator=(const AnyOut& from) {
  951. CopyFrom(from);
  952. return *this;
  953. }
  954. #if LANG_CXX11
  955. AnyOut(AnyOut&& from) noexcept
  956. : AnyOut() {
  957. *this = ::std::move(from);
  958. }
  959. inline AnyOut& operator=(AnyOut&& from) noexcept {
  960. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  961. if (this != &from) InternalSwap(&from);
  962. } else {
  963. CopyFrom(from);
  964. }
  965. return *this;
  966. }
  967. #endif
  968. static const ::google::protobuf::Descriptor* descriptor();
  969. static const AnyOut& default_instance();
  970. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  971. static inline const AnyOut* internal_default_instance() {
  972. return reinterpret_cast<const AnyOut*>(
  973. &_AnyOut_default_instance_);
  974. }
  975. static constexpr int kIndexInFileMessages =
  976. 6;
  977. void Swap(AnyOut* other);
  978. friend void swap(AnyOut& a, AnyOut& b) {
  979. a.Swap(&b);
  980. }
  981. // implements Message ----------------------------------------------
  982. inline AnyOut* New() const final {
  983. return CreateMaybeMessage<AnyOut>(NULL);
  984. }
  985. AnyOut* New(::google::protobuf::Arena* arena) const final {
  986. return CreateMaybeMessage<AnyOut>(arena);
  987. }
  988. void CopyFrom(const ::google::protobuf::Message& from) final;
  989. void MergeFrom(const ::google::protobuf::Message& from) final;
  990. void CopyFrom(const AnyOut& from);
  991. void MergeFrom(const AnyOut& from);
  992. void Clear() final;
  993. bool IsInitialized() const final;
  994. size_t ByteSizeLong() const final;
  995. bool MergePartialFromCodedStream(
  996. ::google::protobuf::io::CodedInputStream* input) final;
  997. void SerializeWithCachedSizes(
  998. ::google::protobuf::io::CodedOutputStream* output) const final;
  999. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1000. bool deterministic, ::google::protobuf::uint8* target) const final;
  1001. int GetCachedSize() const final { return _cached_size_.Get(); }
  1002. private:
  1003. void SharedCtor();
  1004. void SharedDtor();
  1005. void SetCachedSize(int size) const final;
  1006. void InternalSwap(AnyOut* other);
  1007. private:
  1008. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1009. return NULL;
  1010. }
  1011. inline void* MaybeArenaPtr() const {
  1012. return NULL;
  1013. }
  1014. public:
  1015. ::google::protobuf::Metadata GetMetadata() const final;
  1016. // nested types ----------------------------------------------------
  1017. // accessors -------------------------------------------------------
  1018. // .google.protobuf.Any any = 1;
  1019. bool has_any() const;
  1020. void clear_any();
  1021. static const int kAnyFieldNumber = 1;
  1022. private:
  1023. const ::google::protobuf::Any& _internal_any() const;
  1024. public:
  1025. const ::google::protobuf::Any& any() const;
  1026. ::google::protobuf::Any* release_any();
  1027. ::google::protobuf::Any* mutable_any();
  1028. void set_allocated_any(::google::protobuf::Any* any);
  1029. // @@protoc_insertion_point(class_scope:google.protobuf.testing.AnyOut)
  1030. private:
  1031. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1032. ::google::protobuf::Any* any_;
  1033. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1034. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fanys_2eproto::TableStruct;
  1035. };
  1036. // -------------------------------------------------------------------
  1037. class AnyM : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.AnyM) */ {
  1038. public:
  1039. AnyM();
  1040. virtual ~AnyM();
  1041. AnyM(const AnyM& from);
  1042. inline AnyM& operator=(const AnyM& from) {
  1043. CopyFrom(from);
  1044. return *this;
  1045. }
  1046. #if LANG_CXX11
  1047. AnyM(AnyM&& from) noexcept
  1048. : AnyM() {
  1049. *this = ::std::move(from);
  1050. }
  1051. inline AnyM& operator=(AnyM&& from) noexcept {
  1052. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1053. if (this != &from) InternalSwap(&from);
  1054. } else {
  1055. CopyFrom(from);
  1056. }
  1057. return *this;
  1058. }
  1059. #endif
  1060. static const ::google::protobuf::Descriptor* descriptor();
  1061. static const AnyM& default_instance();
  1062. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1063. static inline const AnyM* internal_default_instance() {
  1064. return reinterpret_cast<const AnyM*>(
  1065. &_AnyM_default_instance_);
  1066. }
  1067. static constexpr int kIndexInFileMessages =
  1068. 7;
  1069. void Swap(AnyM* other);
  1070. friend void swap(AnyM& a, AnyM& b) {
  1071. a.Swap(&b);
  1072. }
  1073. // implements Message ----------------------------------------------
  1074. inline AnyM* New() const final {
  1075. return CreateMaybeMessage<AnyM>(NULL);
  1076. }
  1077. AnyM* New(::google::protobuf::Arena* arena) const final {
  1078. return CreateMaybeMessage<AnyM>(arena);
  1079. }
  1080. void CopyFrom(const ::google::protobuf::Message& from) final;
  1081. void MergeFrom(const ::google::protobuf::Message& from) final;
  1082. void CopyFrom(const AnyM& from);
  1083. void MergeFrom(const AnyM& from);
  1084. void Clear() final;
  1085. bool IsInitialized() const final;
  1086. size_t ByteSizeLong() const final;
  1087. bool MergePartialFromCodedStream(
  1088. ::google::protobuf::io::CodedInputStream* input) final;
  1089. void SerializeWithCachedSizes(
  1090. ::google::protobuf::io::CodedOutputStream* output) const final;
  1091. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1092. bool deterministic, ::google::protobuf::uint8* target) const final;
  1093. int GetCachedSize() const final { return _cached_size_.Get(); }
  1094. private:
  1095. void SharedCtor();
  1096. void SharedDtor();
  1097. void SetCachedSize(int size) const final;
  1098. void InternalSwap(AnyM* other);
  1099. private:
  1100. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1101. return NULL;
  1102. }
  1103. inline void* MaybeArenaPtr() const {
  1104. return NULL;
  1105. }
  1106. public:
  1107. ::google::protobuf::Metadata GetMetadata() const final;
  1108. // nested types ----------------------------------------------------
  1109. // accessors -------------------------------------------------------
  1110. // string foo = 1;
  1111. void clear_foo();
  1112. static const int kFooFieldNumber = 1;
  1113. const ::std::string& foo() const;
  1114. void set_foo(const ::std::string& value);
  1115. #if LANG_CXX11
  1116. void set_foo(::std::string&& value);
  1117. #endif
  1118. void set_foo(const char* value);
  1119. void set_foo(const char* value, size_t size);
  1120. ::std::string* mutable_foo();
  1121. ::std::string* release_foo();
  1122. void set_allocated_foo(::std::string* foo);
  1123. // @@protoc_insertion_point(class_scope:google.protobuf.testing.AnyM)
  1124. private:
  1125. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1126. ::google::protobuf::internal::ArenaStringPtr foo_;
  1127. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1128. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fanys_2eproto::TableStruct;
  1129. };
  1130. // ===================================================================
  1131. // ===================================================================
  1132. #ifdef __GNUC__
  1133. #pragma GCC diagnostic push
  1134. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  1135. #endif // __GNUC__
  1136. // AnyTestCases
  1137. // .google.protobuf.testing.AnyWrapper empty_any = 1;
  1138. inline bool AnyTestCases::has_empty_any() const {
  1139. return this != internal_default_instance() && empty_any_ != NULL;
  1140. }
  1141. inline void AnyTestCases::clear_empty_any() {
  1142. if (GetArenaNoVirtual() == NULL && empty_any_ != NULL) {
  1143. delete empty_any_;
  1144. }
  1145. empty_any_ = NULL;
  1146. }
  1147. inline const ::google::protobuf::testing::AnyWrapper& AnyTestCases::_internal_empty_any() const {
  1148. return *empty_any_;
  1149. }
  1150. inline const ::google::protobuf::testing::AnyWrapper& AnyTestCases::empty_any() const {
  1151. const ::google::protobuf::testing::AnyWrapper* p = empty_any_;
  1152. // @@protoc_insertion_point(field_get:google.protobuf.testing.AnyTestCases.empty_any)
  1153. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::AnyWrapper*>(
  1154. &::google::protobuf::testing::_AnyWrapper_default_instance_);
  1155. }
  1156. inline ::google::protobuf::testing::AnyWrapper* AnyTestCases::release_empty_any() {
  1157. // @@protoc_insertion_point(field_release:google.protobuf.testing.AnyTestCases.empty_any)
  1158. ::google::protobuf::testing::AnyWrapper* temp = empty_any_;
  1159. empty_any_ = NULL;
  1160. return temp;
  1161. }
  1162. inline ::google::protobuf::testing::AnyWrapper* AnyTestCases::mutable_empty_any() {
  1163. if (empty_any_ == NULL) {
  1164. auto* p = CreateMaybeMessage<::google::protobuf::testing::AnyWrapper>(GetArenaNoVirtual());
  1165. empty_any_ = p;
  1166. }
  1167. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.AnyTestCases.empty_any)
  1168. return empty_any_;
  1169. }
  1170. inline void AnyTestCases::set_allocated_empty_any(::google::protobuf::testing::AnyWrapper* empty_any) {
  1171. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1172. if (message_arena == NULL) {
  1173. delete empty_any_;
  1174. }
  1175. if (empty_any) {
  1176. ::google::protobuf::Arena* submessage_arena = NULL;
  1177. if (message_arena != submessage_arena) {
  1178. empty_any = ::google::protobuf::internal::GetOwnedMessage(
  1179. message_arena, empty_any, submessage_arena);
  1180. }
  1181. } else {
  1182. }
  1183. empty_any_ = empty_any;
  1184. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.AnyTestCases.empty_any)
  1185. }
  1186. // .google.protobuf.testing.AnyWrapper type_only_any = 2;
  1187. inline bool AnyTestCases::has_type_only_any() const {
  1188. return this != internal_default_instance() && type_only_any_ != NULL;
  1189. }
  1190. inline void AnyTestCases::clear_type_only_any() {
  1191. if (GetArenaNoVirtual() == NULL && type_only_any_ != NULL) {
  1192. delete type_only_any_;
  1193. }
  1194. type_only_any_ = NULL;
  1195. }
  1196. inline const ::google::protobuf::testing::AnyWrapper& AnyTestCases::_internal_type_only_any() const {
  1197. return *type_only_any_;
  1198. }
  1199. inline const ::google::protobuf::testing::AnyWrapper& AnyTestCases::type_only_any() const {
  1200. const ::google::protobuf::testing::AnyWrapper* p = type_only_any_;
  1201. // @@protoc_insertion_point(field_get:google.protobuf.testing.AnyTestCases.type_only_any)
  1202. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::AnyWrapper*>(
  1203. &::google::protobuf::testing::_AnyWrapper_default_instance_);
  1204. }
  1205. inline ::google::protobuf::testing::AnyWrapper* AnyTestCases::release_type_only_any() {
  1206. // @@protoc_insertion_point(field_release:google.protobuf.testing.AnyTestCases.type_only_any)
  1207. ::google::protobuf::testing::AnyWrapper* temp = type_only_any_;
  1208. type_only_any_ = NULL;
  1209. return temp;
  1210. }
  1211. inline ::google::protobuf::testing::AnyWrapper* AnyTestCases::mutable_type_only_any() {
  1212. if (type_only_any_ == NULL) {
  1213. auto* p = CreateMaybeMessage<::google::protobuf::testing::AnyWrapper>(GetArenaNoVirtual());
  1214. type_only_any_ = p;
  1215. }
  1216. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.AnyTestCases.type_only_any)
  1217. return type_only_any_;
  1218. }
  1219. inline void AnyTestCases::set_allocated_type_only_any(::google::protobuf::testing::AnyWrapper* type_only_any) {
  1220. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1221. if (message_arena == NULL) {
  1222. delete type_only_any_;
  1223. }
  1224. if (type_only_any) {
  1225. ::google::protobuf::Arena* submessage_arena = NULL;
  1226. if (message_arena != submessage_arena) {
  1227. type_only_any = ::google::protobuf::internal::GetOwnedMessage(
  1228. message_arena, type_only_any, submessage_arena);
  1229. }
  1230. } else {
  1231. }
  1232. type_only_any_ = type_only_any;
  1233. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.AnyTestCases.type_only_any)
  1234. }
  1235. // .google.protobuf.testing.AnyWrapper wrapper_any = 3;
  1236. inline bool AnyTestCases::has_wrapper_any() const {
  1237. return this != internal_default_instance() && wrapper_any_ != NULL;
  1238. }
  1239. inline void AnyTestCases::clear_wrapper_any() {
  1240. if (GetArenaNoVirtual() == NULL && wrapper_any_ != NULL) {
  1241. delete wrapper_any_;
  1242. }
  1243. wrapper_any_ = NULL;
  1244. }
  1245. inline const ::google::protobuf::testing::AnyWrapper& AnyTestCases::_internal_wrapper_any() const {
  1246. return *wrapper_any_;
  1247. }
  1248. inline const ::google::protobuf::testing::AnyWrapper& AnyTestCases::wrapper_any() const {
  1249. const ::google::protobuf::testing::AnyWrapper* p = wrapper_any_;
  1250. // @@protoc_insertion_point(field_get:google.protobuf.testing.AnyTestCases.wrapper_any)
  1251. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::AnyWrapper*>(
  1252. &::google::protobuf::testing::_AnyWrapper_default_instance_);
  1253. }
  1254. inline ::google::protobuf::testing::AnyWrapper* AnyTestCases::release_wrapper_any() {
  1255. // @@protoc_insertion_point(field_release:google.protobuf.testing.AnyTestCases.wrapper_any)
  1256. ::google::protobuf::testing::AnyWrapper* temp = wrapper_any_;
  1257. wrapper_any_ = NULL;
  1258. return temp;
  1259. }
  1260. inline ::google::protobuf::testing::AnyWrapper* AnyTestCases::mutable_wrapper_any() {
  1261. if (wrapper_any_ == NULL) {
  1262. auto* p = CreateMaybeMessage<::google::protobuf::testing::AnyWrapper>(GetArenaNoVirtual());
  1263. wrapper_any_ = p;
  1264. }
  1265. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.AnyTestCases.wrapper_any)
  1266. return wrapper_any_;
  1267. }
  1268. inline void AnyTestCases::set_allocated_wrapper_any(::google::protobuf::testing::AnyWrapper* wrapper_any) {
  1269. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1270. if (message_arena == NULL) {
  1271. delete wrapper_any_;
  1272. }
  1273. if (wrapper_any) {
  1274. ::google::protobuf::Arena* submessage_arena = NULL;
  1275. if (message_arena != submessage_arena) {
  1276. wrapper_any = ::google::protobuf::internal::GetOwnedMessage(
  1277. message_arena, wrapper_any, submessage_arena);
  1278. }
  1279. } else {
  1280. }
  1281. wrapper_any_ = wrapper_any;
  1282. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.AnyTestCases.wrapper_any)
  1283. }
  1284. // .google.protobuf.testing.AnyWrapper any_with_timestamp_value = 4;
  1285. inline bool AnyTestCases::has_any_with_timestamp_value() const {
  1286. return this != internal_default_instance() && any_with_timestamp_value_ != NULL;
  1287. }
  1288. inline void AnyTestCases::clear_any_with_timestamp_value() {
  1289. if (GetArenaNoVirtual() == NULL && any_with_timestamp_value_ != NULL) {
  1290. delete any_with_timestamp_value_;
  1291. }
  1292. any_with_timestamp_value_ = NULL;
  1293. }
  1294. inline const ::google::protobuf::testing::AnyWrapper& AnyTestCases::_internal_any_with_timestamp_value() const {
  1295. return *any_with_timestamp_value_;
  1296. }
  1297. inline const ::google::protobuf::testing::AnyWrapper& AnyTestCases::any_with_timestamp_value() const {
  1298. const ::google::protobuf::testing::AnyWrapper* p = any_with_timestamp_value_;
  1299. // @@protoc_insertion_point(field_get:google.protobuf.testing.AnyTestCases.any_with_timestamp_value)
  1300. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::AnyWrapper*>(
  1301. &::google::protobuf::testing::_AnyWrapper_default_instance_);
  1302. }
  1303. inline ::google::protobuf::testing::AnyWrapper* AnyTestCases::release_any_with_timestamp_value() {
  1304. // @@protoc_insertion_point(field_release:google.protobuf.testing.AnyTestCases.any_with_timestamp_value)
  1305. ::google::protobuf::testing::AnyWrapper* temp = any_with_timestamp_value_;
  1306. any_with_timestamp_value_ = NULL;
  1307. return temp;
  1308. }
  1309. inline ::google::protobuf::testing::AnyWrapper* AnyTestCases::mutable_any_with_timestamp_value() {
  1310. if (any_with_timestamp_value_ == NULL) {
  1311. auto* p = CreateMaybeMessage<::google::protobuf::testing::AnyWrapper>(GetArenaNoVirtual());
  1312. any_with_timestamp_value_ = p;
  1313. }
  1314. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.AnyTestCases.any_with_timestamp_value)
  1315. return any_with_timestamp_value_;
  1316. }
  1317. inline void AnyTestCases::set_allocated_any_with_timestamp_value(::google::protobuf::testing::AnyWrapper* any_with_timestamp_value) {
  1318. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1319. if (message_arena == NULL) {
  1320. delete any_with_timestamp_value_;
  1321. }
  1322. if (any_with_timestamp_value) {
  1323. ::google::protobuf::Arena* submessage_arena = NULL;
  1324. if (message_arena != submessage_arena) {
  1325. any_with_timestamp_value = ::google::protobuf::internal::GetOwnedMessage(
  1326. message_arena, any_with_timestamp_value, submessage_arena);
  1327. }
  1328. } else {
  1329. }
  1330. any_with_timestamp_value_ = any_with_timestamp_value;
  1331. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.AnyTestCases.any_with_timestamp_value)
  1332. }
  1333. // .google.protobuf.testing.AnyWrapper any_with_duration_value = 5;
  1334. inline bool AnyTestCases::has_any_with_duration_value() const {
  1335. return this != internal_default_instance() && any_with_duration_value_ != NULL;
  1336. }
  1337. inline void AnyTestCases::clear_any_with_duration_value() {
  1338. if (GetArenaNoVirtual() == NULL && any_with_duration_value_ != NULL) {
  1339. delete any_with_duration_value_;
  1340. }
  1341. any_with_duration_value_ = NULL;
  1342. }
  1343. inline const ::google::protobuf::testing::AnyWrapper& AnyTestCases::_internal_any_with_duration_value() const {
  1344. return *any_with_duration_value_;
  1345. }
  1346. inline const ::google::protobuf::testing::AnyWrapper& AnyTestCases::any_with_duration_value() const {
  1347. const ::google::protobuf::testing::AnyWrapper* p = any_with_duration_value_;
  1348. // @@protoc_insertion_point(field_get:google.protobuf.testing.AnyTestCases.any_with_duration_value)
  1349. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::AnyWrapper*>(
  1350. &::google::protobuf::testing::_AnyWrapper_default_instance_);
  1351. }
  1352. inline ::google::protobuf::testing::AnyWrapper* AnyTestCases::release_any_with_duration_value() {
  1353. // @@protoc_insertion_point(field_release:google.protobuf.testing.AnyTestCases.any_with_duration_value)
  1354. ::google::protobuf::testing::AnyWrapper* temp = any_with_duration_value_;
  1355. any_with_duration_value_ = NULL;
  1356. return temp;
  1357. }
  1358. inline ::google::protobuf::testing::AnyWrapper* AnyTestCases::mutable_any_with_duration_value() {
  1359. if (any_with_duration_value_ == NULL) {
  1360. auto* p = CreateMaybeMessage<::google::protobuf::testing::AnyWrapper>(GetArenaNoVirtual());
  1361. any_with_duration_value_ = p;
  1362. }
  1363. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.AnyTestCases.any_with_duration_value)
  1364. return any_with_duration_value_;
  1365. }
  1366. inline void AnyTestCases::set_allocated_any_with_duration_value(::google::protobuf::testing::AnyWrapper* any_with_duration_value) {
  1367. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1368. if (message_arena == NULL) {
  1369. delete any_with_duration_value_;
  1370. }
  1371. if (any_with_duration_value) {
  1372. ::google::protobuf::Arena* submessage_arena = NULL;
  1373. if (message_arena != submessage_arena) {
  1374. any_with_duration_value = ::google::protobuf::internal::GetOwnedMessage(
  1375. message_arena, any_with_duration_value, submessage_arena);
  1376. }
  1377. } else {
  1378. }
  1379. any_with_duration_value_ = any_with_duration_value;
  1380. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.AnyTestCases.any_with_duration_value)
  1381. }
  1382. // .google.protobuf.testing.AnyWrapper any_with_struct_value = 6;
  1383. inline bool AnyTestCases::has_any_with_struct_value() const {
  1384. return this != internal_default_instance() && any_with_struct_value_ != NULL;
  1385. }
  1386. inline void AnyTestCases::clear_any_with_struct_value() {
  1387. if (GetArenaNoVirtual() == NULL && any_with_struct_value_ != NULL) {
  1388. delete any_with_struct_value_;
  1389. }
  1390. any_with_struct_value_ = NULL;
  1391. }
  1392. inline const ::google::protobuf::testing::AnyWrapper& AnyTestCases::_internal_any_with_struct_value() const {
  1393. return *any_with_struct_value_;
  1394. }
  1395. inline const ::google::protobuf::testing::AnyWrapper& AnyTestCases::any_with_struct_value() const {
  1396. const ::google::protobuf::testing::AnyWrapper* p = any_with_struct_value_;
  1397. // @@protoc_insertion_point(field_get:google.protobuf.testing.AnyTestCases.any_with_struct_value)
  1398. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::AnyWrapper*>(
  1399. &::google::protobuf::testing::_AnyWrapper_default_instance_);
  1400. }
  1401. inline ::google::protobuf::testing::AnyWrapper* AnyTestCases::release_any_with_struct_value() {
  1402. // @@protoc_insertion_point(field_release:google.protobuf.testing.AnyTestCases.any_with_struct_value)
  1403. ::google::protobuf::testing::AnyWrapper* temp = any_with_struct_value_;
  1404. any_with_struct_value_ = NULL;
  1405. return temp;
  1406. }
  1407. inline ::google::protobuf::testing::AnyWrapper* AnyTestCases::mutable_any_with_struct_value() {
  1408. if (any_with_struct_value_ == NULL) {
  1409. auto* p = CreateMaybeMessage<::google::protobuf::testing::AnyWrapper>(GetArenaNoVirtual());
  1410. any_with_struct_value_ = p;
  1411. }
  1412. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.AnyTestCases.any_with_struct_value)
  1413. return any_with_struct_value_;
  1414. }
  1415. inline void AnyTestCases::set_allocated_any_with_struct_value(::google::protobuf::testing::AnyWrapper* any_with_struct_value) {
  1416. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1417. if (message_arena == NULL) {
  1418. delete any_with_struct_value_;
  1419. }
  1420. if (any_with_struct_value) {
  1421. ::google::protobuf::Arena* submessage_arena = NULL;
  1422. if (message_arena != submessage_arena) {
  1423. any_with_struct_value = ::google::protobuf::internal::GetOwnedMessage(
  1424. message_arena, any_with_struct_value, submessage_arena);
  1425. }
  1426. } else {
  1427. }
  1428. any_with_struct_value_ = any_with_struct_value;
  1429. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.AnyTestCases.any_with_struct_value)
  1430. }
  1431. // .google.protobuf.testing.AnyWrapper recursive_any = 7;
  1432. inline bool AnyTestCases::has_recursive_any() const {
  1433. return this != internal_default_instance() && recursive_any_ != NULL;
  1434. }
  1435. inline void AnyTestCases::clear_recursive_any() {
  1436. if (GetArenaNoVirtual() == NULL && recursive_any_ != NULL) {
  1437. delete recursive_any_;
  1438. }
  1439. recursive_any_ = NULL;
  1440. }
  1441. inline const ::google::protobuf::testing::AnyWrapper& AnyTestCases::_internal_recursive_any() const {
  1442. return *recursive_any_;
  1443. }
  1444. inline const ::google::protobuf::testing::AnyWrapper& AnyTestCases::recursive_any() const {
  1445. const ::google::protobuf::testing::AnyWrapper* p = recursive_any_;
  1446. // @@protoc_insertion_point(field_get:google.protobuf.testing.AnyTestCases.recursive_any)
  1447. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::AnyWrapper*>(
  1448. &::google::protobuf::testing::_AnyWrapper_default_instance_);
  1449. }
  1450. inline ::google::protobuf::testing::AnyWrapper* AnyTestCases::release_recursive_any() {
  1451. // @@protoc_insertion_point(field_release:google.protobuf.testing.AnyTestCases.recursive_any)
  1452. ::google::protobuf::testing::AnyWrapper* temp = recursive_any_;
  1453. recursive_any_ = NULL;
  1454. return temp;
  1455. }
  1456. inline ::google::protobuf::testing::AnyWrapper* AnyTestCases::mutable_recursive_any() {
  1457. if (recursive_any_ == NULL) {
  1458. auto* p = CreateMaybeMessage<::google::protobuf::testing::AnyWrapper>(GetArenaNoVirtual());
  1459. recursive_any_ = p;
  1460. }
  1461. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.AnyTestCases.recursive_any)
  1462. return recursive_any_;
  1463. }
  1464. inline void AnyTestCases::set_allocated_recursive_any(::google::protobuf::testing::AnyWrapper* recursive_any) {
  1465. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1466. if (message_arena == NULL) {
  1467. delete recursive_any_;
  1468. }
  1469. if (recursive_any) {
  1470. ::google::protobuf::Arena* submessage_arena = NULL;
  1471. if (message_arena != submessage_arena) {
  1472. recursive_any = ::google::protobuf::internal::GetOwnedMessage(
  1473. message_arena, recursive_any, submessage_arena);
  1474. }
  1475. } else {
  1476. }
  1477. recursive_any_ = recursive_any;
  1478. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.AnyTestCases.recursive_any)
  1479. }
  1480. // .google.protobuf.testing.AnyWrapper any_with_message_value = 8;
  1481. inline bool AnyTestCases::has_any_with_message_value() const {
  1482. return this != internal_default_instance() && any_with_message_value_ != NULL;
  1483. }
  1484. inline void AnyTestCases::clear_any_with_message_value() {
  1485. if (GetArenaNoVirtual() == NULL && any_with_message_value_ != NULL) {
  1486. delete any_with_message_value_;
  1487. }
  1488. any_with_message_value_ = NULL;
  1489. }
  1490. inline const ::google::protobuf::testing::AnyWrapper& AnyTestCases::_internal_any_with_message_value() const {
  1491. return *any_with_message_value_;
  1492. }
  1493. inline const ::google::protobuf::testing::AnyWrapper& AnyTestCases::any_with_message_value() const {
  1494. const ::google::protobuf::testing::AnyWrapper* p = any_with_message_value_;
  1495. // @@protoc_insertion_point(field_get:google.protobuf.testing.AnyTestCases.any_with_message_value)
  1496. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::AnyWrapper*>(
  1497. &::google::protobuf::testing::_AnyWrapper_default_instance_);
  1498. }
  1499. inline ::google::protobuf::testing::AnyWrapper* AnyTestCases::release_any_with_message_value() {
  1500. // @@protoc_insertion_point(field_release:google.protobuf.testing.AnyTestCases.any_with_message_value)
  1501. ::google::protobuf::testing::AnyWrapper* temp = any_with_message_value_;
  1502. any_with_message_value_ = NULL;
  1503. return temp;
  1504. }
  1505. inline ::google::protobuf::testing::AnyWrapper* AnyTestCases::mutable_any_with_message_value() {
  1506. if (any_with_message_value_ == NULL) {
  1507. auto* p = CreateMaybeMessage<::google::protobuf::testing::AnyWrapper>(GetArenaNoVirtual());
  1508. any_with_message_value_ = p;
  1509. }
  1510. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.AnyTestCases.any_with_message_value)
  1511. return any_with_message_value_;
  1512. }
  1513. inline void AnyTestCases::set_allocated_any_with_message_value(::google::protobuf::testing::AnyWrapper* any_with_message_value) {
  1514. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1515. if (message_arena == NULL) {
  1516. delete any_with_message_value_;
  1517. }
  1518. if (any_with_message_value) {
  1519. ::google::protobuf::Arena* submessage_arena = NULL;
  1520. if (message_arena != submessage_arena) {
  1521. any_with_message_value = ::google::protobuf::internal::GetOwnedMessage(
  1522. message_arena, any_with_message_value, submessage_arena);
  1523. }
  1524. } else {
  1525. }
  1526. any_with_message_value_ = any_with_message_value;
  1527. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.AnyTestCases.any_with_message_value)
  1528. }
  1529. // .google.protobuf.testing.AnyWrapper any_with_nested_message = 9;
  1530. inline bool AnyTestCases::has_any_with_nested_message() const {
  1531. return this != internal_default_instance() && any_with_nested_message_ != NULL;
  1532. }
  1533. inline void AnyTestCases::clear_any_with_nested_message() {
  1534. if (GetArenaNoVirtual() == NULL && any_with_nested_message_ != NULL) {
  1535. delete any_with_nested_message_;
  1536. }
  1537. any_with_nested_message_ = NULL;
  1538. }
  1539. inline const ::google::protobuf::testing::AnyWrapper& AnyTestCases::_internal_any_with_nested_message() const {
  1540. return *any_with_nested_message_;
  1541. }
  1542. inline const ::google::protobuf::testing::AnyWrapper& AnyTestCases::any_with_nested_message() const {
  1543. const ::google::protobuf::testing::AnyWrapper* p = any_with_nested_message_;
  1544. // @@protoc_insertion_point(field_get:google.protobuf.testing.AnyTestCases.any_with_nested_message)
  1545. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::AnyWrapper*>(
  1546. &::google::protobuf::testing::_AnyWrapper_default_instance_);
  1547. }
  1548. inline ::google::protobuf::testing::AnyWrapper* AnyTestCases::release_any_with_nested_message() {
  1549. // @@protoc_insertion_point(field_release:google.protobuf.testing.AnyTestCases.any_with_nested_message)
  1550. ::google::protobuf::testing::AnyWrapper* temp = any_with_nested_message_;
  1551. any_with_nested_message_ = NULL;
  1552. return temp;
  1553. }
  1554. inline ::google::protobuf::testing::AnyWrapper* AnyTestCases::mutable_any_with_nested_message() {
  1555. if (any_with_nested_message_ == NULL) {
  1556. auto* p = CreateMaybeMessage<::google::protobuf::testing::AnyWrapper>(GetArenaNoVirtual());
  1557. any_with_nested_message_ = p;
  1558. }
  1559. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.AnyTestCases.any_with_nested_message)
  1560. return any_with_nested_message_;
  1561. }
  1562. inline void AnyTestCases::set_allocated_any_with_nested_message(::google::protobuf::testing::AnyWrapper* any_with_nested_message) {
  1563. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1564. if (message_arena == NULL) {
  1565. delete any_with_nested_message_;
  1566. }
  1567. if (any_with_nested_message) {
  1568. ::google::protobuf::Arena* submessage_arena = NULL;
  1569. if (message_arena != submessage_arena) {
  1570. any_with_nested_message = ::google::protobuf::internal::GetOwnedMessage(
  1571. message_arena, any_with_nested_message, submessage_arena);
  1572. }
  1573. } else {
  1574. }
  1575. any_with_nested_message_ = any_with_nested_message;
  1576. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.AnyTestCases.any_with_nested_message)
  1577. }
  1578. // .google.protobuf.testing.AnyWrapper any_with_message_with_wrapper_type = 10;
  1579. inline bool AnyTestCases::has_any_with_message_with_wrapper_type() const {
  1580. return this != internal_default_instance() && any_with_message_with_wrapper_type_ != NULL;
  1581. }
  1582. inline void AnyTestCases::clear_any_with_message_with_wrapper_type() {
  1583. if (GetArenaNoVirtual() == NULL && any_with_message_with_wrapper_type_ != NULL) {
  1584. delete any_with_message_with_wrapper_type_;
  1585. }
  1586. any_with_message_with_wrapper_type_ = NULL;
  1587. }
  1588. inline const ::google::protobuf::testing::AnyWrapper& AnyTestCases::_internal_any_with_message_with_wrapper_type() const {
  1589. return *any_with_message_with_wrapper_type_;
  1590. }
  1591. inline const ::google::protobuf::testing::AnyWrapper& AnyTestCases::any_with_message_with_wrapper_type() const {
  1592. const ::google::protobuf::testing::AnyWrapper* p = any_with_message_with_wrapper_type_;
  1593. // @@protoc_insertion_point(field_get:google.protobuf.testing.AnyTestCases.any_with_message_with_wrapper_type)
  1594. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::AnyWrapper*>(
  1595. &::google::protobuf::testing::_AnyWrapper_default_instance_);
  1596. }
  1597. inline ::google::protobuf::testing::AnyWrapper* AnyTestCases::release_any_with_message_with_wrapper_type() {
  1598. // @@protoc_insertion_point(field_release:google.protobuf.testing.AnyTestCases.any_with_message_with_wrapper_type)
  1599. ::google::protobuf::testing::AnyWrapper* temp = any_with_message_with_wrapper_type_;
  1600. any_with_message_with_wrapper_type_ = NULL;
  1601. return temp;
  1602. }
  1603. inline ::google::protobuf::testing::AnyWrapper* AnyTestCases::mutable_any_with_message_with_wrapper_type() {
  1604. if (any_with_message_with_wrapper_type_ == NULL) {
  1605. auto* p = CreateMaybeMessage<::google::protobuf::testing::AnyWrapper>(GetArenaNoVirtual());
  1606. any_with_message_with_wrapper_type_ = p;
  1607. }
  1608. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.AnyTestCases.any_with_message_with_wrapper_type)
  1609. return any_with_message_with_wrapper_type_;
  1610. }
  1611. inline void AnyTestCases::set_allocated_any_with_message_with_wrapper_type(::google::protobuf::testing::AnyWrapper* any_with_message_with_wrapper_type) {
  1612. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1613. if (message_arena == NULL) {
  1614. delete any_with_message_with_wrapper_type_;
  1615. }
  1616. if (any_with_message_with_wrapper_type) {
  1617. ::google::protobuf::Arena* submessage_arena = NULL;
  1618. if (message_arena != submessage_arena) {
  1619. any_with_message_with_wrapper_type = ::google::protobuf::internal::GetOwnedMessage(
  1620. message_arena, any_with_message_with_wrapper_type, submessage_arena);
  1621. }
  1622. } else {
  1623. }
  1624. any_with_message_with_wrapper_type_ = any_with_message_with_wrapper_type;
  1625. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.AnyTestCases.any_with_message_with_wrapper_type)
  1626. }
  1627. // .google.protobuf.testing.AnyWrapper any_with_message_with_timestamp = 11;
  1628. inline bool AnyTestCases::has_any_with_message_with_timestamp() const {
  1629. return this != internal_default_instance() && any_with_message_with_timestamp_ != NULL;
  1630. }
  1631. inline void AnyTestCases::clear_any_with_message_with_timestamp() {
  1632. if (GetArenaNoVirtual() == NULL && any_with_message_with_timestamp_ != NULL) {
  1633. delete any_with_message_with_timestamp_;
  1634. }
  1635. any_with_message_with_timestamp_ = NULL;
  1636. }
  1637. inline const ::google::protobuf::testing::AnyWrapper& AnyTestCases::_internal_any_with_message_with_timestamp() const {
  1638. return *any_with_message_with_timestamp_;
  1639. }
  1640. inline const ::google::protobuf::testing::AnyWrapper& AnyTestCases::any_with_message_with_timestamp() const {
  1641. const ::google::protobuf::testing::AnyWrapper* p = any_with_message_with_timestamp_;
  1642. // @@protoc_insertion_point(field_get:google.protobuf.testing.AnyTestCases.any_with_message_with_timestamp)
  1643. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::AnyWrapper*>(
  1644. &::google::protobuf::testing::_AnyWrapper_default_instance_);
  1645. }
  1646. inline ::google::protobuf::testing::AnyWrapper* AnyTestCases::release_any_with_message_with_timestamp() {
  1647. // @@protoc_insertion_point(field_release:google.protobuf.testing.AnyTestCases.any_with_message_with_timestamp)
  1648. ::google::protobuf::testing::AnyWrapper* temp = any_with_message_with_timestamp_;
  1649. any_with_message_with_timestamp_ = NULL;
  1650. return temp;
  1651. }
  1652. inline ::google::protobuf::testing::AnyWrapper* AnyTestCases::mutable_any_with_message_with_timestamp() {
  1653. if (any_with_message_with_timestamp_ == NULL) {
  1654. auto* p = CreateMaybeMessage<::google::protobuf::testing::AnyWrapper>(GetArenaNoVirtual());
  1655. any_with_message_with_timestamp_ = p;
  1656. }
  1657. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.AnyTestCases.any_with_message_with_timestamp)
  1658. return any_with_message_with_timestamp_;
  1659. }
  1660. inline void AnyTestCases::set_allocated_any_with_message_with_timestamp(::google::protobuf::testing::AnyWrapper* any_with_message_with_timestamp) {
  1661. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1662. if (message_arena == NULL) {
  1663. delete any_with_message_with_timestamp_;
  1664. }
  1665. if (any_with_message_with_timestamp) {
  1666. ::google::protobuf::Arena* submessage_arena = NULL;
  1667. if (message_arena != submessage_arena) {
  1668. any_with_message_with_timestamp = ::google::protobuf::internal::GetOwnedMessage(
  1669. message_arena, any_with_message_with_timestamp, submessage_arena);
  1670. }
  1671. } else {
  1672. }
  1673. any_with_message_with_timestamp_ = any_with_message_with_timestamp;
  1674. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.AnyTestCases.any_with_message_with_timestamp)
  1675. }
  1676. // .google.protobuf.testing.AnyWrapper any_with_message_containing_map = 12;
  1677. inline bool AnyTestCases::has_any_with_message_containing_map() const {
  1678. return this != internal_default_instance() && any_with_message_containing_map_ != NULL;
  1679. }
  1680. inline void AnyTestCases::clear_any_with_message_containing_map() {
  1681. if (GetArenaNoVirtual() == NULL && any_with_message_containing_map_ != NULL) {
  1682. delete any_with_message_containing_map_;
  1683. }
  1684. any_with_message_containing_map_ = NULL;
  1685. }
  1686. inline const ::google::protobuf::testing::AnyWrapper& AnyTestCases::_internal_any_with_message_containing_map() const {
  1687. return *any_with_message_containing_map_;
  1688. }
  1689. inline const ::google::protobuf::testing::AnyWrapper& AnyTestCases::any_with_message_containing_map() const {
  1690. const ::google::protobuf::testing::AnyWrapper* p = any_with_message_containing_map_;
  1691. // @@protoc_insertion_point(field_get:google.protobuf.testing.AnyTestCases.any_with_message_containing_map)
  1692. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::AnyWrapper*>(
  1693. &::google::protobuf::testing::_AnyWrapper_default_instance_);
  1694. }
  1695. inline ::google::protobuf::testing::AnyWrapper* AnyTestCases::release_any_with_message_containing_map() {
  1696. // @@protoc_insertion_point(field_release:google.protobuf.testing.AnyTestCases.any_with_message_containing_map)
  1697. ::google::protobuf::testing::AnyWrapper* temp = any_with_message_containing_map_;
  1698. any_with_message_containing_map_ = NULL;
  1699. return temp;
  1700. }
  1701. inline ::google::protobuf::testing::AnyWrapper* AnyTestCases::mutable_any_with_message_containing_map() {
  1702. if (any_with_message_containing_map_ == NULL) {
  1703. auto* p = CreateMaybeMessage<::google::protobuf::testing::AnyWrapper>(GetArenaNoVirtual());
  1704. any_with_message_containing_map_ = p;
  1705. }
  1706. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.AnyTestCases.any_with_message_containing_map)
  1707. return any_with_message_containing_map_;
  1708. }
  1709. inline void AnyTestCases::set_allocated_any_with_message_containing_map(::google::protobuf::testing::AnyWrapper* any_with_message_containing_map) {
  1710. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1711. if (message_arena == NULL) {
  1712. delete any_with_message_containing_map_;
  1713. }
  1714. if (any_with_message_containing_map) {
  1715. ::google::protobuf::Arena* submessage_arena = NULL;
  1716. if (message_arena != submessage_arena) {
  1717. any_with_message_containing_map = ::google::protobuf::internal::GetOwnedMessage(
  1718. message_arena, any_with_message_containing_map, submessage_arena);
  1719. }
  1720. } else {
  1721. }
  1722. any_with_message_containing_map_ = any_with_message_containing_map;
  1723. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.AnyTestCases.any_with_message_containing_map)
  1724. }
  1725. // .google.protobuf.testing.AnyWrapper any_with_message_containing_struct = 13;
  1726. inline bool AnyTestCases::has_any_with_message_containing_struct() const {
  1727. return this != internal_default_instance() && any_with_message_containing_struct_ != NULL;
  1728. }
  1729. inline void AnyTestCases::clear_any_with_message_containing_struct() {
  1730. if (GetArenaNoVirtual() == NULL && any_with_message_containing_struct_ != NULL) {
  1731. delete any_with_message_containing_struct_;
  1732. }
  1733. any_with_message_containing_struct_ = NULL;
  1734. }
  1735. inline const ::google::protobuf::testing::AnyWrapper& AnyTestCases::_internal_any_with_message_containing_struct() const {
  1736. return *any_with_message_containing_struct_;
  1737. }
  1738. inline const ::google::protobuf::testing::AnyWrapper& AnyTestCases::any_with_message_containing_struct() const {
  1739. const ::google::protobuf::testing::AnyWrapper* p = any_with_message_containing_struct_;
  1740. // @@protoc_insertion_point(field_get:google.protobuf.testing.AnyTestCases.any_with_message_containing_struct)
  1741. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::AnyWrapper*>(
  1742. &::google::protobuf::testing::_AnyWrapper_default_instance_);
  1743. }
  1744. inline ::google::protobuf::testing::AnyWrapper* AnyTestCases::release_any_with_message_containing_struct() {
  1745. // @@protoc_insertion_point(field_release:google.protobuf.testing.AnyTestCases.any_with_message_containing_struct)
  1746. ::google::protobuf::testing::AnyWrapper* temp = any_with_message_containing_struct_;
  1747. any_with_message_containing_struct_ = NULL;
  1748. return temp;
  1749. }
  1750. inline ::google::protobuf::testing::AnyWrapper* AnyTestCases::mutable_any_with_message_containing_struct() {
  1751. if (any_with_message_containing_struct_ == NULL) {
  1752. auto* p = CreateMaybeMessage<::google::protobuf::testing::AnyWrapper>(GetArenaNoVirtual());
  1753. any_with_message_containing_struct_ = p;
  1754. }
  1755. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.AnyTestCases.any_with_message_containing_struct)
  1756. return any_with_message_containing_struct_;
  1757. }
  1758. inline void AnyTestCases::set_allocated_any_with_message_containing_struct(::google::protobuf::testing::AnyWrapper* any_with_message_containing_struct) {
  1759. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1760. if (message_arena == NULL) {
  1761. delete any_with_message_containing_struct_;
  1762. }
  1763. if (any_with_message_containing_struct) {
  1764. ::google::protobuf::Arena* submessage_arena = NULL;
  1765. if (message_arena != submessage_arena) {
  1766. any_with_message_containing_struct = ::google::protobuf::internal::GetOwnedMessage(
  1767. message_arena, any_with_message_containing_struct, submessage_arena);
  1768. }
  1769. } else {
  1770. }
  1771. any_with_message_containing_struct_ = any_with_message_containing_struct;
  1772. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.AnyTestCases.any_with_message_containing_struct)
  1773. }
  1774. // .google.protobuf.testing.AnyWrapper any_with_message_containing_repeated_message = 14;
  1775. inline bool AnyTestCases::has_any_with_message_containing_repeated_message() const {
  1776. return this != internal_default_instance() && any_with_message_containing_repeated_message_ != NULL;
  1777. }
  1778. inline void AnyTestCases::clear_any_with_message_containing_repeated_message() {
  1779. if (GetArenaNoVirtual() == NULL && any_with_message_containing_repeated_message_ != NULL) {
  1780. delete any_with_message_containing_repeated_message_;
  1781. }
  1782. any_with_message_containing_repeated_message_ = NULL;
  1783. }
  1784. inline const ::google::protobuf::testing::AnyWrapper& AnyTestCases::_internal_any_with_message_containing_repeated_message() const {
  1785. return *any_with_message_containing_repeated_message_;
  1786. }
  1787. inline const ::google::protobuf::testing::AnyWrapper& AnyTestCases::any_with_message_containing_repeated_message() const {
  1788. const ::google::protobuf::testing::AnyWrapper* p = any_with_message_containing_repeated_message_;
  1789. // @@protoc_insertion_point(field_get:google.protobuf.testing.AnyTestCases.any_with_message_containing_repeated_message)
  1790. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::AnyWrapper*>(
  1791. &::google::protobuf::testing::_AnyWrapper_default_instance_);
  1792. }
  1793. inline ::google::protobuf::testing::AnyWrapper* AnyTestCases::release_any_with_message_containing_repeated_message() {
  1794. // @@protoc_insertion_point(field_release:google.protobuf.testing.AnyTestCases.any_with_message_containing_repeated_message)
  1795. ::google::protobuf::testing::AnyWrapper* temp = any_with_message_containing_repeated_message_;
  1796. any_with_message_containing_repeated_message_ = NULL;
  1797. return temp;
  1798. }
  1799. inline ::google::protobuf::testing::AnyWrapper* AnyTestCases::mutable_any_with_message_containing_repeated_message() {
  1800. if (any_with_message_containing_repeated_message_ == NULL) {
  1801. auto* p = CreateMaybeMessage<::google::protobuf::testing::AnyWrapper>(GetArenaNoVirtual());
  1802. any_with_message_containing_repeated_message_ = p;
  1803. }
  1804. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.AnyTestCases.any_with_message_containing_repeated_message)
  1805. return any_with_message_containing_repeated_message_;
  1806. }
  1807. inline void AnyTestCases::set_allocated_any_with_message_containing_repeated_message(::google::protobuf::testing::AnyWrapper* any_with_message_containing_repeated_message) {
  1808. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1809. if (message_arena == NULL) {
  1810. delete any_with_message_containing_repeated_message_;
  1811. }
  1812. if (any_with_message_containing_repeated_message) {
  1813. ::google::protobuf::Arena* submessage_arena = NULL;
  1814. if (message_arena != submessage_arena) {
  1815. any_with_message_containing_repeated_message = ::google::protobuf::internal::GetOwnedMessage(
  1816. message_arena, any_with_message_containing_repeated_message, submessage_arena);
  1817. }
  1818. } else {
  1819. }
  1820. any_with_message_containing_repeated_message_ = any_with_message_containing_repeated_message;
  1821. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.AnyTestCases.any_with_message_containing_repeated_message)
  1822. }
  1823. // .google.protobuf.testing.AnyWrapper recursive_any_with_type_field_at_end = 15;
  1824. inline bool AnyTestCases::has_recursive_any_with_type_field_at_end() const {
  1825. return this != internal_default_instance() && recursive_any_with_type_field_at_end_ != NULL;
  1826. }
  1827. inline void AnyTestCases::clear_recursive_any_with_type_field_at_end() {
  1828. if (GetArenaNoVirtual() == NULL && recursive_any_with_type_field_at_end_ != NULL) {
  1829. delete recursive_any_with_type_field_at_end_;
  1830. }
  1831. recursive_any_with_type_field_at_end_ = NULL;
  1832. }
  1833. inline const ::google::protobuf::testing::AnyWrapper& AnyTestCases::_internal_recursive_any_with_type_field_at_end() const {
  1834. return *recursive_any_with_type_field_at_end_;
  1835. }
  1836. inline const ::google::protobuf::testing::AnyWrapper& AnyTestCases::recursive_any_with_type_field_at_end() const {
  1837. const ::google::protobuf::testing::AnyWrapper* p = recursive_any_with_type_field_at_end_;
  1838. // @@protoc_insertion_point(field_get:google.protobuf.testing.AnyTestCases.recursive_any_with_type_field_at_end)
  1839. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::AnyWrapper*>(
  1840. &::google::protobuf::testing::_AnyWrapper_default_instance_);
  1841. }
  1842. inline ::google::protobuf::testing::AnyWrapper* AnyTestCases::release_recursive_any_with_type_field_at_end() {
  1843. // @@protoc_insertion_point(field_release:google.protobuf.testing.AnyTestCases.recursive_any_with_type_field_at_end)
  1844. ::google::protobuf::testing::AnyWrapper* temp = recursive_any_with_type_field_at_end_;
  1845. recursive_any_with_type_field_at_end_ = NULL;
  1846. return temp;
  1847. }
  1848. inline ::google::protobuf::testing::AnyWrapper* AnyTestCases::mutable_recursive_any_with_type_field_at_end() {
  1849. if (recursive_any_with_type_field_at_end_ == NULL) {
  1850. auto* p = CreateMaybeMessage<::google::protobuf::testing::AnyWrapper>(GetArenaNoVirtual());
  1851. recursive_any_with_type_field_at_end_ = p;
  1852. }
  1853. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.AnyTestCases.recursive_any_with_type_field_at_end)
  1854. return recursive_any_with_type_field_at_end_;
  1855. }
  1856. inline void AnyTestCases::set_allocated_recursive_any_with_type_field_at_end(::google::protobuf::testing::AnyWrapper* recursive_any_with_type_field_at_end) {
  1857. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1858. if (message_arena == NULL) {
  1859. delete recursive_any_with_type_field_at_end_;
  1860. }
  1861. if (recursive_any_with_type_field_at_end) {
  1862. ::google::protobuf::Arena* submessage_arena = NULL;
  1863. if (message_arena != submessage_arena) {
  1864. recursive_any_with_type_field_at_end = ::google::protobuf::internal::GetOwnedMessage(
  1865. message_arena, recursive_any_with_type_field_at_end, submessage_arena);
  1866. }
  1867. } else {
  1868. }
  1869. recursive_any_with_type_field_at_end_ = recursive_any_with_type_field_at_end;
  1870. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.AnyTestCases.recursive_any_with_type_field_at_end)
  1871. }
  1872. // .google.protobuf.Any top_level_any = 50;
  1873. inline bool AnyTestCases::has_top_level_any() const {
  1874. return this != internal_default_instance() && top_level_any_ != NULL;
  1875. }
  1876. inline const ::google::protobuf::Any& AnyTestCases::_internal_top_level_any() const {
  1877. return *top_level_any_;
  1878. }
  1879. inline const ::google::protobuf::Any& AnyTestCases::top_level_any() const {
  1880. const ::google::protobuf::Any* p = top_level_any_;
  1881. // @@protoc_insertion_point(field_get:google.protobuf.testing.AnyTestCases.top_level_any)
  1882. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Any*>(
  1883. &::google::protobuf::_Any_default_instance_);
  1884. }
  1885. inline ::google::protobuf::Any* AnyTestCases::release_top_level_any() {
  1886. // @@protoc_insertion_point(field_release:google.protobuf.testing.AnyTestCases.top_level_any)
  1887. ::google::protobuf::Any* temp = top_level_any_;
  1888. top_level_any_ = NULL;
  1889. return temp;
  1890. }
  1891. inline ::google::protobuf::Any* AnyTestCases::mutable_top_level_any() {
  1892. if (top_level_any_ == NULL) {
  1893. auto* p = CreateMaybeMessage<::google::protobuf::Any>(GetArenaNoVirtual());
  1894. top_level_any_ = p;
  1895. }
  1896. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.AnyTestCases.top_level_any)
  1897. return top_level_any_;
  1898. }
  1899. inline void AnyTestCases::set_allocated_top_level_any(::google::protobuf::Any* top_level_any) {
  1900. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1901. if (message_arena == NULL) {
  1902. delete reinterpret_cast< ::google::protobuf::MessageLite*>(top_level_any_);
  1903. }
  1904. if (top_level_any) {
  1905. ::google::protobuf::Arena* submessage_arena = NULL;
  1906. if (message_arena != submessage_arena) {
  1907. top_level_any = ::google::protobuf::internal::GetOwnedMessage(
  1908. message_arena, top_level_any, submessage_arena);
  1909. }
  1910. } else {
  1911. }
  1912. top_level_any_ = top_level_any;
  1913. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.AnyTestCases.top_level_any)
  1914. }
  1915. // .google.protobuf.Any top_level_any_with_type_field_at_end = 51;
  1916. inline bool AnyTestCases::has_top_level_any_with_type_field_at_end() const {
  1917. return this != internal_default_instance() && top_level_any_with_type_field_at_end_ != NULL;
  1918. }
  1919. inline const ::google::protobuf::Any& AnyTestCases::_internal_top_level_any_with_type_field_at_end() const {
  1920. return *top_level_any_with_type_field_at_end_;
  1921. }
  1922. inline const ::google::protobuf::Any& AnyTestCases::top_level_any_with_type_field_at_end() const {
  1923. const ::google::protobuf::Any* p = top_level_any_with_type_field_at_end_;
  1924. // @@protoc_insertion_point(field_get:google.protobuf.testing.AnyTestCases.top_level_any_with_type_field_at_end)
  1925. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Any*>(
  1926. &::google::protobuf::_Any_default_instance_);
  1927. }
  1928. inline ::google::protobuf::Any* AnyTestCases::release_top_level_any_with_type_field_at_end() {
  1929. // @@protoc_insertion_point(field_release:google.protobuf.testing.AnyTestCases.top_level_any_with_type_field_at_end)
  1930. ::google::protobuf::Any* temp = top_level_any_with_type_field_at_end_;
  1931. top_level_any_with_type_field_at_end_ = NULL;
  1932. return temp;
  1933. }
  1934. inline ::google::protobuf::Any* AnyTestCases::mutable_top_level_any_with_type_field_at_end() {
  1935. if (top_level_any_with_type_field_at_end_ == NULL) {
  1936. auto* p = CreateMaybeMessage<::google::protobuf::Any>(GetArenaNoVirtual());
  1937. top_level_any_with_type_field_at_end_ = p;
  1938. }
  1939. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.AnyTestCases.top_level_any_with_type_field_at_end)
  1940. return top_level_any_with_type_field_at_end_;
  1941. }
  1942. inline void AnyTestCases::set_allocated_top_level_any_with_type_field_at_end(::google::protobuf::Any* top_level_any_with_type_field_at_end) {
  1943. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1944. if (message_arena == NULL) {
  1945. delete reinterpret_cast< ::google::protobuf::MessageLite*>(top_level_any_with_type_field_at_end_);
  1946. }
  1947. if (top_level_any_with_type_field_at_end) {
  1948. ::google::protobuf::Arena* submessage_arena = NULL;
  1949. if (message_arena != submessage_arena) {
  1950. top_level_any_with_type_field_at_end = ::google::protobuf::internal::GetOwnedMessage(
  1951. message_arena, top_level_any_with_type_field_at_end, submessage_arena);
  1952. }
  1953. } else {
  1954. }
  1955. top_level_any_with_type_field_at_end_ = top_level_any_with_type_field_at_end;
  1956. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.AnyTestCases.top_level_any_with_type_field_at_end)
  1957. }
  1958. // -------------------------------------------------------------------
  1959. // AnyWrapper
  1960. // .google.protobuf.Any any = 1;
  1961. inline bool AnyWrapper::has_any() const {
  1962. return this != internal_default_instance() && any_ != NULL;
  1963. }
  1964. inline const ::google::protobuf::Any& AnyWrapper::_internal_any() const {
  1965. return *any_;
  1966. }
  1967. inline const ::google::protobuf::Any& AnyWrapper::any() const {
  1968. const ::google::protobuf::Any* p = any_;
  1969. // @@protoc_insertion_point(field_get:google.protobuf.testing.AnyWrapper.any)
  1970. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Any*>(
  1971. &::google::protobuf::_Any_default_instance_);
  1972. }
  1973. inline ::google::protobuf::Any* AnyWrapper::release_any() {
  1974. // @@protoc_insertion_point(field_release:google.protobuf.testing.AnyWrapper.any)
  1975. ::google::protobuf::Any* temp = any_;
  1976. any_ = NULL;
  1977. return temp;
  1978. }
  1979. inline ::google::protobuf::Any* AnyWrapper::mutable_any() {
  1980. if (any_ == NULL) {
  1981. auto* p = CreateMaybeMessage<::google::protobuf::Any>(GetArenaNoVirtual());
  1982. any_ = p;
  1983. }
  1984. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.AnyWrapper.any)
  1985. return any_;
  1986. }
  1987. inline void AnyWrapper::set_allocated_any(::google::protobuf::Any* any) {
  1988. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1989. if (message_arena == NULL) {
  1990. delete reinterpret_cast< ::google::protobuf::MessageLite*>(any_);
  1991. }
  1992. if (any) {
  1993. ::google::protobuf::Arena* submessage_arena = NULL;
  1994. if (message_arena != submessage_arena) {
  1995. any = ::google::protobuf::internal::GetOwnedMessage(
  1996. message_arena, any, submessage_arena);
  1997. }
  1998. } else {
  1999. }
  2000. any_ = any;
  2001. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.AnyWrapper.any)
  2002. }
  2003. // -------------------------------------------------------------------
  2004. // Imports
  2005. // .google.protobuf.DoubleValue dbl = 1;
  2006. inline bool Imports::has_dbl() const {
  2007. return this != internal_default_instance() && dbl_ != NULL;
  2008. }
  2009. inline const ::google::protobuf::DoubleValue& Imports::_internal_dbl() const {
  2010. return *dbl_;
  2011. }
  2012. inline const ::google::protobuf::DoubleValue& Imports::dbl() const {
  2013. const ::google::protobuf::DoubleValue* p = dbl_;
  2014. // @@protoc_insertion_point(field_get:google.protobuf.testing.Imports.dbl)
  2015. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::DoubleValue*>(
  2016. &::google::protobuf::_DoubleValue_default_instance_);
  2017. }
  2018. inline ::google::protobuf::DoubleValue* Imports::release_dbl() {
  2019. // @@protoc_insertion_point(field_release:google.protobuf.testing.Imports.dbl)
  2020. ::google::protobuf::DoubleValue* temp = dbl_;
  2021. dbl_ = NULL;
  2022. return temp;
  2023. }
  2024. inline ::google::protobuf::DoubleValue* Imports::mutable_dbl() {
  2025. if (dbl_ == NULL) {
  2026. auto* p = CreateMaybeMessage<::google::protobuf::DoubleValue>(GetArenaNoVirtual());
  2027. dbl_ = p;
  2028. }
  2029. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.Imports.dbl)
  2030. return dbl_;
  2031. }
  2032. inline void Imports::set_allocated_dbl(::google::protobuf::DoubleValue* dbl) {
  2033. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2034. if (message_arena == NULL) {
  2035. delete reinterpret_cast< ::google::protobuf::MessageLite*>(dbl_);
  2036. }
  2037. if (dbl) {
  2038. ::google::protobuf::Arena* submessage_arena =
  2039. reinterpret_cast<::google::protobuf::MessageLite*>(dbl)->GetArena();
  2040. if (message_arena != submessage_arena) {
  2041. dbl = ::google::protobuf::internal::GetOwnedMessage(
  2042. message_arena, dbl, submessage_arena);
  2043. }
  2044. } else {
  2045. }
  2046. dbl_ = dbl;
  2047. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.Imports.dbl)
  2048. }
  2049. // .google.protobuf.Struct struct = 2;
  2050. inline bool Imports::has_struct_() const {
  2051. return this != internal_default_instance() && struct__ != NULL;
  2052. }
  2053. inline const ::google::protobuf::Struct& Imports::_internal_struct_() const {
  2054. return *struct__;
  2055. }
  2056. inline const ::google::protobuf::Struct& Imports::struct_() const {
  2057. const ::google::protobuf::Struct* p = struct__;
  2058. // @@protoc_insertion_point(field_get:google.protobuf.testing.Imports.struct)
  2059. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Struct*>(
  2060. &::google::protobuf::_Struct_default_instance_);
  2061. }
  2062. inline ::google::protobuf::Struct* Imports::release_struct_() {
  2063. // @@protoc_insertion_point(field_release:google.protobuf.testing.Imports.struct)
  2064. ::google::protobuf::Struct* temp = struct__;
  2065. struct__ = NULL;
  2066. return temp;
  2067. }
  2068. inline ::google::protobuf::Struct* Imports::mutable_struct_() {
  2069. if (struct__ == NULL) {
  2070. auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArenaNoVirtual());
  2071. struct__ = p;
  2072. }
  2073. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.Imports.struct)
  2074. return struct__;
  2075. }
  2076. inline void Imports::set_allocated_struct_(::google::protobuf::Struct* struct_) {
  2077. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2078. if (message_arena == NULL) {
  2079. delete reinterpret_cast< ::google::protobuf::MessageLite*>(struct__);
  2080. }
  2081. if (struct_) {
  2082. ::google::protobuf::Arena* submessage_arena =
  2083. reinterpret_cast<::google::protobuf::MessageLite*>(struct_)->GetArena();
  2084. if (message_arena != submessage_arena) {
  2085. struct_ = ::google::protobuf::internal::GetOwnedMessage(
  2086. message_arena, struct_, submessage_arena);
  2087. }
  2088. } else {
  2089. }
  2090. struct__ = struct_;
  2091. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.Imports.struct)
  2092. }
  2093. // .google.protobuf.Timestamp timestamp = 3;
  2094. inline bool Imports::has_timestamp() const {
  2095. return this != internal_default_instance() && timestamp_ != NULL;
  2096. }
  2097. inline const ::google::protobuf::Timestamp& Imports::_internal_timestamp() const {
  2098. return *timestamp_;
  2099. }
  2100. inline const ::google::protobuf::Timestamp& Imports::timestamp() const {
  2101. const ::google::protobuf::Timestamp* p = timestamp_;
  2102. // @@protoc_insertion_point(field_get:google.protobuf.testing.Imports.timestamp)
  2103. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Timestamp*>(
  2104. &::google::protobuf::_Timestamp_default_instance_);
  2105. }
  2106. inline ::google::protobuf::Timestamp* Imports::release_timestamp() {
  2107. // @@protoc_insertion_point(field_release:google.protobuf.testing.Imports.timestamp)
  2108. ::google::protobuf::Timestamp* temp = timestamp_;
  2109. timestamp_ = NULL;
  2110. return temp;
  2111. }
  2112. inline ::google::protobuf::Timestamp* Imports::mutable_timestamp() {
  2113. if (timestamp_ == NULL) {
  2114. auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual());
  2115. timestamp_ = p;
  2116. }
  2117. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.Imports.timestamp)
  2118. return timestamp_;
  2119. }
  2120. inline void Imports::set_allocated_timestamp(::google::protobuf::Timestamp* timestamp) {
  2121. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2122. if (message_arena == NULL) {
  2123. delete reinterpret_cast< ::google::protobuf::MessageLite*>(timestamp_);
  2124. }
  2125. if (timestamp) {
  2126. ::google::protobuf::Arena* submessage_arena =
  2127. reinterpret_cast<::google::protobuf::MessageLite*>(timestamp)->GetArena();
  2128. if (message_arena != submessage_arena) {
  2129. timestamp = ::google::protobuf::internal::GetOwnedMessage(
  2130. message_arena, timestamp, submessage_arena);
  2131. }
  2132. } else {
  2133. }
  2134. timestamp_ = timestamp;
  2135. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.Imports.timestamp)
  2136. }
  2137. // .google.protobuf.Duration duration = 4;
  2138. inline bool Imports::has_duration() const {
  2139. return this != internal_default_instance() && duration_ != NULL;
  2140. }
  2141. inline const ::google::protobuf::Duration& Imports::_internal_duration() const {
  2142. return *duration_;
  2143. }
  2144. inline const ::google::protobuf::Duration& Imports::duration() const {
  2145. const ::google::protobuf::Duration* p = duration_;
  2146. // @@protoc_insertion_point(field_get:google.protobuf.testing.Imports.duration)
  2147. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Duration*>(
  2148. &::google::protobuf::_Duration_default_instance_);
  2149. }
  2150. inline ::google::protobuf::Duration* Imports::release_duration() {
  2151. // @@protoc_insertion_point(field_release:google.protobuf.testing.Imports.duration)
  2152. ::google::protobuf::Duration* temp = duration_;
  2153. duration_ = NULL;
  2154. return temp;
  2155. }
  2156. inline ::google::protobuf::Duration* Imports::mutable_duration() {
  2157. if (duration_ == NULL) {
  2158. auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArenaNoVirtual());
  2159. duration_ = p;
  2160. }
  2161. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.Imports.duration)
  2162. return duration_;
  2163. }
  2164. inline void Imports::set_allocated_duration(::google::protobuf::Duration* duration) {
  2165. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2166. if (message_arena == NULL) {
  2167. delete reinterpret_cast< ::google::protobuf::MessageLite*>(duration_);
  2168. }
  2169. if (duration) {
  2170. ::google::protobuf::Arena* submessage_arena =
  2171. reinterpret_cast<::google::protobuf::MessageLite*>(duration)->GetArena();
  2172. if (message_arena != submessage_arena) {
  2173. duration = ::google::protobuf::internal::GetOwnedMessage(
  2174. message_arena, duration, submessage_arena);
  2175. }
  2176. } else {
  2177. }
  2178. duration_ = duration;
  2179. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.Imports.duration)
  2180. }
  2181. // .google.protobuf.Int32Value i32 = 5;
  2182. inline bool Imports::has_i32() const {
  2183. return this != internal_default_instance() && i32_ != NULL;
  2184. }
  2185. inline const ::google::protobuf::Int32Value& Imports::_internal_i32() const {
  2186. return *i32_;
  2187. }
  2188. inline const ::google::protobuf::Int32Value& Imports::i32() const {
  2189. const ::google::protobuf::Int32Value* p = i32_;
  2190. // @@protoc_insertion_point(field_get:google.protobuf.testing.Imports.i32)
  2191. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Int32Value*>(
  2192. &::google::protobuf::_Int32Value_default_instance_);
  2193. }
  2194. inline ::google::protobuf::Int32Value* Imports::release_i32() {
  2195. // @@protoc_insertion_point(field_release:google.protobuf.testing.Imports.i32)
  2196. ::google::protobuf::Int32Value* temp = i32_;
  2197. i32_ = NULL;
  2198. return temp;
  2199. }
  2200. inline ::google::protobuf::Int32Value* Imports::mutable_i32() {
  2201. if (i32_ == NULL) {
  2202. auto* p = CreateMaybeMessage<::google::protobuf::Int32Value>(GetArenaNoVirtual());
  2203. i32_ = p;
  2204. }
  2205. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.Imports.i32)
  2206. return i32_;
  2207. }
  2208. inline void Imports::set_allocated_i32(::google::protobuf::Int32Value* i32) {
  2209. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2210. if (message_arena == NULL) {
  2211. delete reinterpret_cast< ::google::protobuf::MessageLite*>(i32_);
  2212. }
  2213. if (i32) {
  2214. ::google::protobuf::Arena* submessage_arena =
  2215. reinterpret_cast<::google::protobuf::MessageLite*>(i32)->GetArena();
  2216. if (message_arena != submessage_arena) {
  2217. i32 = ::google::protobuf::internal::GetOwnedMessage(
  2218. message_arena, i32, submessage_arena);
  2219. }
  2220. } else {
  2221. }
  2222. i32_ = i32;
  2223. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.Imports.i32)
  2224. }
  2225. // .google.protobuf.testing.Data data = 100;
  2226. inline bool Imports::has_data() const {
  2227. return this != internal_default_instance() && data_ != NULL;
  2228. }
  2229. inline void Imports::clear_data() {
  2230. if (GetArenaNoVirtual() == NULL && data_ != NULL) {
  2231. delete data_;
  2232. }
  2233. data_ = NULL;
  2234. }
  2235. inline const ::google::protobuf::testing::Data& Imports::_internal_data() const {
  2236. return *data_;
  2237. }
  2238. inline const ::google::protobuf::testing::Data& Imports::data() const {
  2239. const ::google::protobuf::testing::Data* p = data_;
  2240. // @@protoc_insertion_point(field_get:google.protobuf.testing.Imports.data)
  2241. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::Data*>(
  2242. &::google::protobuf::testing::_Data_default_instance_);
  2243. }
  2244. inline ::google::protobuf::testing::Data* Imports::release_data() {
  2245. // @@protoc_insertion_point(field_release:google.protobuf.testing.Imports.data)
  2246. ::google::protobuf::testing::Data* temp = data_;
  2247. data_ = NULL;
  2248. return temp;
  2249. }
  2250. inline ::google::protobuf::testing::Data* Imports::mutable_data() {
  2251. if (data_ == NULL) {
  2252. auto* p = CreateMaybeMessage<::google::protobuf::testing::Data>(GetArenaNoVirtual());
  2253. data_ = p;
  2254. }
  2255. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.Imports.data)
  2256. return data_;
  2257. }
  2258. inline void Imports::set_allocated_data(::google::protobuf::testing::Data* data) {
  2259. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2260. if (message_arena == NULL) {
  2261. delete data_;
  2262. }
  2263. if (data) {
  2264. ::google::protobuf::Arena* submessage_arena = NULL;
  2265. if (message_arena != submessage_arena) {
  2266. data = ::google::protobuf::internal::GetOwnedMessage(
  2267. message_arena, data, submessage_arena);
  2268. }
  2269. } else {
  2270. }
  2271. data_ = data;
  2272. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.Imports.data)
  2273. }
  2274. // -------------------------------------------------------------------
  2275. // -------------------------------------------------------------------
  2276. // Data
  2277. // int32 attr = 1;
  2278. inline void Data::clear_attr() {
  2279. attr_ = 0;
  2280. }
  2281. inline ::google::protobuf::int32 Data::attr() const {
  2282. // @@protoc_insertion_point(field_get:google.protobuf.testing.Data.attr)
  2283. return attr_;
  2284. }
  2285. inline void Data::set_attr(::google::protobuf::int32 value) {
  2286. attr_ = value;
  2287. // @@protoc_insertion_point(field_set:google.protobuf.testing.Data.attr)
  2288. }
  2289. // string str = 2;
  2290. inline void Data::clear_str() {
  2291. str_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2292. }
  2293. inline const ::std::string& Data::str() const {
  2294. // @@protoc_insertion_point(field_get:google.protobuf.testing.Data.str)
  2295. return str_.GetNoArena();
  2296. }
  2297. inline void Data::set_str(const ::std::string& value) {
  2298. str_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  2299. // @@protoc_insertion_point(field_set:google.protobuf.testing.Data.str)
  2300. }
  2301. #if LANG_CXX11
  2302. inline void Data::set_str(::std::string&& value) {
  2303. str_.SetNoArena(
  2304. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  2305. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.testing.Data.str)
  2306. }
  2307. #endif
  2308. inline void Data::set_str(const char* value) {
  2309. GOOGLE_DCHECK(value != NULL);
  2310. str_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  2311. // @@protoc_insertion_point(field_set_char:google.protobuf.testing.Data.str)
  2312. }
  2313. inline void Data::set_str(const char* value, size_t size) {
  2314. str_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  2315. ::std::string(reinterpret_cast<const char*>(value), size));
  2316. // @@protoc_insertion_point(field_set_pointer:google.protobuf.testing.Data.str)
  2317. }
  2318. inline ::std::string* Data::mutable_str() {
  2319. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.Data.str)
  2320. return str_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2321. }
  2322. inline ::std::string* Data::release_str() {
  2323. // @@protoc_insertion_point(field_release:google.protobuf.testing.Data.str)
  2324. return str_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2325. }
  2326. inline void Data::set_allocated_str(::std::string* str) {
  2327. if (str != NULL) {
  2328. } else {
  2329. }
  2330. str_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), str);
  2331. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.Data.str)
  2332. }
  2333. // repeated string msgs = 3;
  2334. inline int Data::msgs_size() const {
  2335. return msgs_.size();
  2336. }
  2337. inline void Data::clear_msgs() {
  2338. msgs_.Clear();
  2339. }
  2340. inline const ::std::string& Data::msgs(int index) const {
  2341. // @@protoc_insertion_point(field_get:google.protobuf.testing.Data.msgs)
  2342. return msgs_.Get(index);
  2343. }
  2344. inline ::std::string* Data::mutable_msgs(int index) {
  2345. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.Data.msgs)
  2346. return msgs_.Mutable(index);
  2347. }
  2348. inline void Data::set_msgs(int index, const ::std::string& value) {
  2349. // @@protoc_insertion_point(field_set:google.protobuf.testing.Data.msgs)
  2350. msgs_.Mutable(index)->assign(value);
  2351. }
  2352. #if LANG_CXX11
  2353. inline void Data::set_msgs(int index, ::std::string&& value) {
  2354. // @@protoc_insertion_point(field_set:google.protobuf.testing.Data.msgs)
  2355. msgs_.Mutable(index)->assign(std::move(value));
  2356. }
  2357. #endif
  2358. inline void Data::set_msgs(int index, const char* value) {
  2359. GOOGLE_DCHECK(value != NULL);
  2360. msgs_.Mutable(index)->assign(value);
  2361. // @@protoc_insertion_point(field_set_char:google.protobuf.testing.Data.msgs)
  2362. }
  2363. inline void Data::set_msgs(int index, const char* value, size_t size) {
  2364. msgs_.Mutable(index)->assign(
  2365. reinterpret_cast<const char*>(value), size);
  2366. // @@protoc_insertion_point(field_set_pointer:google.protobuf.testing.Data.msgs)
  2367. }
  2368. inline ::std::string* Data::add_msgs() {
  2369. // @@protoc_insertion_point(field_add_mutable:google.protobuf.testing.Data.msgs)
  2370. return msgs_.Add();
  2371. }
  2372. inline void Data::add_msgs(const ::std::string& value) {
  2373. msgs_.Add()->assign(value);
  2374. // @@protoc_insertion_point(field_add:google.protobuf.testing.Data.msgs)
  2375. }
  2376. #if LANG_CXX11
  2377. inline void Data::add_msgs(::std::string&& value) {
  2378. msgs_.Add(std::move(value));
  2379. // @@protoc_insertion_point(field_add:google.protobuf.testing.Data.msgs)
  2380. }
  2381. #endif
  2382. inline void Data::add_msgs(const char* value) {
  2383. GOOGLE_DCHECK(value != NULL);
  2384. msgs_.Add()->assign(value);
  2385. // @@protoc_insertion_point(field_add_char:google.protobuf.testing.Data.msgs)
  2386. }
  2387. inline void Data::add_msgs(const char* value, size_t size) {
  2388. msgs_.Add()->assign(reinterpret_cast<const char*>(value), size);
  2389. // @@protoc_insertion_point(field_add_pointer:google.protobuf.testing.Data.msgs)
  2390. }
  2391. inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
  2392. Data::msgs() const {
  2393. // @@protoc_insertion_point(field_list:google.protobuf.testing.Data.msgs)
  2394. return msgs_;
  2395. }
  2396. inline ::google::protobuf::RepeatedPtrField< ::std::string>*
  2397. Data::mutable_msgs() {
  2398. // @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.Data.msgs)
  2399. return &msgs_;
  2400. }
  2401. // .google.protobuf.testing.Data nested_data = 4;
  2402. inline bool Data::has_nested_data() const {
  2403. return this != internal_default_instance() && nested_data_ != NULL;
  2404. }
  2405. inline void Data::clear_nested_data() {
  2406. if (GetArenaNoVirtual() == NULL && nested_data_ != NULL) {
  2407. delete nested_data_;
  2408. }
  2409. nested_data_ = NULL;
  2410. }
  2411. inline const ::google::protobuf::testing::Data& Data::_internal_nested_data() const {
  2412. return *nested_data_;
  2413. }
  2414. inline const ::google::protobuf::testing::Data& Data::nested_data() const {
  2415. const ::google::protobuf::testing::Data* p = nested_data_;
  2416. // @@protoc_insertion_point(field_get:google.protobuf.testing.Data.nested_data)
  2417. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::Data*>(
  2418. &::google::protobuf::testing::_Data_default_instance_);
  2419. }
  2420. inline ::google::protobuf::testing::Data* Data::release_nested_data() {
  2421. // @@protoc_insertion_point(field_release:google.protobuf.testing.Data.nested_data)
  2422. ::google::protobuf::testing::Data* temp = nested_data_;
  2423. nested_data_ = NULL;
  2424. return temp;
  2425. }
  2426. inline ::google::protobuf::testing::Data* Data::mutable_nested_data() {
  2427. if (nested_data_ == NULL) {
  2428. auto* p = CreateMaybeMessage<::google::protobuf::testing::Data>(GetArenaNoVirtual());
  2429. nested_data_ = p;
  2430. }
  2431. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.Data.nested_data)
  2432. return nested_data_;
  2433. }
  2434. inline void Data::set_allocated_nested_data(::google::protobuf::testing::Data* nested_data) {
  2435. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2436. if (message_arena == NULL) {
  2437. delete nested_data_;
  2438. }
  2439. if (nested_data) {
  2440. ::google::protobuf::Arena* submessage_arena = NULL;
  2441. if (message_arena != submessage_arena) {
  2442. nested_data = ::google::protobuf::internal::GetOwnedMessage(
  2443. message_arena, nested_data, submessage_arena);
  2444. }
  2445. } else {
  2446. }
  2447. nested_data_ = nested_data;
  2448. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.Data.nested_data)
  2449. }
  2450. // .google.protobuf.Int32Value int_wrapper = 5;
  2451. inline bool Data::has_int_wrapper() const {
  2452. return this != internal_default_instance() && int_wrapper_ != NULL;
  2453. }
  2454. inline const ::google::protobuf::Int32Value& Data::_internal_int_wrapper() const {
  2455. return *int_wrapper_;
  2456. }
  2457. inline const ::google::protobuf::Int32Value& Data::int_wrapper() const {
  2458. const ::google::protobuf::Int32Value* p = int_wrapper_;
  2459. // @@protoc_insertion_point(field_get:google.protobuf.testing.Data.int_wrapper)
  2460. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Int32Value*>(
  2461. &::google::protobuf::_Int32Value_default_instance_);
  2462. }
  2463. inline ::google::protobuf::Int32Value* Data::release_int_wrapper() {
  2464. // @@protoc_insertion_point(field_release:google.protobuf.testing.Data.int_wrapper)
  2465. ::google::protobuf::Int32Value* temp = int_wrapper_;
  2466. int_wrapper_ = NULL;
  2467. return temp;
  2468. }
  2469. inline ::google::protobuf::Int32Value* Data::mutable_int_wrapper() {
  2470. if (int_wrapper_ == NULL) {
  2471. auto* p = CreateMaybeMessage<::google::protobuf::Int32Value>(GetArenaNoVirtual());
  2472. int_wrapper_ = p;
  2473. }
  2474. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.Data.int_wrapper)
  2475. return int_wrapper_;
  2476. }
  2477. inline void Data::set_allocated_int_wrapper(::google::protobuf::Int32Value* int_wrapper) {
  2478. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2479. if (message_arena == NULL) {
  2480. delete reinterpret_cast< ::google::protobuf::MessageLite*>(int_wrapper_);
  2481. }
  2482. if (int_wrapper) {
  2483. ::google::protobuf::Arena* submessage_arena =
  2484. reinterpret_cast<::google::protobuf::MessageLite*>(int_wrapper)->GetArena();
  2485. if (message_arena != submessage_arena) {
  2486. int_wrapper = ::google::protobuf::internal::GetOwnedMessage(
  2487. message_arena, int_wrapper, submessage_arena);
  2488. }
  2489. } else {
  2490. }
  2491. int_wrapper_ = int_wrapper;
  2492. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.Data.int_wrapper)
  2493. }
  2494. // .google.protobuf.Timestamp time = 6;
  2495. inline bool Data::has_time() const {
  2496. return this != internal_default_instance() && time_ != NULL;
  2497. }
  2498. inline const ::google::protobuf::Timestamp& Data::_internal_time() const {
  2499. return *time_;
  2500. }
  2501. inline const ::google::protobuf::Timestamp& Data::time() const {
  2502. const ::google::protobuf::Timestamp* p = time_;
  2503. // @@protoc_insertion_point(field_get:google.protobuf.testing.Data.time)
  2504. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Timestamp*>(
  2505. &::google::protobuf::_Timestamp_default_instance_);
  2506. }
  2507. inline ::google::protobuf::Timestamp* Data::release_time() {
  2508. // @@protoc_insertion_point(field_release:google.protobuf.testing.Data.time)
  2509. ::google::protobuf::Timestamp* temp = time_;
  2510. time_ = NULL;
  2511. return temp;
  2512. }
  2513. inline ::google::protobuf::Timestamp* Data::mutable_time() {
  2514. if (time_ == NULL) {
  2515. auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual());
  2516. time_ = p;
  2517. }
  2518. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.Data.time)
  2519. return time_;
  2520. }
  2521. inline void Data::set_allocated_time(::google::protobuf::Timestamp* time) {
  2522. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2523. if (message_arena == NULL) {
  2524. delete reinterpret_cast< ::google::protobuf::MessageLite*>(time_);
  2525. }
  2526. if (time) {
  2527. ::google::protobuf::Arena* submessage_arena =
  2528. reinterpret_cast<::google::protobuf::MessageLite*>(time)->GetArena();
  2529. if (message_arena != submessage_arena) {
  2530. time = ::google::protobuf::internal::GetOwnedMessage(
  2531. message_arena, time, submessage_arena);
  2532. }
  2533. } else {
  2534. }
  2535. time_ = time;
  2536. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.Data.time)
  2537. }
  2538. // map<string, string> map_data = 7;
  2539. inline int Data::map_data_size() const {
  2540. return map_data_.size();
  2541. }
  2542. inline void Data::clear_map_data() {
  2543. map_data_.Clear();
  2544. }
  2545. inline const ::google::protobuf::Map< ::std::string, ::std::string >&
  2546. Data::map_data() const {
  2547. // @@protoc_insertion_point(field_map:google.protobuf.testing.Data.map_data)
  2548. return map_data_.GetMap();
  2549. }
  2550. inline ::google::protobuf::Map< ::std::string, ::std::string >*
  2551. Data::mutable_map_data() {
  2552. // @@protoc_insertion_point(field_mutable_map:google.protobuf.testing.Data.map_data)
  2553. return map_data_.MutableMap();
  2554. }
  2555. // .google.protobuf.Struct struct_data = 8;
  2556. inline bool Data::has_struct_data() const {
  2557. return this != internal_default_instance() && struct_data_ != NULL;
  2558. }
  2559. inline const ::google::protobuf::Struct& Data::_internal_struct_data() const {
  2560. return *struct_data_;
  2561. }
  2562. inline const ::google::protobuf::Struct& Data::struct_data() const {
  2563. const ::google::protobuf::Struct* p = struct_data_;
  2564. // @@protoc_insertion_point(field_get:google.protobuf.testing.Data.struct_data)
  2565. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Struct*>(
  2566. &::google::protobuf::_Struct_default_instance_);
  2567. }
  2568. inline ::google::protobuf::Struct* Data::release_struct_data() {
  2569. // @@protoc_insertion_point(field_release:google.protobuf.testing.Data.struct_data)
  2570. ::google::protobuf::Struct* temp = struct_data_;
  2571. struct_data_ = NULL;
  2572. return temp;
  2573. }
  2574. inline ::google::protobuf::Struct* Data::mutable_struct_data() {
  2575. if (struct_data_ == NULL) {
  2576. auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArenaNoVirtual());
  2577. struct_data_ = p;
  2578. }
  2579. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.Data.struct_data)
  2580. return struct_data_;
  2581. }
  2582. inline void Data::set_allocated_struct_data(::google::protobuf::Struct* struct_data) {
  2583. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2584. if (message_arena == NULL) {
  2585. delete reinterpret_cast< ::google::protobuf::MessageLite*>(struct_data_);
  2586. }
  2587. if (struct_data) {
  2588. ::google::protobuf::Arena* submessage_arena =
  2589. reinterpret_cast<::google::protobuf::MessageLite*>(struct_data)->GetArena();
  2590. if (message_arena != submessage_arena) {
  2591. struct_data = ::google::protobuf::internal::GetOwnedMessage(
  2592. message_arena, struct_data, submessage_arena);
  2593. }
  2594. } else {
  2595. }
  2596. struct_data_ = struct_data;
  2597. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.Data.struct_data)
  2598. }
  2599. // repeated .google.protobuf.testing.Data repeated_data = 9;
  2600. inline int Data::repeated_data_size() const {
  2601. return repeated_data_.size();
  2602. }
  2603. inline void Data::clear_repeated_data() {
  2604. repeated_data_.Clear();
  2605. }
  2606. inline ::google::protobuf::testing::Data* Data::mutable_repeated_data(int index) {
  2607. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.Data.repeated_data)
  2608. return repeated_data_.Mutable(index);
  2609. }
  2610. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::Data >*
  2611. Data::mutable_repeated_data() {
  2612. // @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.Data.repeated_data)
  2613. return &repeated_data_;
  2614. }
  2615. inline const ::google::protobuf::testing::Data& Data::repeated_data(int index) const {
  2616. // @@protoc_insertion_point(field_get:google.protobuf.testing.Data.repeated_data)
  2617. return repeated_data_.Get(index);
  2618. }
  2619. inline ::google::protobuf::testing::Data* Data::add_repeated_data() {
  2620. // @@protoc_insertion_point(field_add:google.protobuf.testing.Data.repeated_data)
  2621. return repeated_data_.Add();
  2622. }
  2623. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::Data >&
  2624. Data::repeated_data() const {
  2625. // @@protoc_insertion_point(field_list:google.protobuf.testing.Data.repeated_data)
  2626. return repeated_data_;
  2627. }
  2628. // -------------------------------------------------------------------
  2629. // AnyIn
  2630. // string something = 1;
  2631. inline void AnyIn::clear_something() {
  2632. something_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2633. }
  2634. inline const ::std::string& AnyIn::something() const {
  2635. // @@protoc_insertion_point(field_get:google.protobuf.testing.AnyIn.something)
  2636. return something_.GetNoArena();
  2637. }
  2638. inline void AnyIn::set_something(const ::std::string& value) {
  2639. something_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  2640. // @@protoc_insertion_point(field_set:google.protobuf.testing.AnyIn.something)
  2641. }
  2642. #if LANG_CXX11
  2643. inline void AnyIn::set_something(::std::string&& value) {
  2644. something_.SetNoArena(
  2645. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  2646. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.testing.AnyIn.something)
  2647. }
  2648. #endif
  2649. inline void AnyIn::set_something(const char* value) {
  2650. GOOGLE_DCHECK(value != NULL);
  2651. something_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  2652. // @@protoc_insertion_point(field_set_char:google.protobuf.testing.AnyIn.something)
  2653. }
  2654. inline void AnyIn::set_something(const char* value, size_t size) {
  2655. something_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  2656. ::std::string(reinterpret_cast<const char*>(value), size));
  2657. // @@protoc_insertion_point(field_set_pointer:google.protobuf.testing.AnyIn.something)
  2658. }
  2659. inline ::std::string* AnyIn::mutable_something() {
  2660. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.AnyIn.something)
  2661. return something_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2662. }
  2663. inline ::std::string* AnyIn::release_something() {
  2664. // @@protoc_insertion_point(field_release:google.protobuf.testing.AnyIn.something)
  2665. return something_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2666. }
  2667. inline void AnyIn::set_allocated_something(::std::string* something) {
  2668. if (something != NULL) {
  2669. } else {
  2670. }
  2671. something_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), something);
  2672. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.AnyIn.something)
  2673. }
  2674. // .google.protobuf.Any any = 2;
  2675. inline bool AnyIn::has_any() const {
  2676. return this != internal_default_instance() && any_ != NULL;
  2677. }
  2678. inline const ::google::protobuf::Any& AnyIn::_internal_any() const {
  2679. return *any_;
  2680. }
  2681. inline const ::google::protobuf::Any& AnyIn::any() const {
  2682. const ::google::protobuf::Any* p = any_;
  2683. // @@protoc_insertion_point(field_get:google.protobuf.testing.AnyIn.any)
  2684. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Any*>(
  2685. &::google::protobuf::_Any_default_instance_);
  2686. }
  2687. inline ::google::protobuf::Any* AnyIn::release_any() {
  2688. // @@protoc_insertion_point(field_release:google.protobuf.testing.AnyIn.any)
  2689. ::google::protobuf::Any* temp = any_;
  2690. any_ = NULL;
  2691. return temp;
  2692. }
  2693. inline ::google::protobuf::Any* AnyIn::mutable_any() {
  2694. if (any_ == NULL) {
  2695. auto* p = CreateMaybeMessage<::google::protobuf::Any>(GetArenaNoVirtual());
  2696. any_ = p;
  2697. }
  2698. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.AnyIn.any)
  2699. return any_;
  2700. }
  2701. inline void AnyIn::set_allocated_any(::google::protobuf::Any* any) {
  2702. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2703. if (message_arena == NULL) {
  2704. delete reinterpret_cast< ::google::protobuf::MessageLite*>(any_);
  2705. }
  2706. if (any) {
  2707. ::google::protobuf::Arena* submessage_arena = NULL;
  2708. if (message_arena != submessage_arena) {
  2709. any = ::google::protobuf::internal::GetOwnedMessage(
  2710. message_arena, any, submessage_arena);
  2711. }
  2712. } else {
  2713. }
  2714. any_ = any;
  2715. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.AnyIn.any)
  2716. }
  2717. // -------------------------------------------------------------------
  2718. // AnyOut
  2719. // .google.protobuf.Any any = 1;
  2720. inline bool AnyOut::has_any() const {
  2721. return this != internal_default_instance() && any_ != NULL;
  2722. }
  2723. inline const ::google::protobuf::Any& AnyOut::_internal_any() const {
  2724. return *any_;
  2725. }
  2726. inline const ::google::protobuf::Any& AnyOut::any() const {
  2727. const ::google::protobuf::Any* p = any_;
  2728. // @@protoc_insertion_point(field_get:google.protobuf.testing.AnyOut.any)
  2729. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Any*>(
  2730. &::google::protobuf::_Any_default_instance_);
  2731. }
  2732. inline ::google::protobuf::Any* AnyOut::release_any() {
  2733. // @@protoc_insertion_point(field_release:google.protobuf.testing.AnyOut.any)
  2734. ::google::protobuf::Any* temp = any_;
  2735. any_ = NULL;
  2736. return temp;
  2737. }
  2738. inline ::google::protobuf::Any* AnyOut::mutable_any() {
  2739. if (any_ == NULL) {
  2740. auto* p = CreateMaybeMessage<::google::protobuf::Any>(GetArenaNoVirtual());
  2741. any_ = p;
  2742. }
  2743. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.AnyOut.any)
  2744. return any_;
  2745. }
  2746. inline void AnyOut::set_allocated_any(::google::protobuf::Any* any) {
  2747. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2748. if (message_arena == NULL) {
  2749. delete reinterpret_cast< ::google::protobuf::MessageLite*>(any_);
  2750. }
  2751. if (any) {
  2752. ::google::protobuf::Arena* submessage_arena = NULL;
  2753. if (message_arena != submessage_arena) {
  2754. any = ::google::protobuf::internal::GetOwnedMessage(
  2755. message_arena, any, submessage_arena);
  2756. }
  2757. } else {
  2758. }
  2759. any_ = any;
  2760. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.AnyOut.any)
  2761. }
  2762. // -------------------------------------------------------------------
  2763. // AnyM
  2764. // string foo = 1;
  2765. inline void AnyM::clear_foo() {
  2766. foo_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2767. }
  2768. inline const ::std::string& AnyM::foo() const {
  2769. // @@protoc_insertion_point(field_get:google.protobuf.testing.AnyM.foo)
  2770. return foo_.GetNoArena();
  2771. }
  2772. inline void AnyM::set_foo(const ::std::string& value) {
  2773. foo_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  2774. // @@protoc_insertion_point(field_set:google.protobuf.testing.AnyM.foo)
  2775. }
  2776. #if LANG_CXX11
  2777. inline void AnyM::set_foo(::std::string&& value) {
  2778. foo_.SetNoArena(
  2779. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  2780. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.testing.AnyM.foo)
  2781. }
  2782. #endif
  2783. inline void AnyM::set_foo(const char* value) {
  2784. GOOGLE_DCHECK(value != NULL);
  2785. foo_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  2786. // @@protoc_insertion_point(field_set_char:google.protobuf.testing.AnyM.foo)
  2787. }
  2788. inline void AnyM::set_foo(const char* value, size_t size) {
  2789. foo_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  2790. ::std::string(reinterpret_cast<const char*>(value), size));
  2791. // @@protoc_insertion_point(field_set_pointer:google.protobuf.testing.AnyM.foo)
  2792. }
  2793. inline ::std::string* AnyM::mutable_foo() {
  2794. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.AnyM.foo)
  2795. return foo_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2796. }
  2797. inline ::std::string* AnyM::release_foo() {
  2798. // @@protoc_insertion_point(field_release:google.protobuf.testing.AnyM.foo)
  2799. return foo_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2800. }
  2801. inline void AnyM::set_allocated_foo(::std::string* foo) {
  2802. if (foo != NULL) {
  2803. } else {
  2804. }
  2805. foo_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), foo);
  2806. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.AnyM.foo)
  2807. }
  2808. #ifdef __GNUC__
  2809. #pragma GCC diagnostic pop
  2810. #endif // __GNUC__
  2811. // -------------------------------------------------------------------
  2812. // -------------------------------------------------------------------
  2813. // -------------------------------------------------------------------
  2814. // -------------------------------------------------------------------
  2815. // -------------------------------------------------------------------
  2816. // -------------------------------------------------------------------
  2817. // -------------------------------------------------------------------
  2818. // @@protoc_insertion_point(namespace_scope)
  2819. } // namespace testing
  2820. } // namespace protobuf
  2821. } // namespace google
  2822. // @@protoc_insertion_point(global_scope)
  2823. #endif // PROTOBUF_INCLUDED_google_2fprotobuf_2futil_2finternal_2ftestdata_2fanys_2eproto