wrappers.pb.h 115 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/util/internal/testdata/wrappers.proto
  3. #ifndef PROTOBUF_INCLUDED_google_2fprotobuf_2futil_2finternal_2ftestdata_2fwrappers_2eproto
  4. #define PROTOBUF_INCLUDED_google_2fprotobuf_2futil_2finternal_2ftestdata_2fwrappers_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/unknown_field_set.h>
  28. #include <google/protobuf/wrappers.pb.h>
  29. // @@protoc_insertion_point(includes)
  30. #define PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fwrappers_2eproto
  31. namespace protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fwrappers_2eproto {
  32. // Internal implementation detail -- do not use these members.
  33. struct TableStruct {
  34. static const ::google::protobuf::internal::ParseTableField entries[];
  35. static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
  36. static const ::google::protobuf::internal::ParseTable schema[10];
  37. static const ::google::protobuf::internal::FieldMetadata field_metadata[];
  38. static const ::google::protobuf::internal::SerializationTable serialization_table[];
  39. static const ::google::protobuf::uint32 offsets[];
  40. };
  41. void AddDescriptors();
  42. } // namespace protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fwrappers_2eproto
  43. namespace google {
  44. namespace protobuf {
  45. namespace testing {
  46. class BoolWrapper;
  47. class BoolWrapperDefaultTypeInternal;
  48. extern BoolWrapperDefaultTypeInternal _BoolWrapper_default_instance_;
  49. class BytesWrapper;
  50. class BytesWrapperDefaultTypeInternal;
  51. extern BytesWrapperDefaultTypeInternal _BytesWrapper_default_instance_;
  52. class DoubleWrapper;
  53. class DoubleWrapperDefaultTypeInternal;
  54. extern DoubleWrapperDefaultTypeInternal _DoubleWrapper_default_instance_;
  55. class FloatWrapper;
  56. class FloatWrapperDefaultTypeInternal;
  57. extern FloatWrapperDefaultTypeInternal _FloatWrapper_default_instance_;
  58. class Int32Wrapper;
  59. class Int32WrapperDefaultTypeInternal;
  60. extern Int32WrapperDefaultTypeInternal _Int32Wrapper_default_instance_;
  61. class Int64Wrapper;
  62. class Int64WrapperDefaultTypeInternal;
  63. extern Int64WrapperDefaultTypeInternal _Int64Wrapper_default_instance_;
  64. class StringWrapper;
  65. class StringWrapperDefaultTypeInternal;
  66. extern StringWrapperDefaultTypeInternal _StringWrapper_default_instance_;
  67. class UInt32Wrapper;
  68. class UInt32WrapperDefaultTypeInternal;
  69. extern UInt32WrapperDefaultTypeInternal _UInt32Wrapper_default_instance_;
  70. class UInt64Wrapper;
  71. class UInt64WrapperDefaultTypeInternal;
  72. extern UInt64WrapperDefaultTypeInternal _UInt64Wrapper_default_instance_;
  73. class WrappersTestCases;
  74. class WrappersTestCasesDefaultTypeInternal;
  75. extern WrappersTestCasesDefaultTypeInternal _WrappersTestCases_default_instance_;
  76. } // namespace testing
  77. } // namespace protobuf
  78. } // namespace google
  79. namespace google {
  80. namespace protobuf {
  81. template<> ::google::protobuf::testing::BoolWrapper* Arena::CreateMaybeMessage<::google::protobuf::testing::BoolWrapper>(Arena*);
  82. template<> ::google::protobuf::testing::BytesWrapper* Arena::CreateMaybeMessage<::google::protobuf::testing::BytesWrapper>(Arena*);
  83. template<> ::google::protobuf::testing::DoubleWrapper* Arena::CreateMaybeMessage<::google::protobuf::testing::DoubleWrapper>(Arena*);
  84. template<> ::google::protobuf::testing::FloatWrapper* Arena::CreateMaybeMessage<::google::protobuf::testing::FloatWrapper>(Arena*);
  85. template<> ::google::protobuf::testing::Int32Wrapper* Arena::CreateMaybeMessage<::google::protobuf::testing::Int32Wrapper>(Arena*);
  86. template<> ::google::protobuf::testing::Int64Wrapper* Arena::CreateMaybeMessage<::google::protobuf::testing::Int64Wrapper>(Arena*);
  87. template<> ::google::protobuf::testing::StringWrapper* Arena::CreateMaybeMessage<::google::protobuf::testing::StringWrapper>(Arena*);
  88. template<> ::google::protobuf::testing::UInt32Wrapper* Arena::CreateMaybeMessage<::google::protobuf::testing::UInt32Wrapper>(Arena*);
  89. template<> ::google::protobuf::testing::UInt64Wrapper* Arena::CreateMaybeMessage<::google::protobuf::testing::UInt64Wrapper>(Arena*);
  90. template<> ::google::protobuf::testing::WrappersTestCases* Arena::CreateMaybeMessage<::google::protobuf::testing::WrappersTestCases>(Arena*);
  91. } // namespace protobuf
  92. } // namespace google
  93. namespace google {
  94. namespace protobuf {
  95. namespace testing {
  96. // ===================================================================
  97. class WrappersTestCases : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.WrappersTestCases) */ {
  98. public:
  99. WrappersTestCases();
  100. virtual ~WrappersTestCases();
  101. WrappersTestCases(const WrappersTestCases& from);
  102. inline WrappersTestCases& operator=(const WrappersTestCases& from) {
  103. CopyFrom(from);
  104. return *this;
  105. }
  106. #if LANG_CXX11
  107. WrappersTestCases(WrappersTestCases&& from) noexcept
  108. : WrappersTestCases() {
  109. *this = ::std::move(from);
  110. }
  111. inline WrappersTestCases& operator=(WrappersTestCases&& from) noexcept {
  112. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  113. if (this != &from) InternalSwap(&from);
  114. } else {
  115. CopyFrom(from);
  116. }
  117. return *this;
  118. }
  119. #endif
  120. static const ::google::protobuf::Descriptor* descriptor();
  121. static const WrappersTestCases& default_instance();
  122. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  123. static inline const WrappersTestCases* internal_default_instance() {
  124. return reinterpret_cast<const WrappersTestCases*>(
  125. &_WrappersTestCases_default_instance_);
  126. }
  127. static constexpr int kIndexInFileMessages =
  128. 0;
  129. void Swap(WrappersTestCases* other);
  130. friend void swap(WrappersTestCases& a, WrappersTestCases& b) {
  131. a.Swap(&b);
  132. }
  133. // implements Message ----------------------------------------------
  134. inline WrappersTestCases* New() const final {
  135. return CreateMaybeMessage<WrappersTestCases>(NULL);
  136. }
  137. WrappersTestCases* New(::google::protobuf::Arena* arena) const final {
  138. return CreateMaybeMessage<WrappersTestCases>(arena);
  139. }
  140. void CopyFrom(const ::google::protobuf::Message& from) final;
  141. void MergeFrom(const ::google::protobuf::Message& from) final;
  142. void CopyFrom(const WrappersTestCases& from);
  143. void MergeFrom(const WrappersTestCases& from);
  144. void Clear() final;
  145. bool IsInitialized() const final;
  146. size_t ByteSizeLong() const final;
  147. bool MergePartialFromCodedStream(
  148. ::google::protobuf::io::CodedInputStream* input) final;
  149. void SerializeWithCachedSizes(
  150. ::google::protobuf::io::CodedOutputStream* output) const final;
  151. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  152. bool deterministic, ::google::protobuf::uint8* target) const final;
  153. int GetCachedSize() const final { return _cached_size_.Get(); }
  154. private:
  155. void SharedCtor();
  156. void SharedDtor();
  157. void SetCachedSize(int size) const final;
  158. void InternalSwap(WrappersTestCases* other);
  159. private:
  160. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  161. return NULL;
  162. }
  163. inline void* MaybeArenaPtr() const {
  164. return NULL;
  165. }
  166. public:
  167. ::google::protobuf::Metadata GetMetadata() const final;
  168. // nested types ----------------------------------------------------
  169. // accessors -------------------------------------------------------
  170. // .google.protobuf.testing.DoubleWrapper double_wrapper = 1;
  171. bool has_double_wrapper() const;
  172. void clear_double_wrapper();
  173. static const int kDoubleWrapperFieldNumber = 1;
  174. private:
  175. const ::google::protobuf::testing::DoubleWrapper& _internal_double_wrapper() const;
  176. public:
  177. const ::google::protobuf::testing::DoubleWrapper& double_wrapper() const;
  178. ::google::protobuf::testing::DoubleWrapper* release_double_wrapper();
  179. ::google::protobuf::testing::DoubleWrapper* mutable_double_wrapper();
  180. void set_allocated_double_wrapper(::google::protobuf::testing::DoubleWrapper* double_wrapper);
  181. // .google.protobuf.testing.FloatWrapper float_wrapper = 2;
  182. bool has_float_wrapper() const;
  183. void clear_float_wrapper();
  184. static const int kFloatWrapperFieldNumber = 2;
  185. private:
  186. const ::google::protobuf::testing::FloatWrapper& _internal_float_wrapper() const;
  187. public:
  188. const ::google::protobuf::testing::FloatWrapper& float_wrapper() const;
  189. ::google::protobuf::testing::FloatWrapper* release_float_wrapper();
  190. ::google::protobuf::testing::FloatWrapper* mutable_float_wrapper();
  191. void set_allocated_float_wrapper(::google::protobuf::testing::FloatWrapper* float_wrapper);
  192. // .google.protobuf.testing.Int64Wrapper int64_wrapper = 3;
  193. bool has_int64_wrapper() const;
  194. void clear_int64_wrapper();
  195. static const int kInt64WrapperFieldNumber = 3;
  196. private:
  197. const ::google::protobuf::testing::Int64Wrapper& _internal_int64_wrapper() const;
  198. public:
  199. const ::google::protobuf::testing::Int64Wrapper& int64_wrapper() const;
  200. ::google::protobuf::testing::Int64Wrapper* release_int64_wrapper();
  201. ::google::protobuf::testing::Int64Wrapper* mutable_int64_wrapper();
  202. void set_allocated_int64_wrapper(::google::protobuf::testing::Int64Wrapper* int64_wrapper);
  203. // .google.protobuf.testing.UInt64Wrapper uint64_wrapper = 4;
  204. bool has_uint64_wrapper() const;
  205. void clear_uint64_wrapper();
  206. static const int kUint64WrapperFieldNumber = 4;
  207. private:
  208. const ::google::protobuf::testing::UInt64Wrapper& _internal_uint64_wrapper() const;
  209. public:
  210. const ::google::protobuf::testing::UInt64Wrapper& uint64_wrapper() const;
  211. ::google::protobuf::testing::UInt64Wrapper* release_uint64_wrapper();
  212. ::google::protobuf::testing::UInt64Wrapper* mutable_uint64_wrapper();
  213. void set_allocated_uint64_wrapper(::google::protobuf::testing::UInt64Wrapper* uint64_wrapper);
  214. // .google.protobuf.testing.Int32Wrapper int32_wrapper = 5;
  215. bool has_int32_wrapper() const;
  216. void clear_int32_wrapper();
  217. static const int kInt32WrapperFieldNumber = 5;
  218. private:
  219. const ::google::protobuf::testing::Int32Wrapper& _internal_int32_wrapper() const;
  220. public:
  221. const ::google::protobuf::testing::Int32Wrapper& int32_wrapper() const;
  222. ::google::protobuf::testing::Int32Wrapper* release_int32_wrapper();
  223. ::google::protobuf::testing::Int32Wrapper* mutable_int32_wrapper();
  224. void set_allocated_int32_wrapper(::google::protobuf::testing::Int32Wrapper* int32_wrapper);
  225. // .google.protobuf.testing.UInt32Wrapper uint32_wrapper = 6;
  226. bool has_uint32_wrapper() const;
  227. void clear_uint32_wrapper();
  228. static const int kUint32WrapperFieldNumber = 6;
  229. private:
  230. const ::google::protobuf::testing::UInt32Wrapper& _internal_uint32_wrapper() const;
  231. public:
  232. const ::google::protobuf::testing::UInt32Wrapper& uint32_wrapper() const;
  233. ::google::protobuf::testing::UInt32Wrapper* release_uint32_wrapper();
  234. ::google::protobuf::testing::UInt32Wrapper* mutable_uint32_wrapper();
  235. void set_allocated_uint32_wrapper(::google::protobuf::testing::UInt32Wrapper* uint32_wrapper);
  236. // .google.protobuf.testing.BoolWrapper bool_wrapper = 7;
  237. bool has_bool_wrapper() const;
  238. void clear_bool_wrapper();
  239. static const int kBoolWrapperFieldNumber = 7;
  240. private:
  241. const ::google::protobuf::testing::BoolWrapper& _internal_bool_wrapper() const;
  242. public:
  243. const ::google::protobuf::testing::BoolWrapper& bool_wrapper() const;
  244. ::google::protobuf::testing::BoolWrapper* release_bool_wrapper();
  245. ::google::protobuf::testing::BoolWrapper* mutable_bool_wrapper();
  246. void set_allocated_bool_wrapper(::google::protobuf::testing::BoolWrapper* bool_wrapper);
  247. // .google.protobuf.testing.StringWrapper string_wrapper = 8;
  248. bool has_string_wrapper() const;
  249. void clear_string_wrapper();
  250. static const int kStringWrapperFieldNumber = 8;
  251. private:
  252. const ::google::protobuf::testing::StringWrapper& _internal_string_wrapper() const;
  253. public:
  254. const ::google::protobuf::testing::StringWrapper& string_wrapper() const;
  255. ::google::protobuf::testing::StringWrapper* release_string_wrapper();
  256. ::google::protobuf::testing::StringWrapper* mutable_string_wrapper();
  257. void set_allocated_string_wrapper(::google::protobuf::testing::StringWrapper* string_wrapper);
  258. // .google.protobuf.testing.BytesWrapper bytes_wrapper = 9;
  259. bool has_bytes_wrapper() const;
  260. void clear_bytes_wrapper();
  261. static const int kBytesWrapperFieldNumber = 9;
  262. private:
  263. const ::google::protobuf::testing::BytesWrapper& _internal_bytes_wrapper() const;
  264. public:
  265. const ::google::protobuf::testing::BytesWrapper& bytes_wrapper() const;
  266. ::google::protobuf::testing::BytesWrapper* release_bytes_wrapper();
  267. ::google::protobuf::testing::BytesWrapper* mutable_bytes_wrapper();
  268. void set_allocated_bytes_wrapper(::google::protobuf::testing::BytesWrapper* bytes_wrapper);
  269. // .google.protobuf.testing.DoubleWrapper double_wrapper_default = 10;
  270. bool has_double_wrapper_default() const;
  271. void clear_double_wrapper_default();
  272. static const int kDoubleWrapperDefaultFieldNumber = 10;
  273. private:
  274. const ::google::protobuf::testing::DoubleWrapper& _internal_double_wrapper_default() const;
  275. public:
  276. const ::google::protobuf::testing::DoubleWrapper& double_wrapper_default() const;
  277. ::google::protobuf::testing::DoubleWrapper* release_double_wrapper_default();
  278. ::google::protobuf::testing::DoubleWrapper* mutable_double_wrapper_default();
  279. void set_allocated_double_wrapper_default(::google::protobuf::testing::DoubleWrapper* double_wrapper_default);
  280. // .google.protobuf.testing.FloatWrapper float_wrapper_default = 11;
  281. bool has_float_wrapper_default() const;
  282. void clear_float_wrapper_default();
  283. static const int kFloatWrapperDefaultFieldNumber = 11;
  284. private:
  285. const ::google::protobuf::testing::FloatWrapper& _internal_float_wrapper_default() const;
  286. public:
  287. const ::google::protobuf::testing::FloatWrapper& float_wrapper_default() const;
  288. ::google::protobuf::testing::FloatWrapper* release_float_wrapper_default();
  289. ::google::protobuf::testing::FloatWrapper* mutable_float_wrapper_default();
  290. void set_allocated_float_wrapper_default(::google::protobuf::testing::FloatWrapper* float_wrapper_default);
  291. // .google.protobuf.testing.Int64Wrapper int64_wrapper_default = 12;
  292. bool has_int64_wrapper_default() const;
  293. void clear_int64_wrapper_default();
  294. static const int kInt64WrapperDefaultFieldNumber = 12;
  295. private:
  296. const ::google::protobuf::testing::Int64Wrapper& _internal_int64_wrapper_default() const;
  297. public:
  298. const ::google::protobuf::testing::Int64Wrapper& int64_wrapper_default() const;
  299. ::google::protobuf::testing::Int64Wrapper* release_int64_wrapper_default();
  300. ::google::protobuf::testing::Int64Wrapper* mutable_int64_wrapper_default();
  301. void set_allocated_int64_wrapper_default(::google::protobuf::testing::Int64Wrapper* int64_wrapper_default);
  302. // .google.protobuf.testing.UInt64Wrapper uint64_wrapper_default = 13;
  303. bool has_uint64_wrapper_default() const;
  304. void clear_uint64_wrapper_default();
  305. static const int kUint64WrapperDefaultFieldNumber = 13;
  306. private:
  307. const ::google::protobuf::testing::UInt64Wrapper& _internal_uint64_wrapper_default() const;
  308. public:
  309. const ::google::protobuf::testing::UInt64Wrapper& uint64_wrapper_default() const;
  310. ::google::protobuf::testing::UInt64Wrapper* release_uint64_wrapper_default();
  311. ::google::protobuf::testing::UInt64Wrapper* mutable_uint64_wrapper_default();
  312. void set_allocated_uint64_wrapper_default(::google::protobuf::testing::UInt64Wrapper* uint64_wrapper_default);
  313. // .google.protobuf.testing.Int32Wrapper int32_wrapper_default = 14;
  314. bool has_int32_wrapper_default() const;
  315. void clear_int32_wrapper_default();
  316. static const int kInt32WrapperDefaultFieldNumber = 14;
  317. private:
  318. const ::google::protobuf::testing::Int32Wrapper& _internal_int32_wrapper_default() const;
  319. public:
  320. const ::google::protobuf::testing::Int32Wrapper& int32_wrapper_default() const;
  321. ::google::protobuf::testing::Int32Wrapper* release_int32_wrapper_default();
  322. ::google::protobuf::testing::Int32Wrapper* mutable_int32_wrapper_default();
  323. void set_allocated_int32_wrapper_default(::google::protobuf::testing::Int32Wrapper* int32_wrapper_default);
  324. // .google.protobuf.testing.UInt32Wrapper uint32_wrapper_default = 15;
  325. bool has_uint32_wrapper_default() const;
  326. void clear_uint32_wrapper_default();
  327. static const int kUint32WrapperDefaultFieldNumber = 15;
  328. private:
  329. const ::google::protobuf::testing::UInt32Wrapper& _internal_uint32_wrapper_default() const;
  330. public:
  331. const ::google::protobuf::testing::UInt32Wrapper& uint32_wrapper_default() const;
  332. ::google::protobuf::testing::UInt32Wrapper* release_uint32_wrapper_default();
  333. ::google::protobuf::testing::UInt32Wrapper* mutable_uint32_wrapper_default();
  334. void set_allocated_uint32_wrapper_default(::google::protobuf::testing::UInt32Wrapper* uint32_wrapper_default);
  335. // .google.protobuf.testing.BoolWrapper bool_wrapper_default = 16;
  336. bool has_bool_wrapper_default() const;
  337. void clear_bool_wrapper_default();
  338. static const int kBoolWrapperDefaultFieldNumber = 16;
  339. private:
  340. const ::google::protobuf::testing::BoolWrapper& _internal_bool_wrapper_default() const;
  341. public:
  342. const ::google::protobuf::testing::BoolWrapper& bool_wrapper_default() const;
  343. ::google::protobuf::testing::BoolWrapper* release_bool_wrapper_default();
  344. ::google::protobuf::testing::BoolWrapper* mutable_bool_wrapper_default();
  345. void set_allocated_bool_wrapper_default(::google::protobuf::testing::BoolWrapper* bool_wrapper_default);
  346. // .google.protobuf.testing.StringWrapper string_wrapper_default = 17;
  347. bool has_string_wrapper_default() const;
  348. void clear_string_wrapper_default();
  349. static const int kStringWrapperDefaultFieldNumber = 17;
  350. private:
  351. const ::google::protobuf::testing::StringWrapper& _internal_string_wrapper_default() const;
  352. public:
  353. const ::google::protobuf::testing::StringWrapper& string_wrapper_default() const;
  354. ::google::protobuf::testing::StringWrapper* release_string_wrapper_default();
  355. ::google::protobuf::testing::StringWrapper* mutable_string_wrapper_default();
  356. void set_allocated_string_wrapper_default(::google::protobuf::testing::StringWrapper* string_wrapper_default);
  357. // .google.protobuf.testing.BytesWrapper bytes_wrapper_default = 18;
  358. bool has_bytes_wrapper_default() const;
  359. void clear_bytes_wrapper_default();
  360. static const int kBytesWrapperDefaultFieldNumber = 18;
  361. private:
  362. const ::google::protobuf::testing::BytesWrapper& _internal_bytes_wrapper_default() const;
  363. public:
  364. const ::google::protobuf::testing::BytesWrapper& bytes_wrapper_default() const;
  365. ::google::protobuf::testing::BytesWrapper* release_bytes_wrapper_default();
  366. ::google::protobuf::testing::BytesWrapper* mutable_bytes_wrapper_default();
  367. void set_allocated_bytes_wrapper_default(::google::protobuf::testing::BytesWrapper* bytes_wrapper_default);
  368. // @@protoc_insertion_point(class_scope:google.protobuf.testing.WrappersTestCases)
  369. private:
  370. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  371. ::google::protobuf::testing::DoubleWrapper* double_wrapper_;
  372. ::google::protobuf::testing::FloatWrapper* float_wrapper_;
  373. ::google::protobuf::testing::Int64Wrapper* int64_wrapper_;
  374. ::google::protobuf::testing::UInt64Wrapper* uint64_wrapper_;
  375. ::google::protobuf::testing::Int32Wrapper* int32_wrapper_;
  376. ::google::protobuf::testing::UInt32Wrapper* uint32_wrapper_;
  377. ::google::protobuf::testing::BoolWrapper* bool_wrapper_;
  378. ::google::protobuf::testing::StringWrapper* string_wrapper_;
  379. ::google::protobuf::testing::BytesWrapper* bytes_wrapper_;
  380. ::google::protobuf::testing::DoubleWrapper* double_wrapper_default_;
  381. ::google::protobuf::testing::FloatWrapper* float_wrapper_default_;
  382. ::google::protobuf::testing::Int64Wrapper* int64_wrapper_default_;
  383. ::google::protobuf::testing::UInt64Wrapper* uint64_wrapper_default_;
  384. ::google::protobuf::testing::Int32Wrapper* int32_wrapper_default_;
  385. ::google::protobuf::testing::UInt32Wrapper* uint32_wrapper_default_;
  386. ::google::protobuf::testing::BoolWrapper* bool_wrapper_default_;
  387. ::google::protobuf::testing::StringWrapper* string_wrapper_default_;
  388. ::google::protobuf::testing::BytesWrapper* bytes_wrapper_default_;
  389. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  390. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fwrappers_2eproto::TableStruct;
  391. };
  392. // -------------------------------------------------------------------
  393. class DoubleWrapper : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.DoubleWrapper) */ {
  394. public:
  395. DoubleWrapper();
  396. virtual ~DoubleWrapper();
  397. DoubleWrapper(const DoubleWrapper& from);
  398. inline DoubleWrapper& operator=(const DoubleWrapper& from) {
  399. CopyFrom(from);
  400. return *this;
  401. }
  402. #if LANG_CXX11
  403. DoubleWrapper(DoubleWrapper&& from) noexcept
  404. : DoubleWrapper() {
  405. *this = ::std::move(from);
  406. }
  407. inline DoubleWrapper& operator=(DoubleWrapper&& from) noexcept {
  408. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  409. if (this != &from) InternalSwap(&from);
  410. } else {
  411. CopyFrom(from);
  412. }
  413. return *this;
  414. }
  415. #endif
  416. static const ::google::protobuf::Descriptor* descriptor();
  417. static const DoubleWrapper& default_instance();
  418. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  419. static inline const DoubleWrapper* internal_default_instance() {
  420. return reinterpret_cast<const DoubleWrapper*>(
  421. &_DoubleWrapper_default_instance_);
  422. }
  423. static constexpr int kIndexInFileMessages =
  424. 1;
  425. void Swap(DoubleWrapper* other);
  426. friend void swap(DoubleWrapper& a, DoubleWrapper& b) {
  427. a.Swap(&b);
  428. }
  429. // implements Message ----------------------------------------------
  430. inline DoubleWrapper* New() const final {
  431. return CreateMaybeMessage<DoubleWrapper>(NULL);
  432. }
  433. DoubleWrapper* New(::google::protobuf::Arena* arena) const final {
  434. return CreateMaybeMessage<DoubleWrapper>(arena);
  435. }
  436. void CopyFrom(const ::google::protobuf::Message& from) final;
  437. void MergeFrom(const ::google::protobuf::Message& from) final;
  438. void CopyFrom(const DoubleWrapper& from);
  439. void MergeFrom(const DoubleWrapper& from);
  440. void Clear() final;
  441. bool IsInitialized() const final;
  442. size_t ByteSizeLong() const final;
  443. bool MergePartialFromCodedStream(
  444. ::google::protobuf::io::CodedInputStream* input) final;
  445. void SerializeWithCachedSizes(
  446. ::google::protobuf::io::CodedOutputStream* output) const final;
  447. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  448. bool deterministic, ::google::protobuf::uint8* target) const final;
  449. int GetCachedSize() const final { return _cached_size_.Get(); }
  450. private:
  451. void SharedCtor();
  452. void SharedDtor();
  453. void SetCachedSize(int size) const final;
  454. void InternalSwap(DoubleWrapper* other);
  455. private:
  456. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  457. return NULL;
  458. }
  459. inline void* MaybeArenaPtr() const {
  460. return NULL;
  461. }
  462. public:
  463. ::google::protobuf::Metadata GetMetadata() const final;
  464. // nested types ----------------------------------------------------
  465. // accessors -------------------------------------------------------
  466. // .google.protobuf.DoubleValue double = 1;
  467. bool has_double_() const;
  468. void clear_double_();
  469. static const int kDoubleFieldNumber = 1;
  470. private:
  471. const ::google::protobuf::DoubleValue& _internal_double_() const;
  472. public:
  473. const ::google::protobuf::DoubleValue& double_() const;
  474. ::google::protobuf::DoubleValue* release_double_();
  475. ::google::protobuf::DoubleValue* mutable_double_();
  476. void set_allocated_double_(::google::protobuf::DoubleValue* double_);
  477. // @@protoc_insertion_point(class_scope:google.protobuf.testing.DoubleWrapper)
  478. private:
  479. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  480. ::google::protobuf::DoubleValue* double__;
  481. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  482. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fwrappers_2eproto::TableStruct;
  483. };
  484. // -------------------------------------------------------------------
  485. class FloatWrapper : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.FloatWrapper) */ {
  486. public:
  487. FloatWrapper();
  488. virtual ~FloatWrapper();
  489. FloatWrapper(const FloatWrapper& from);
  490. inline FloatWrapper& operator=(const FloatWrapper& from) {
  491. CopyFrom(from);
  492. return *this;
  493. }
  494. #if LANG_CXX11
  495. FloatWrapper(FloatWrapper&& from) noexcept
  496. : FloatWrapper() {
  497. *this = ::std::move(from);
  498. }
  499. inline FloatWrapper& operator=(FloatWrapper&& from) noexcept {
  500. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  501. if (this != &from) InternalSwap(&from);
  502. } else {
  503. CopyFrom(from);
  504. }
  505. return *this;
  506. }
  507. #endif
  508. static const ::google::protobuf::Descriptor* descriptor();
  509. static const FloatWrapper& default_instance();
  510. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  511. static inline const FloatWrapper* internal_default_instance() {
  512. return reinterpret_cast<const FloatWrapper*>(
  513. &_FloatWrapper_default_instance_);
  514. }
  515. static constexpr int kIndexInFileMessages =
  516. 2;
  517. void Swap(FloatWrapper* other);
  518. friend void swap(FloatWrapper& a, FloatWrapper& b) {
  519. a.Swap(&b);
  520. }
  521. // implements Message ----------------------------------------------
  522. inline FloatWrapper* New() const final {
  523. return CreateMaybeMessage<FloatWrapper>(NULL);
  524. }
  525. FloatWrapper* New(::google::protobuf::Arena* arena) const final {
  526. return CreateMaybeMessage<FloatWrapper>(arena);
  527. }
  528. void CopyFrom(const ::google::protobuf::Message& from) final;
  529. void MergeFrom(const ::google::protobuf::Message& from) final;
  530. void CopyFrom(const FloatWrapper& from);
  531. void MergeFrom(const FloatWrapper& from);
  532. void Clear() final;
  533. bool IsInitialized() const final;
  534. size_t ByteSizeLong() const final;
  535. bool MergePartialFromCodedStream(
  536. ::google::protobuf::io::CodedInputStream* input) final;
  537. void SerializeWithCachedSizes(
  538. ::google::protobuf::io::CodedOutputStream* output) const final;
  539. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  540. bool deterministic, ::google::protobuf::uint8* target) const final;
  541. int GetCachedSize() const final { return _cached_size_.Get(); }
  542. private:
  543. void SharedCtor();
  544. void SharedDtor();
  545. void SetCachedSize(int size) const final;
  546. void InternalSwap(FloatWrapper* other);
  547. private:
  548. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  549. return NULL;
  550. }
  551. inline void* MaybeArenaPtr() const {
  552. return NULL;
  553. }
  554. public:
  555. ::google::protobuf::Metadata GetMetadata() const final;
  556. // nested types ----------------------------------------------------
  557. // accessors -------------------------------------------------------
  558. // .google.protobuf.FloatValue float = 1;
  559. bool has_float_() const;
  560. void clear_float_();
  561. static const int kFloatFieldNumber = 1;
  562. private:
  563. const ::google::protobuf::FloatValue& _internal_float_() const;
  564. public:
  565. const ::google::protobuf::FloatValue& float_() const;
  566. ::google::protobuf::FloatValue* release_float_();
  567. ::google::protobuf::FloatValue* mutable_float_();
  568. void set_allocated_float_(::google::protobuf::FloatValue* float_);
  569. // @@protoc_insertion_point(class_scope:google.protobuf.testing.FloatWrapper)
  570. private:
  571. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  572. ::google::protobuf::FloatValue* float__;
  573. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  574. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fwrappers_2eproto::TableStruct;
  575. };
  576. // -------------------------------------------------------------------
  577. class Int64Wrapper : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.Int64Wrapper) */ {
  578. public:
  579. Int64Wrapper();
  580. virtual ~Int64Wrapper();
  581. Int64Wrapper(const Int64Wrapper& from);
  582. inline Int64Wrapper& operator=(const Int64Wrapper& from) {
  583. CopyFrom(from);
  584. return *this;
  585. }
  586. #if LANG_CXX11
  587. Int64Wrapper(Int64Wrapper&& from) noexcept
  588. : Int64Wrapper() {
  589. *this = ::std::move(from);
  590. }
  591. inline Int64Wrapper& operator=(Int64Wrapper&& from) noexcept {
  592. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  593. if (this != &from) InternalSwap(&from);
  594. } else {
  595. CopyFrom(from);
  596. }
  597. return *this;
  598. }
  599. #endif
  600. static const ::google::protobuf::Descriptor* descriptor();
  601. static const Int64Wrapper& default_instance();
  602. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  603. static inline const Int64Wrapper* internal_default_instance() {
  604. return reinterpret_cast<const Int64Wrapper*>(
  605. &_Int64Wrapper_default_instance_);
  606. }
  607. static constexpr int kIndexInFileMessages =
  608. 3;
  609. void Swap(Int64Wrapper* other);
  610. friend void swap(Int64Wrapper& a, Int64Wrapper& b) {
  611. a.Swap(&b);
  612. }
  613. // implements Message ----------------------------------------------
  614. inline Int64Wrapper* New() const final {
  615. return CreateMaybeMessage<Int64Wrapper>(NULL);
  616. }
  617. Int64Wrapper* New(::google::protobuf::Arena* arena) const final {
  618. return CreateMaybeMessage<Int64Wrapper>(arena);
  619. }
  620. void CopyFrom(const ::google::protobuf::Message& from) final;
  621. void MergeFrom(const ::google::protobuf::Message& from) final;
  622. void CopyFrom(const Int64Wrapper& from);
  623. void MergeFrom(const Int64Wrapper& from);
  624. void Clear() final;
  625. bool IsInitialized() const final;
  626. size_t ByteSizeLong() const final;
  627. bool MergePartialFromCodedStream(
  628. ::google::protobuf::io::CodedInputStream* input) final;
  629. void SerializeWithCachedSizes(
  630. ::google::protobuf::io::CodedOutputStream* output) const final;
  631. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  632. bool deterministic, ::google::protobuf::uint8* target) const final;
  633. int GetCachedSize() const final { return _cached_size_.Get(); }
  634. private:
  635. void SharedCtor();
  636. void SharedDtor();
  637. void SetCachedSize(int size) const final;
  638. void InternalSwap(Int64Wrapper* other);
  639. private:
  640. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  641. return NULL;
  642. }
  643. inline void* MaybeArenaPtr() const {
  644. return NULL;
  645. }
  646. public:
  647. ::google::protobuf::Metadata GetMetadata() const final;
  648. // nested types ----------------------------------------------------
  649. // accessors -------------------------------------------------------
  650. // .google.protobuf.Int64Value int64 = 1;
  651. bool has_int64() const;
  652. void clear_int64();
  653. static const int kInt64FieldNumber = 1;
  654. private:
  655. const ::google::protobuf::Int64Value& _internal_int64() const;
  656. public:
  657. const ::google::protobuf::Int64Value& int64() const;
  658. ::google::protobuf::Int64Value* release_int64();
  659. ::google::protobuf::Int64Value* mutable_int64();
  660. void set_allocated_int64(::google::protobuf::Int64Value* int64);
  661. // @@protoc_insertion_point(class_scope:google.protobuf.testing.Int64Wrapper)
  662. private:
  663. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  664. ::google::protobuf::Int64Value* int64_;
  665. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  666. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fwrappers_2eproto::TableStruct;
  667. };
  668. // -------------------------------------------------------------------
  669. class UInt64Wrapper : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.UInt64Wrapper) */ {
  670. public:
  671. UInt64Wrapper();
  672. virtual ~UInt64Wrapper();
  673. UInt64Wrapper(const UInt64Wrapper& from);
  674. inline UInt64Wrapper& operator=(const UInt64Wrapper& from) {
  675. CopyFrom(from);
  676. return *this;
  677. }
  678. #if LANG_CXX11
  679. UInt64Wrapper(UInt64Wrapper&& from) noexcept
  680. : UInt64Wrapper() {
  681. *this = ::std::move(from);
  682. }
  683. inline UInt64Wrapper& operator=(UInt64Wrapper&& from) noexcept {
  684. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  685. if (this != &from) InternalSwap(&from);
  686. } else {
  687. CopyFrom(from);
  688. }
  689. return *this;
  690. }
  691. #endif
  692. static const ::google::protobuf::Descriptor* descriptor();
  693. static const UInt64Wrapper& default_instance();
  694. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  695. static inline const UInt64Wrapper* internal_default_instance() {
  696. return reinterpret_cast<const UInt64Wrapper*>(
  697. &_UInt64Wrapper_default_instance_);
  698. }
  699. static constexpr int kIndexInFileMessages =
  700. 4;
  701. void Swap(UInt64Wrapper* other);
  702. friend void swap(UInt64Wrapper& a, UInt64Wrapper& b) {
  703. a.Swap(&b);
  704. }
  705. // implements Message ----------------------------------------------
  706. inline UInt64Wrapper* New() const final {
  707. return CreateMaybeMessage<UInt64Wrapper>(NULL);
  708. }
  709. UInt64Wrapper* New(::google::protobuf::Arena* arena) const final {
  710. return CreateMaybeMessage<UInt64Wrapper>(arena);
  711. }
  712. void CopyFrom(const ::google::protobuf::Message& from) final;
  713. void MergeFrom(const ::google::protobuf::Message& from) final;
  714. void CopyFrom(const UInt64Wrapper& from);
  715. void MergeFrom(const UInt64Wrapper& from);
  716. void Clear() final;
  717. bool IsInitialized() const final;
  718. size_t ByteSizeLong() const final;
  719. bool MergePartialFromCodedStream(
  720. ::google::protobuf::io::CodedInputStream* input) final;
  721. void SerializeWithCachedSizes(
  722. ::google::protobuf::io::CodedOutputStream* output) const final;
  723. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  724. bool deterministic, ::google::protobuf::uint8* target) const final;
  725. int GetCachedSize() const final { return _cached_size_.Get(); }
  726. private:
  727. void SharedCtor();
  728. void SharedDtor();
  729. void SetCachedSize(int size) const final;
  730. void InternalSwap(UInt64Wrapper* other);
  731. private:
  732. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  733. return NULL;
  734. }
  735. inline void* MaybeArenaPtr() const {
  736. return NULL;
  737. }
  738. public:
  739. ::google::protobuf::Metadata GetMetadata() const final;
  740. // nested types ----------------------------------------------------
  741. // accessors -------------------------------------------------------
  742. // .google.protobuf.UInt64Value uint64 = 1;
  743. bool has_uint64() const;
  744. void clear_uint64();
  745. static const int kUint64FieldNumber = 1;
  746. private:
  747. const ::google::protobuf::UInt64Value& _internal_uint64() const;
  748. public:
  749. const ::google::protobuf::UInt64Value& uint64() const;
  750. ::google::protobuf::UInt64Value* release_uint64();
  751. ::google::protobuf::UInt64Value* mutable_uint64();
  752. void set_allocated_uint64(::google::protobuf::UInt64Value* uint64);
  753. // @@protoc_insertion_point(class_scope:google.protobuf.testing.UInt64Wrapper)
  754. private:
  755. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  756. ::google::protobuf::UInt64Value* uint64_;
  757. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  758. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fwrappers_2eproto::TableStruct;
  759. };
  760. // -------------------------------------------------------------------
  761. class Int32Wrapper : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.Int32Wrapper) */ {
  762. public:
  763. Int32Wrapper();
  764. virtual ~Int32Wrapper();
  765. Int32Wrapper(const Int32Wrapper& from);
  766. inline Int32Wrapper& operator=(const Int32Wrapper& from) {
  767. CopyFrom(from);
  768. return *this;
  769. }
  770. #if LANG_CXX11
  771. Int32Wrapper(Int32Wrapper&& from) noexcept
  772. : Int32Wrapper() {
  773. *this = ::std::move(from);
  774. }
  775. inline Int32Wrapper& operator=(Int32Wrapper&& from) noexcept {
  776. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  777. if (this != &from) InternalSwap(&from);
  778. } else {
  779. CopyFrom(from);
  780. }
  781. return *this;
  782. }
  783. #endif
  784. static const ::google::protobuf::Descriptor* descriptor();
  785. static const Int32Wrapper& default_instance();
  786. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  787. static inline const Int32Wrapper* internal_default_instance() {
  788. return reinterpret_cast<const Int32Wrapper*>(
  789. &_Int32Wrapper_default_instance_);
  790. }
  791. static constexpr int kIndexInFileMessages =
  792. 5;
  793. void Swap(Int32Wrapper* other);
  794. friend void swap(Int32Wrapper& a, Int32Wrapper& b) {
  795. a.Swap(&b);
  796. }
  797. // implements Message ----------------------------------------------
  798. inline Int32Wrapper* New() const final {
  799. return CreateMaybeMessage<Int32Wrapper>(NULL);
  800. }
  801. Int32Wrapper* New(::google::protobuf::Arena* arena) const final {
  802. return CreateMaybeMessage<Int32Wrapper>(arena);
  803. }
  804. void CopyFrom(const ::google::protobuf::Message& from) final;
  805. void MergeFrom(const ::google::protobuf::Message& from) final;
  806. void CopyFrom(const Int32Wrapper& from);
  807. void MergeFrom(const Int32Wrapper& from);
  808. void Clear() final;
  809. bool IsInitialized() const final;
  810. size_t ByteSizeLong() const final;
  811. bool MergePartialFromCodedStream(
  812. ::google::protobuf::io::CodedInputStream* input) final;
  813. void SerializeWithCachedSizes(
  814. ::google::protobuf::io::CodedOutputStream* output) const final;
  815. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  816. bool deterministic, ::google::protobuf::uint8* target) const final;
  817. int GetCachedSize() const final { return _cached_size_.Get(); }
  818. private:
  819. void SharedCtor();
  820. void SharedDtor();
  821. void SetCachedSize(int size) const final;
  822. void InternalSwap(Int32Wrapper* other);
  823. private:
  824. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  825. return NULL;
  826. }
  827. inline void* MaybeArenaPtr() const {
  828. return NULL;
  829. }
  830. public:
  831. ::google::protobuf::Metadata GetMetadata() const final;
  832. // nested types ----------------------------------------------------
  833. // accessors -------------------------------------------------------
  834. // .google.protobuf.Int32Value int32 = 1;
  835. bool has_int32() const;
  836. void clear_int32();
  837. static const int kInt32FieldNumber = 1;
  838. private:
  839. const ::google::protobuf::Int32Value& _internal_int32() const;
  840. public:
  841. const ::google::protobuf::Int32Value& int32() const;
  842. ::google::protobuf::Int32Value* release_int32();
  843. ::google::protobuf::Int32Value* mutable_int32();
  844. void set_allocated_int32(::google::protobuf::Int32Value* int32);
  845. // @@protoc_insertion_point(class_scope:google.protobuf.testing.Int32Wrapper)
  846. private:
  847. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  848. ::google::protobuf::Int32Value* int32_;
  849. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  850. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fwrappers_2eproto::TableStruct;
  851. };
  852. // -------------------------------------------------------------------
  853. class UInt32Wrapper : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.UInt32Wrapper) */ {
  854. public:
  855. UInt32Wrapper();
  856. virtual ~UInt32Wrapper();
  857. UInt32Wrapper(const UInt32Wrapper& from);
  858. inline UInt32Wrapper& operator=(const UInt32Wrapper& from) {
  859. CopyFrom(from);
  860. return *this;
  861. }
  862. #if LANG_CXX11
  863. UInt32Wrapper(UInt32Wrapper&& from) noexcept
  864. : UInt32Wrapper() {
  865. *this = ::std::move(from);
  866. }
  867. inline UInt32Wrapper& operator=(UInt32Wrapper&& from) noexcept {
  868. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  869. if (this != &from) InternalSwap(&from);
  870. } else {
  871. CopyFrom(from);
  872. }
  873. return *this;
  874. }
  875. #endif
  876. static const ::google::protobuf::Descriptor* descriptor();
  877. static const UInt32Wrapper& default_instance();
  878. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  879. static inline const UInt32Wrapper* internal_default_instance() {
  880. return reinterpret_cast<const UInt32Wrapper*>(
  881. &_UInt32Wrapper_default_instance_);
  882. }
  883. static constexpr int kIndexInFileMessages =
  884. 6;
  885. void Swap(UInt32Wrapper* other);
  886. friend void swap(UInt32Wrapper& a, UInt32Wrapper& b) {
  887. a.Swap(&b);
  888. }
  889. // implements Message ----------------------------------------------
  890. inline UInt32Wrapper* New() const final {
  891. return CreateMaybeMessage<UInt32Wrapper>(NULL);
  892. }
  893. UInt32Wrapper* New(::google::protobuf::Arena* arena) const final {
  894. return CreateMaybeMessage<UInt32Wrapper>(arena);
  895. }
  896. void CopyFrom(const ::google::protobuf::Message& from) final;
  897. void MergeFrom(const ::google::protobuf::Message& from) final;
  898. void CopyFrom(const UInt32Wrapper& from);
  899. void MergeFrom(const UInt32Wrapper& from);
  900. void Clear() final;
  901. bool IsInitialized() const final;
  902. size_t ByteSizeLong() const final;
  903. bool MergePartialFromCodedStream(
  904. ::google::protobuf::io::CodedInputStream* input) final;
  905. void SerializeWithCachedSizes(
  906. ::google::protobuf::io::CodedOutputStream* output) const final;
  907. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  908. bool deterministic, ::google::protobuf::uint8* target) const final;
  909. int GetCachedSize() const final { return _cached_size_.Get(); }
  910. private:
  911. void SharedCtor();
  912. void SharedDtor();
  913. void SetCachedSize(int size) const final;
  914. void InternalSwap(UInt32Wrapper* other);
  915. private:
  916. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  917. return NULL;
  918. }
  919. inline void* MaybeArenaPtr() const {
  920. return NULL;
  921. }
  922. public:
  923. ::google::protobuf::Metadata GetMetadata() const final;
  924. // nested types ----------------------------------------------------
  925. // accessors -------------------------------------------------------
  926. // .google.protobuf.UInt32Value uint32 = 1;
  927. bool has_uint32() const;
  928. void clear_uint32();
  929. static const int kUint32FieldNumber = 1;
  930. private:
  931. const ::google::protobuf::UInt32Value& _internal_uint32() const;
  932. public:
  933. const ::google::protobuf::UInt32Value& uint32() const;
  934. ::google::protobuf::UInt32Value* release_uint32();
  935. ::google::protobuf::UInt32Value* mutable_uint32();
  936. void set_allocated_uint32(::google::protobuf::UInt32Value* uint32);
  937. // @@protoc_insertion_point(class_scope:google.protobuf.testing.UInt32Wrapper)
  938. private:
  939. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  940. ::google::protobuf::UInt32Value* uint32_;
  941. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  942. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fwrappers_2eproto::TableStruct;
  943. };
  944. // -------------------------------------------------------------------
  945. class BoolWrapper : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.BoolWrapper) */ {
  946. public:
  947. BoolWrapper();
  948. virtual ~BoolWrapper();
  949. BoolWrapper(const BoolWrapper& from);
  950. inline BoolWrapper& operator=(const BoolWrapper& from) {
  951. CopyFrom(from);
  952. return *this;
  953. }
  954. #if LANG_CXX11
  955. BoolWrapper(BoolWrapper&& from) noexcept
  956. : BoolWrapper() {
  957. *this = ::std::move(from);
  958. }
  959. inline BoolWrapper& operator=(BoolWrapper&& 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 BoolWrapper& default_instance();
  970. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  971. static inline const BoolWrapper* internal_default_instance() {
  972. return reinterpret_cast<const BoolWrapper*>(
  973. &_BoolWrapper_default_instance_);
  974. }
  975. static constexpr int kIndexInFileMessages =
  976. 7;
  977. void Swap(BoolWrapper* other);
  978. friend void swap(BoolWrapper& a, BoolWrapper& b) {
  979. a.Swap(&b);
  980. }
  981. // implements Message ----------------------------------------------
  982. inline BoolWrapper* New() const final {
  983. return CreateMaybeMessage<BoolWrapper>(NULL);
  984. }
  985. BoolWrapper* New(::google::protobuf::Arena* arena) const final {
  986. return CreateMaybeMessage<BoolWrapper>(arena);
  987. }
  988. void CopyFrom(const ::google::protobuf::Message& from) final;
  989. void MergeFrom(const ::google::protobuf::Message& from) final;
  990. void CopyFrom(const BoolWrapper& from);
  991. void MergeFrom(const BoolWrapper& 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(BoolWrapper* 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.BoolValue bool = 1;
  1019. bool has_bool_() const;
  1020. void clear_bool_();
  1021. static const int kBoolFieldNumber = 1;
  1022. private:
  1023. const ::google::protobuf::BoolValue& _internal_bool_() const;
  1024. public:
  1025. const ::google::protobuf::BoolValue& bool_() const;
  1026. ::google::protobuf::BoolValue* release_bool_();
  1027. ::google::protobuf::BoolValue* mutable_bool_();
  1028. void set_allocated_bool_(::google::protobuf::BoolValue* bool_);
  1029. // @@protoc_insertion_point(class_scope:google.protobuf.testing.BoolWrapper)
  1030. private:
  1031. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1032. ::google::protobuf::BoolValue* bool__;
  1033. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1034. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fwrappers_2eproto::TableStruct;
  1035. };
  1036. // -------------------------------------------------------------------
  1037. class StringWrapper : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.StringWrapper) */ {
  1038. public:
  1039. StringWrapper();
  1040. virtual ~StringWrapper();
  1041. StringWrapper(const StringWrapper& from);
  1042. inline StringWrapper& operator=(const StringWrapper& from) {
  1043. CopyFrom(from);
  1044. return *this;
  1045. }
  1046. #if LANG_CXX11
  1047. StringWrapper(StringWrapper&& from) noexcept
  1048. : StringWrapper() {
  1049. *this = ::std::move(from);
  1050. }
  1051. inline StringWrapper& operator=(StringWrapper&& 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 StringWrapper& default_instance();
  1062. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1063. static inline const StringWrapper* internal_default_instance() {
  1064. return reinterpret_cast<const StringWrapper*>(
  1065. &_StringWrapper_default_instance_);
  1066. }
  1067. static constexpr int kIndexInFileMessages =
  1068. 8;
  1069. void Swap(StringWrapper* other);
  1070. friend void swap(StringWrapper& a, StringWrapper& b) {
  1071. a.Swap(&b);
  1072. }
  1073. // implements Message ----------------------------------------------
  1074. inline StringWrapper* New() const final {
  1075. return CreateMaybeMessage<StringWrapper>(NULL);
  1076. }
  1077. StringWrapper* New(::google::protobuf::Arena* arena) const final {
  1078. return CreateMaybeMessage<StringWrapper>(arena);
  1079. }
  1080. void CopyFrom(const ::google::protobuf::Message& from) final;
  1081. void MergeFrom(const ::google::protobuf::Message& from) final;
  1082. void CopyFrom(const StringWrapper& from);
  1083. void MergeFrom(const StringWrapper& 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(StringWrapper* 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. // .google.protobuf.StringValue string = 1;
  1111. bool has_string() const;
  1112. void clear_string();
  1113. static const int kStringFieldNumber = 1;
  1114. private:
  1115. const ::google::protobuf::StringValue& _internal_string() const;
  1116. public:
  1117. const ::google::protobuf::StringValue& string() const;
  1118. ::google::protobuf::StringValue* release_string();
  1119. ::google::protobuf::StringValue* mutable_string();
  1120. void set_allocated_string(::google::protobuf::StringValue* string);
  1121. // @@protoc_insertion_point(class_scope:google.protobuf.testing.StringWrapper)
  1122. private:
  1123. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1124. ::google::protobuf::StringValue* string_;
  1125. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1126. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fwrappers_2eproto::TableStruct;
  1127. };
  1128. // -------------------------------------------------------------------
  1129. class BytesWrapper : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.BytesWrapper) */ {
  1130. public:
  1131. BytesWrapper();
  1132. virtual ~BytesWrapper();
  1133. BytesWrapper(const BytesWrapper& from);
  1134. inline BytesWrapper& operator=(const BytesWrapper& from) {
  1135. CopyFrom(from);
  1136. return *this;
  1137. }
  1138. #if LANG_CXX11
  1139. BytesWrapper(BytesWrapper&& from) noexcept
  1140. : BytesWrapper() {
  1141. *this = ::std::move(from);
  1142. }
  1143. inline BytesWrapper& operator=(BytesWrapper&& from) noexcept {
  1144. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1145. if (this != &from) InternalSwap(&from);
  1146. } else {
  1147. CopyFrom(from);
  1148. }
  1149. return *this;
  1150. }
  1151. #endif
  1152. static const ::google::protobuf::Descriptor* descriptor();
  1153. static const BytesWrapper& default_instance();
  1154. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1155. static inline const BytesWrapper* internal_default_instance() {
  1156. return reinterpret_cast<const BytesWrapper*>(
  1157. &_BytesWrapper_default_instance_);
  1158. }
  1159. static constexpr int kIndexInFileMessages =
  1160. 9;
  1161. void Swap(BytesWrapper* other);
  1162. friend void swap(BytesWrapper& a, BytesWrapper& b) {
  1163. a.Swap(&b);
  1164. }
  1165. // implements Message ----------------------------------------------
  1166. inline BytesWrapper* New() const final {
  1167. return CreateMaybeMessage<BytesWrapper>(NULL);
  1168. }
  1169. BytesWrapper* New(::google::protobuf::Arena* arena) const final {
  1170. return CreateMaybeMessage<BytesWrapper>(arena);
  1171. }
  1172. void CopyFrom(const ::google::protobuf::Message& from) final;
  1173. void MergeFrom(const ::google::protobuf::Message& from) final;
  1174. void CopyFrom(const BytesWrapper& from);
  1175. void MergeFrom(const BytesWrapper& from);
  1176. void Clear() final;
  1177. bool IsInitialized() const final;
  1178. size_t ByteSizeLong() const final;
  1179. bool MergePartialFromCodedStream(
  1180. ::google::protobuf::io::CodedInputStream* input) final;
  1181. void SerializeWithCachedSizes(
  1182. ::google::protobuf::io::CodedOutputStream* output) const final;
  1183. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1184. bool deterministic, ::google::protobuf::uint8* target) const final;
  1185. int GetCachedSize() const final { return _cached_size_.Get(); }
  1186. private:
  1187. void SharedCtor();
  1188. void SharedDtor();
  1189. void SetCachedSize(int size) const final;
  1190. void InternalSwap(BytesWrapper* other);
  1191. private:
  1192. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1193. return NULL;
  1194. }
  1195. inline void* MaybeArenaPtr() const {
  1196. return NULL;
  1197. }
  1198. public:
  1199. ::google::protobuf::Metadata GetMetadata() const final;
  1200. // nested types ----------------------------------------------------
  1201. // accessors -------------------------------------------------------
  1202. // .google.protobuf.BytesValue bytes = 1;
  1203. bool has_bytes() const;
  1204. void clear_bytes();
  1205. static const int kBytesFieldNumber = 1;
  1206. private:
  1207. const ::google::protobuf::BytesValue& _internal_bytes() const;
  1208. public:
  1209. const ::google::protobuf::BytesValue& bytes() const;
  1210. ::google::protobuf::BytesValue* release_bytes();
  1211. ::google::protobuf::BytesValue* mutable_bytes();
  1212. void set_allocated_bytes(::google::protobuf::BytesValue* bytes);
  1213. // @@protoc_insertion_point(class_scope:google.protobuf.testing.BytesWrapper)
  1214. private:
  1215. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1216. ::google::protobuf::BytesValue* bytes_;
  1217. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1218. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fwrappers_2eproto::TableStruct;
  1219. };
  1220. // ===================================================================
  1221. // ===================================================================
  1222. #ifdef __GNUC__
  1223. #pragma GCC diagnostic push
  1224. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  1225. #endif // __GNUC__
  1226. // WrappersTestCases
  1227. // .google.protobuf.testing.DoubleWrapper double_wrapper = 1;
  1228. inline bool WrappersTestCases::has_double_wrapper() const {
  1229. return this != internal_default_instance() && double_wrapper_ != NULL;
  1230. }
  1231. inline void WrappersTestCases::clear_double_wrapper() {
  1232. if (GetArenaNoVirtual() == NULL && double_wrapper_ != NULL) {
  1233. delete double_wrapper_;
  1234. }
  1235. double_wrapper_ = NULL;
  1236. }
  1237. inline const ::google::protobuf::testing::DoubleWrapper& WrappersTestCases::_internal_double_wrapper() const {
  1238. return *double_wrapper_;
  1239. }
  1240. inline const ::google::protobuf::testing::DoubleWrapper& WrappersTestCases::double_wrapper() const {
  1241. const ::google::protobuf::testing::DoubleWrapper* p = double_wrapper_;
  1242. // @@protoc_insertion_point(field_get:google.protobuf.testing.WrappersTestCases.double_wrapper)
  1243. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::DoubleWrapper*>(
  1244. &::google::protobuf::testing::_DoubleWrapper_default_instance_);
  1245. }
  1246. inline ::google::protobuf::testing::DoubleWrapper* WrappersTestCases::release_double_wrapper() {
  1247. // @@protoc_insertion_point(field_release:google.protobuf.testing.WrappersTestCases.double_wrapper)
  1248. ::google::protobuf::testing::DoubleWrapper* temp = double_wrapper_;
  1249. double_wrapper_ = NULL;
  1250. return temp;
  1251. }
  1252. inline ::google::protobuf::testing::DoubleWrapper* WrappersTestCases::mutable_double_wrapper() {
  1253. if (double_wrapper_ == NULL) {
  1254. auto* p = CreateMaybeMessage<::google::protobuf::testing::DoubleWrapper>(GetArenaNoVirtual());
  1255. double_wrapper_ = p;
  1256. }
  1257. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.WrappersTestCases.double_wrapper)
  1258. return double_wrapper_;
  1259. }
  1260. inline void WrappersTestCases::set_allocated_double_wrapper(::google::protobuf::testing::DoubleWrapper* double_wrapper) {
  1261. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1262. if (message_arena == NULL) {
  1263. delete double_wrapper_;
  1264. }
  1265. if (double_wrapper) {
  1266. ::google::protobuf::Arena* submessage_arena = NULL;
  1267. if (message_arena != submessage_arena) {
  1268. double_wrapper = ::google::protobuf::internal::GetOwnedMessage(
  1269. message_arena, double_wrapper, submessage_arena);
  1270. }
  1271. } else {
  1272. }
  1273. double_wrapper_ = double_wrapper;
  1274. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.WrappersTestCases.double_wrapper)
  1275. }
  1276. // .google.protobuf.testing.FloatWrapper float_wrapper = 2;
  1277. inline bool WrappersTestCases::has_float_wrapper() const {
  1278. return this != internal_default_instance() && float_wrapper_ != NULL;
  1279. }
  1280. inline void WrappersTestCases::clear_float_wrapper() {
  1281. if (GetArenaNoVirtual() == NULL && float_wrapper_ != NULL) {
  1282. delete float_wrapper_;
  1283. }
  1284. float_wrapper_ = NULL;
  1285. }
  1286. inline const ::google::protobuf::testing::FloatWrapper& WrappersTestCases::_internal_float_wrapper() const {
  1287. return *float_wrapper_;
  1288. }
  1289. inline const ::google::protobuf::testing::FloatWrapper& WrappersTestCases::float_wrapper() const {
  1290. const ::google::protobuf::testing::FloatWrapper* p = float_wrapper_;
  1291. // @@protoc_insertion_point(field_get:google.protobuf.testing.WrappersTestCases.float_wrapper)
  1292. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::FloatWrapper*>(
  1293. &::google::protobuf::testing::_FloatWrapper_default_instance_);
  1294. }
  1295. inline ::google::protobuf::testing::FloatWrapper* WrappersTestCases::release_float_wrapper() {
  1296. // @@protoc_insertion_point(field_release:google.protobuf.testing.WrappersTestCases.float_wrapper)
  1297. ::google::protobuf::testing::FloatWrapper* temp = float_wrapper_;
  1298. float_wrapper_ = NULL;
  1299. return temp;
  1300. }
  1301. inline ::google::protobuf::testing::FloatWrapper* WrappersTestCases::mutable_float_wrapper() {
  1302. if (float_wrapper_ == NULL) {
  1303. auto* p = CreateMaybeMessage<::google::protobuf::testing::FloatWrapper>(GetArenaNoVirtual());
  1304. float_wrapper_ = p;
  1305. }
  1306. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.WrappersTestCases.float_wrapper)
  1307. return float_wrapper_;
  1308. }
  1309. inline void WrappersTestCases::set_allocated_float_wrapper(::google::protobuf::testing::FloatWrapper* float_wrapper) {
  1310. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1311. if (message_arena == NULL) {
  1312. delete float_wrapper_;
  1313. }
  1314. if (float_wrapper) {
  1315. ::google::protobuf::Arena* submessage_arena = NULL;
  1316. if (message_arena != submessage_arena) {
  1317. float_wrapper = ::google::protobuf::internal::GetOwnedMessage(
  1318. message_arena, float_wrapper, submessage_arena);
  1319. }
  1320. } else {
  1321. }
  1322. float_wrapper_ = float_wrapper;
  1323. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.WrappersTestCases.float_wrapper)
  1324. }
  1325. // .google.protobuf.testing.Int64Wrapper int64_wrapper = 3;
  1326. inline bool WrappersTestCases::has_int64_wrapper() const {
  1327. return this != internal_default_instance() && int64_wrapper_ != NULL;
  1328. }
  1329. inline void WrappersTestCases::clear_int64_wrapper() {
  1330. if (GetArenaNoVirtual() == NULL && int64_wrapper_ != NULL) {
  1331. delete int64_wrapper_;
  1332. }
  1333. int64_wrapper_ = NULL;
  1334. }
  1335. inline const ::google::protobuf::testing::Int64Wrapper& WrappersTestCases::_internal_int64_wrapper() const {
  1336. return *int64_wrapper_;
  1337. }
  1338. inline const ::google::protobuf::testing::Int64Wrapper& WrappersTestCases::int64_wrapper() const {
  1339. const ::google::protobuf::testing::Int64Wrapper* p = int64_wrapper_;
  1340. // @@protoc_insertion_point(field_get:google.protobuf.testing.WrappersTestCases.int64_wrapper)
  1341. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::Int64Wrapper*>(
  1342. &::google::protobuf::testing::_Int64Wrapper_default_instance_);
  1343. }
  1344. inline ::google::protobuf::testing::Int64Wrapper* WrappersTestCases::release_int64_wrapper() {
  1345. // @@protoc_insertion_point(field_release:google.protobuf.testing.WrappersTestCases.int64_wrapper)
  1346. ::google::protobuf::testing::Int64Wrapper* temp = int64_wrapper_;
  1347. int64_wrapper_ = NULL;
  1348. return temp;
  1349. }
  1350. inline ::google::protobuf::testing::Int64Wrapper* WrappersTestCases::mutable_int64_wrapper() {
  1351. if (int64_wrapper_ == NULL) {
  1352. auto* p = CreateMaybeMessage<::google::protobuf::testing::Int64Wrapper>(GetArenaNoVirtual());
  1353. int64_wrapper_ = p;
  1354. }
  1355. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.WrappersTestCases.int64_wrapper)
  1356. return int64_wrapper_;
  1357. }
  1358. inline void WrappersTestCases::set_allocated_int64_wrapper(::google::protobuf::testing::Int64Wrapper* int64_wrapper) {
  1359. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1360. if (message_arena == NULL) {
  1361. delete int64_wrapper_;
  1362. }
  1363. if (int64_wrapper) {
  1364. ::google::protobuf::Arena* submessage_arena = NULL;
  1365. if (message_arena != submessage_arena) {
  1366. int64_wrapper = ::google::protobuf::internal::GetOwnedMessage(
  1367. message_arena, int64_wrapper, submessage_arena);
  1368. }
  1369. } else {
  1370. }
  1371. int64_wrapper_ = int64_wrapper;
  1372. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.WrappersTestCases.int64_wrapper)
  1373. }
  1374. // .google.protobuf.testing.UInt64Wrapper uint64_wrapper = 4;
  1375. inline bool WrappersTestCases::has_uint64_wrapper() const {
  1376. return this != internal_default_instance() && uint64_wrapper_ != NULL;
  1377. }
  1378. inline void WrappersTestCases::clear_uint64_wrapper() {
  1379. if (GetArenaNoVirtual() == NULL && uint64_wrapper_ != NULL) {
  1380. delete uint64_wrapper_;
  1381. }
  1382. uint64_wrapper_ = NULL;
  1383. }
  1384. inline const ::google::protobuf::testing::UInt64Wrapper& WrappersTestCases::_internal_uint64_wrapper() const {
  1385. return *uint64_wrapper_;
  1386. }
  1387. inline const ::google::protobuf::testing::UInt64Wrapper& WrappersTestCases::uint64_wrapper() const {
  1388. const ::google::protobuf::testing::UInt64Wrapper* p = uint64_wrapper_;
  1389. // @@protoc_insertion_point(field_get:google.protobuf.testing.WrappersTestCases.uint64_wrapper)
  1390. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::UInt64Wrapper*>(
  1391. &::google::protobuf::testing::_UInt64Wrapper_default_instance_);
  1392. }
  1393. inline ::google::protobuf::testing::UInt64Wrapper* WrappersTestCases::release_uint64_wrapper() {
  1394. // @@protoc_insertion_point(field_release:google.protobuf.testing.WrappersTestCases.uint64_wrapper)
  1395. ::google::protobuf::testing::UInt64Wrapper* temp = uint64_wrapper_;
  1396. uint64_wrapper_ = NULL;
  1397. return temp;
  1398. }
  1399. inline ::google::protobuf::testing::UInt64Wrapper* WrappersTestCases::mutable_uint64_wrapper() {
  1400. if (uint64_wrapper_ == NULL) {
  1401. auto* p = CreateMaybeMessage<::google::protobuf::testing::UInt64Wrapper>(GetArenaNoVirtual());
  1402. uint64_wrapper_ = p;
  1403. }
  1404. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.WrappersTestCases.uint64_wrapper)
  1405. return uint64_wrapper_;
  1406. }
  1407. inline void WrappersTestCases::set_allocated_uint64_wrapper(::google::protobuf::testing::UInt64Wrapper* uint64_wrapper) {
  1408. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1409. if (message_arena == NULL) {
  1410. delete uint64_wrapper_;
  1411. }
  1412. if (uint64_wrapper) {
  1413. ::google::protobuf::Arena* submessage_arena = NULL;
  1414. if (message_arena != submessage_arena) {
  1415. uint64_wrapper = ::google::protobuf::internal::GetOwnedMessage(
  1416. message_arena, uint64_wrapper, submessage_arena);
  1417. }
  1418. } else {
  1419. }
  1420. uint64_wrapper_ = uint64_wrapper;
  1421. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.WrappersTestCases.uint64_wrapper)
  1422. }
  1423. // .google.protobuf.testing.Int32Wrapper int32_wrapper = 5;
  1424. inline bool WrappersTestCases::has_int32_wrapper() const {
  1425. return this != internal_default_instance() && int32_wrapper_ != NULL;
  1426. }
  1427. inline void WrappersTestCases::clear_int32_wrapper() {
  1428. if (GetArenaNoVirtual() == NULL && int32_wrapper_ != NULL) {
  1429. delete int32_wrapper_;
  1430. }
  1431. int32_wrapper_ = NULL;
  1432. }
  1433. inline const ::google::protobuf::testing::Int32Wrapper& WrappersTestCases::_internal_int32_wrapper() const {
  1434. return *int32_wrapper_;
  1435. }
  1436. inline const ::google::protobuf::testing::Int32Wrapper& WrappersTestCases::int32_wrapper() const {
  1437. const ::google::protobuf::testing::Int32Wrapper* p = int32_wrapper_;
  1438. // @@protoc_insertion_point(field_get:google.protobuf.testing.WrappersTestCases.int32_wrapper)
  1439. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::Int32Wrapper*>(
  1440. &::google::protobuf::testing::_Int32Wrapper_default_instance_);
  1441. }
  1442. inline ::google::protobuf::testing::Int32Wrapper* WrappersTestCases::release_int32_wrapper() {
  1443. // @@protoc_insertion_point(field_release:google.protobuf.testing.WrappersTestCases.int32_wrapper)
  1444. ::google::protobuf::testing::Int32Wrapper* temp = int32_wrapper_;
  1445. int32_wrapper_ = NULL;
  1446. return temp;
  1447. }
  1448. inline ::google::protobuf::testing::Int32Wrapper* WrappersTestCases::mutable_int32_wrapper() {
  1449. if (int32_wrapper_ == NULL) {
  1450. auto* p = CreateMaybeMessage<::google::protobuf::testing::Int32Wrapper>(GetArenaNoVirtual());
  1451. int32_wrapper_ = p;
  1452. }
  1453. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.WrappersTestCases.int32_wrapper)
  1454. return int32_wrapper_;
  1455. }
  1456. inline void WrappersTestCases::set_allocated_int32_wrapper(::google::protobuf::testing::Int32Wrapper* int32_wrapper) {
  1457. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1458. if (message_arena == NULL) {
  1459. delete int32_wrapper_;
  1460. }
  1461. if (int32_wrapper) {
  1462. ::google::protobuf::Arena* submessage_arena = NULL;
  1463. if (message_arena != submessage_arena) {
  1464. int32_wrapper = ::google::protobuf::internal::GetOwnedMessage(
  1465. message_arena, int32_wrapper, submessage_arena);
  1466. }
  1467. } else {
  1468. }
  1469. int32_wrapper_ = int32_wrapper;
  1470. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.WrappersTestCases.int32_wrapper)
  1471. }
  1472. // .google.protobuf.testing.UInt32Wrapper uint32_wrapper = 6;
  1473. inline bool WrappersTestCases::has_uint32_wrapper() const {
  1474. return this != internal_default_instance() && uint32_wrapper_ != NULL;
  1475. }
  1476. inline void WrappersTestCases::clear_uint32_wrapper() {
  1477. if (GetArenaNoVirtual() == NULL && uint32_wrapper_ != NULL) {
  1478. delete uint32_wrapper_;
  1479. }
  1480. uint32_wrapper_ = NULL;
  1481. }
  1482. inline const ::google::protobuf::testing::UInt32Wrapper& WrappersTestCases::_internal_uint32_wrapper() const {
  1483. return *uint32_wrapper_;
  1484. }
  1485. inline const ::google::protobuf::testing::UInt32Wrapper& WrappersTestCases::uint32_wrapper() const {
  1486. const ::google::protobuf::testing::UInt32Wrapper* p = uint32_wrapper_;
  1487. // @@protoc_insertion_point(field_get:google.protobuf.testing.WrappersTestCases.uint32_wrapper)
  1488. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::UInt32Wrapper*>(
  1489. &::google::protobuf::testing::_UInt32Wrapper_default_instance_);
  1490. }
  1491. inline ::google::protobuf::testing::UInt32Wrapper* WrappersTestCases::release_uint32_wrapper() {
  1492. // @@protoc_insertion_point(field_release:google.protobuf.testing.WrappersTestCases.uint32_wrapper)
  1493. ::google::protobuf::testing::UInt32Wrapper* temp = uint32_wrapper_;
  1494. uint32_wrapper_ = NULL;
  1495. return temp;
  1496. }
  1497. inline ::google::protobuf::testing::UInt32Wrapper* WrappersTestCases::mutable_uint32_wrapper() {
  1498. if (uint32_wrapper_ == NULL) {
  1499. auto* p = CreateMaybeMessage<::google::protobuf::testing::UInt32Wrapper>(GetArenaNoVirtual());
  1500. uint32_wrapper_ = p;
  1501. }
  1502. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.WrappersTestCases.uint32_wrapper)
  1503. return uint32_wrapper_;
  1504. }
  1505. inline void WrappersTestCases::set_allocated_uint32_wrapper(::google::protobuf::testing::UInt32Wrapper* uint32_wrapper) {
  1506. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1507. if (message_arena == NULL) {
  1508. delete uint32_wrapper_;
  1509. }
  1510. if (uint32_wrapper) {
  1511. ::google::protobuf::Arena* submessage_arena = NULL;
  1512. if (message_arena != submessage_arena) {
  1513. uint32_wrapper = ::google::protobuf::internal::GetOwnedMessage(
  1514. message_arena, uint32_wrapper, submessage_arena);
  1515. }
  1516. } else {
  1517. }
  1518. uint32_wrapper_ = uint32_wrapper;
  1519. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.WrappersTestCases.uint32_wrapper)
  1520. }
  1521. // .google.protobuf.testing.BoolWrapper bool_wrapper = 7;
  1522. inline bool WrappersTestCases::has_bool_wrapper() const {
  1523. return this != internal_default_instance() && bool_wrapper_ != NULL;
  1524. }
  1525. inline void WrappersTestCases::clear_bool_wrapper() {
  1526. if (GetArenaNoVirtual() == NULL && bool_wrapper_ != NULL) {
  1527. delete bool_wrapper_;
  1528. }
  1529. bool_wrapper_ = NULL;
  1530. }
  1531. inline const ::google::protobuf::testing::BoolWrapper& WrappersTestCases::_internal_bool_wrapper() const {
  1532. return *bool_wrapper_;
  1533. }
  1534. inline const ::google::protobuf::testing::BoolWrapper& WrappersTestCases::bool_wrapper() const {
  1535. const ::google::protobuf::testing::BoolWrapper* p = bool_wrapper_;
  1536. // @@protoc_insertion_point(field_get:google.protobuf.testing.WrappersTestCases.bool_wrapper)
  1537. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::BoolWrapper*>(
  1538. &::google::protobuf::testing::_BoolWrapper_default_instance_);
  1539. }
  1540. inline ::google::protobuf::testing::BoolWrapper* WrappersTestCases::release_bool_wrapper() {
  1541. // @@protoc_insertion_point(field_release:google.protobuf.testing.WrappersTestCases.bool_wrapper)
  1542. ::google::protobuf::testing::BoolWrapper* temp = bool_wrapper_;
  1543. bool_wrapper_ = NULL;
  1544. return temp;
  1545. }
  1546. inline ::google::protobuf::testing::BoolWrapper* WrappersTestCases::mutable_bool_wrapper() {
  1547. if (bool_wrapper_ == NULL) {
  1548. auto* p = CreateMaybeMessage<::google::protobuf::testing::BoolWrapper>(GetArenaNoVirtual());
  1549. bool_wrapper_ = p;
  1550. }
  1551. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.WrappersTestCases.bool_wrapper)
  1552. return bool_wrapper_;
  1553. }
  1554. inline void WrappersTestCases::set_allocated_bool_wrapper(::google::protobuf::testing::BoolWrapper* bool_wrapper) {
  1555. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1556. if (message_arena == NULL) {
  1557. delete bool_wrapper_;
  1558. }
  1559. if (bool_wrapper) {
  1560. ::google::protobuf::Arena* submessage_arena = NULL;
  1561. if (message_arena != submessage_arena) {
  1562. bool_wrapper = ::google::protobuf::internal::GetOwnedMessage(
  1563. message_arena, bool_wrapper, submessage_arena);
  1564. }
  1565. } else {
  1566. }
  1567. bool_wrapper_ = bool_wrapper;
  1568. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.WrappersTestCases.bool_wrapper)
  1569. }
  1570. // .google.protobuf.testing.StringWrapper string_wrapper = 8;
  1571. inline bool WrappersTestCases::has_string_wrapper() const {
  1572. return this != internal_default_instance() && string_wrapper_ != NULL;
  1573. }
  1574. inline void WrappersTestCases::clear_string_wrapper() {
  1575. if (GetArenaNoVirtual() == NULL && string_wrapper_ != NULL) {
  1576. delete string_wrapper_;
  1577. }
  1578. string_wrapper_ = NULL;
  1579. }
  1580. inline const ::google::protobuf::testing::StringWrapper& WrappersTestCases::_internal_string_wrapper() const {
  1581. return *string_wrapper_;
  1582. }
  1583. inline const ::google::protobuf::testing::StringWrapper& WrappersTestCases::string_wrapper() const {
  1584. const ::google::protobuf::testing::StringWrapper* p = string_wrapper_;
  1585. // @@protoc_insertion_point(field_get:google.protobuf.testing.WrappersTestCases.string_wrapper)
  1586. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::StringWrapper*>(
  1587. &::google::protobuf::testing::_StringWrapper_default_instance_);
  1588. }
  1589. inline ::google::protobuf::testing::StringWrapper* WrappersTestCases::release_string_wrapper() {
  1590. // @@protoc_insertion_point(field_release:google.protobuf.testing.WrappersTestCases.string_wrapper)
  1591. ::google::protobuf::testing::StringWrapper* temp = string_wrapper_;
  1592. string_wrapper_ = NULL;
  1593. return temp;
  1594. }
  1595. inline ::google::protobuf::testing::StringWrapper* WrappersTestCases::mutable_string_wrapper() {
  1596. if (string_wrapper_ == NULL) {
  1597. auto* p = CreateMaybeMessage<::google::protobuf::testing::StringWrapper>(GetArenaNoVirtual());
  1598. string_wrapper_ = p;
  1599. }
  1600. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.WrappersTestCases.string_wrapper)
  1601. return string_wrapper_;
  1602. }
  1603. inline void WrappersTestCases::set_allocated_string_wrapper(::google::protobuf::testing::StringWrapper* string_wrapper) {
  1604. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1605. if (message_arena == NULL) {
  1606. delete string_wrapper_;
  1607. }
  1608. if (string_wrapper) {
  1609. ::google::protobuf::Arena* submessage_arena = NULL;
  1610. if (message_arena != submessage_arena) {
  1611. string_wrapper = ::google::protobuf::internal::GetOwnedMessage(
  1612. message_arena, string_wrapper, submessage_arena);
  1613. }
  1614. } else {
  1615. }
  1616. string_wrapper_ = string_wrapper;
  1617. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.WrappersTestCases.string_wrapper)
  1618. }
  1619. // .google.protobuf.testing.BytesWrapper bytes_wrapper = 9;
  1620. inline bool WrappersTestCases::has_bytes_wrapper() const {
  1621. return this != internal_default_instance() && bytes_wrapper_ != NULL;
  1622. }
  1623. inline void WrappersTestCases::clear_bytes_wrapper() {
  1624. if (GetArenaNoVirtual() == NULL && bytes_wrapper_ != NULL) {
  1625. delete bytes_wrapper_;
  1626. }
  1627. bytes_wrapper_ = NULL;
  1628. }
  1629. inline const ::google::protobuf::testing::BytesWrapper& WrappersTestCases::_internal_bytes_wrapper() const {
  1630. return *bytes_wrapper_;
  1631. }
  1632. inline const ::google::protobuf::testing::BytesWrapper& WrappersTestCases::bytes_wrapper() const {
  1633. const ::google::protobuf::testing::BytesWrapper* p = bytes_wrapper_;
  1634. // @@protoc_insertion_point(field_get:google.protobuf.testing.WrappersTestCases.bytes_wrapper)
  1635. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::BytesWrapper*>(
  1636. &::google::protobuf::testing::_BytesWrapper_default_instance_);
  1637. }
  1638. inline ::google::protobuf::testing::BytesWrapper* WrappersTestCases::release_bytes_wrapper() {
  1639. // @@protoc_insertion_point(field_release:google.protobuf.testing.WrappersTestCases.bytes_wrapper)
  1640. ::google::protobuf::testing::BytesWrapper* temp = bytes_wrapper_;
  1641. bytes_wrapper_ = NULL;
  1642. return temp;
  1643. }
  1644. inline ::google::protobuf::testing::BytesWrapper* WrappersTestCases::mutable_bytes_wrapper() {
  1645. if (bytes_wrapper_ == NULL) {
  1646. auto* p = CreateMaybeMessage<::google::protobuf::testing::BytesWrapper>(GetArenaNoVirtual());
  1647. bytes_wrapper_ = p;
  1648. }
  1649. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.WrappersTestCases.bytes_wrapper)
  1650. return bytes_wrapper_;
  1651. }
  1652. inline void WrappersTestCases::set_allocated_bytes_wrapper(::google::protobuf::testing::BytesWrapper* bytes_wrapper) {
  1653. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1654. if (message_arena == NULL) {
  1655. delete bytes_wrapper_;
  1656. }
  1657. if (bytes_wrapper) {
  1658. ::google::protobuf::Arena* submessage_arena = NULL;
  1659. if (message_arena != submessage_arena) {
  1660. bytes_wrapper = ::google::protobuf::internal::GetOwnedMessage(
  1661. message_arena, bytes_wrapper, submessage_arena);
  1662. }
  1663. } else {
  1664. }
  1665. bytes_wrapper_ = bytes_wrapper;
  1666. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.WrappersTestCases.bytes_wrapper)
  1667. }
  1668. // .google.protobuf.testing.DoubleWrapper double_wrapper_default = 10;
  1669. inline bool WrappersTestCases::has_double_wrapper_default() const {
  1670. return this != internal_default_instance() && double_wrapper_default_ != NULL;
  1671. }
  1672. inline void WrappersTestCases::clear_double_wrapper_default() {
  1673. if (GetArenaNoVirtual() == NULL && double_wrapper_default_ != NULL) {
  1674. delete double_wrapper_default_;
  1675. }
  1676. double_wrapper_default_ = NULL;
  1677. }
  1678. inline const ::google::protobuf::testing::DoubleWrapper& WrappersTestCases::_internal_double_wrapper_default() const {
  1679. return *double_wrapper_default_;
  1680. }
  1681. inline const ::google::protobuf::testing::DoubleWrapper& WrappersTestCases::double_wrapper_default() const {
  1682. const ::google::protobuf::testing::DoubleWrapper* p = double_wrapper_default_;
  1683. // @@protoc_insertion_point(field_get:google.protobuf.testing.WrappersTestCases.double_wrapper_default)
  1684. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::DoubleWrapper*>(
  1685. &::google::protobuf::testing::_DoubleWrapper_default_instance_);
  1686. }
  1687. inline ::google::protobuf::testing::DoubleWrapper* WrappersTestCases::release_double_wrapper_default() {
  1688. // @@protoc_insertion_point(field_release:google.protobuf.testing.WrappersTestCases.double_wrapper_default)
  1689. ::google::protobuf::testing::DoubleWrapper* temp = double_wrapper_default_;
  1690. double_wrapper_default_ = NULL;
  1691. return temp;
  1692. }
  1693. inline ::google::protobuf::testing::DoubleWrapper* WrappersTestCases::mutable_double_wrapper_default() {
  1694. if (double_wrapper_default_ == NULL) {
  1695. auto* p = CreateMaybeMessage<::google::protobuf::testing::DoubleWrapper>(GetArenaNoVirtual());
  1696. double_wrapper_default_ = p;
  1697. }
  1698. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.WrappersTestCases.double_wrapper_default)
  1699. return double_wrapper_default_;
  1700. }
  1701. inline void WrappersTestCases::set_allocated_double_wrapper_default(::google::protobuf::testing::DoubleWrapper* double_wrapper_default) {
  1702. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1703. if (message_arena == NULL) {
  1704. delete double_wrapper_default_;
  1705. }
  1706. if (double_wrapper_default) {
  1707. ::google::protobuf::Arena* submessage_arena = NULL;
  1708. if (message_arena != submessage_arena) {
  1709. double_wrapper_default = ::google::protobuf::internal::GetOwnedMessage(
  1710. message_arena, double_wrapper_default, submessage_arena);
  1711. }
  1712. } else {
  1713. }
  1714. double_wrapper_default_ = double_wrapper_default;
  1715. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.WrappersTestCases.double_wrapper_default)
  1716. }
  1717. // .google.protobuf.testing.FloatWrapper float_wrapper_default = 11;
  1718. inline bool WrappersTestCases::has_float_wrapper_default() const {
  1719. return this != internal_default_instance() && float_wrapper_default_ != NULL;
  1720. }
  1721. inline void WrappersTestCases::clear_float_wrapper_default() {
  1722. if (GetArenaNoVirtual() == NULL && float_wrapper_default_ != NULL) {
  1723. delete float_wrapper_default_;
  1724. }
  1725. float_wrapper_default_ = NULL;
  1726. }
  1727. inline const ::google::protobuf::testing::FloatWrapper& WrappersTestCases::_internal_float_wrapper_default() const {
  1728. return *float_wrapper_default_;
  1729. }
  1730. inline const ::google::protobuf::testing::FloatWrapper& WrappersTestCases::float_wrapper_default() const {
  1731. const ::google::protobuf::testing::FloatWrapper* p = float_wrapper_default_;
  1732. // @@protoc_insertion_point(field_get:google.protobuf.testing.WrappersTestCases.float_wrapper_default)
  1733. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::FloatWrapper*>(
  1734. &::google::protobuf::testing::_FloatWrapper_default_instance_);
  1735. }
  1736. inline ::google::protobuf::testing::FloatWrapper* WrappersTestCases::release_float_wrapper_default() {
  1737. // @@protoc_insertion_point(field_release:google.protobuf.testing.WrappersTestCases.float_wrapper_default)
  1738. ::google::protobuf::testing::FloatWrapper* temp = float_wrapper_default_;
  1739. float_wrapper_default_ = NULL;
  1740. return temp;
  1741. }
  1742. inline ::google::protobuf::testing::FloatWrapper* WrappersTestCases::mutable_float_wrapper_default() {
  1743. if (float_wrapper_default_ == NULL) {
  1744. auto* p = CreateMaybeMessage<::google::protobuf::testing::FloatWrapper>(GetArenaNoVirtual());
  1745. float_wrapper_default_ = p;
  1746. }
  1747. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.WrappersTestCases.float_wrapper_default)
  1748. return float_wrapper_default_;
  1749. }
  1750. inline void WrappersTestCases::set_allocated_float_wrapper_default(::google::protobuf::testing::FloatWrapper* float_wrapper_default) {
  1751. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1752. if (message_arena == NULL) {
  1753. delete float_wrapper_default_;
  1754. }
  1755. if (float_wrapper_default) {
  1756. ::google::protobuf::Arena* submessage_arena = NULL;
  1757. if (message_arena != submessage_arena) {
  1758. float_wrapper_default = ::google::protobuf::internal::GetOwnedMessage(
  1759. message_arena, float_wrapper_default, submessage_arena);
  1760. }
  1761. } else {
  1762. }
  1763. float_wrapper_default_ = float_wrapper_default;
  1764. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.WrappersTestCases.float_wrapper_default)
  1765. }
  1766. // .google.protobuf.testing.Int64Wrapper int64_wrapper_default = 12;
  1767. inline bool WrappersTestCases::has_int64_wrapper_default() const {
  1768. return this != internal_default_instance() && int64_wrapper_default_ != NULL;
  1769. }
  1770. inline void WrappersTestCases::clear_int64_wrapper_default() {
  1771. if (GetArenaNoVirtual() == NULL && int64_wrapper_default_ != NULL) {
  1772. delete int64_wrapper_default_;
  1773. }
  1774. int64_wrapper_default_ = NULL;
  1775. }
  1776. inline const ::google::protobuf::testing::Int64Wrapper& WrappersTestCases::_internal_int64_wrapper_default() const {
  1777. return *int64_wrapper_default_;
  1778. }
  1779. inline const ::google::protobuf::testing::Int64Wrapper& WrappersTestCases::int64_wrapper_default() const {
  1780. const ::google::protobuf::testing::Int64Wrapper* p = int64_wrapper_default_;
  1781. // @@protoc_insertion_point(field_get:google.protobuf.testing.WrappersTestCases.int64_wrapper_default)
  1782. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::Int64Wrapper*>(
  1783. &::google::protobuf::testing::_Int64Wrapper_default_instance_);
  1784. }
  1785. inline ::google::protobuf::testing::Int64Wrapper* WrappersTestCases::release_int64_wrapper_default() {
  1786. // @@protoc_insertion_point(field_release:google.protobuf.testing.WrappersTestCases.int64_wrapper_default)
  1787. ::google::protobuf::testing::Int64Wrapper* temp = int64_wrapper_default_;
  1788. int64_wrapper_default_ = NULL;
  1789. return temp;
  1790. }
  1791. inline ::google::protobuf::testing::Int64Wrapper* WrappersTestCases::mutable_int64_wrapper_default() {
  1792. if (int64_wrapper_default_ == NULL) {
  1793. auto* p = CreateMaybeMessage<::google::protobuf::testing::Int64Wrapper>(GetArenaNoVirtual());
  1794. int64_wrapper_default_ = p;
  1795. }
  1796. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.WrappersTestCases.int64_wrapper_default)
  1797. return int64_wrapper_default_;
  1798. }
  1799. inline void WrappersTestCases::set_allocated_int64_wrapper_default(::google::protobuf::testing::Int64Wrapper* int64_wrapper_default) {
  1800. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1801. if (message_arena == NULL) {
  1802. delete int64_wrapper_default_;
  1803. }
  1804. if (int64_wrapper_default) {
  1805. ::google::protobuf::Arena* submessage_arena = NULL;
  1806. if (message_arena != submessage_arena) {
  1807. int64_wrapper_default = ::google::protobuf::internal::GetOwnedMessage(
  1808. message_arena, int64_wrapper_default, submessage_arena);
  1809. }
  1810. } else {
  1811. }
  1812. int64_wrapper_default_ = int64_wrapper_default;
  1813. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.WrappersTestCases.int64_wrapper_default)
  1814. }
  1815. // .google.protobuf.testing.UInt64Wrapper uint64_wrapper_default = 13;
  1816. inline bool WrappersTestCases::has_uint64_wrapper_default() const {
  1817. return this != internal_default_instance() && uint64_wrapper_default_ != NULL;
  1818. }
  1819. inline void WrappersTestCases::clear_uint64_wrapper_default() {
  1820. if (GetArenaNoVirtual() == NULL && uint64_wrapper_default_ != NULL) {
  1821. delete uint64_wrapper_default_;
  1822. }
  1823. uint64_wrapper_default_ = NULL;
  1824. }
  1825. inline const ::google::protobuf::testing::UInt64Wrapper& WrappersTestCases::_internal_uint64_wrapper_default() const {
  1826. return *uint64_wrapper_default_;
  1827. }
  1828. inline const ::google::protobuf::testing::UInt64Wrapper& WrappersTestCases::uint64_wrapper_default() const {
  1829. const ::google::protobuf::testing::UInt64Wrapper* p = uint64_wrapper_default_;
  1830. // @@protoc_insertion_point(field_get:google.protobuf.testing.WrappersTestCases.uint64_wrapper_default)
  1831. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::UInt64Wrapper*>(
  1832. &::google::protobuf::testing::_UInt64Wrapper_default_instance_);
  1833. }
  1834. inline ::google::protobuf::testing::UInt64Wrapper* WrappersTestCases::release_uint64_wrapper_default() {
  1835. // @@protoc_insertion_point(field_release:google.protobuf.testing.WrappersTestCases.uint64_wrapper_default)
  1836. ::google::protobuf::testing::UInt64Wrapper* temp = uint64_wrapper_default_;
  1837. uint64_wrapper_default_ = NULL;
  1838. return temp;
  1839. }
  1840. inline ::google::protobuf::testing::UInt64Wrapper* WrappersTestCases::mutable_uint64_wrapper_default() {
  1841. if (uint64_wrapper_default_ == NULL) {
  1842. auto* p = CreateMaybeMessage<::google::protobuf::testing::UInt64Wrapper>(GetArenaNoVirtual());
  1843. uint64_wrapper_default_ = p;
  1844. }
  1845. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.WrappersTestCases.uint64_wrapper_default)
  1846. return uint64_wrapper_default_;
  1847. }
  1848. inline void WrappersTestCases::set_allocated_uint64_wrapper_default(::google::protobuf::testing::UInt64Wrapper* uint64_wrapper_default) {
  1849. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1850. if (message_arena == NULL) {
  1851. delete uint64_wrapper_default_;
  1852. }
  1853. if (uint64_wrapper_default) {
  1854. ::google::protobuf::Arena* submessage_arena = NULL;
  1855. if (message_arena != submessage_arena) {
  1856. uint64_wrapper_default = ::google::protobuf::internal::GetOwnedMessage(
  1857. message_arena, uint64_wrapper_default, submessage_arena);
  1858. }
  1859. } else {
  1860. }
  1861. uint64_wrapper_default_ = uint64_wrapper_default;
  1862. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.WrappersTestCases.uint64_wrapper_default)
  1863. }
  1864. // .google.protobuf.testing.Int32Wrapper int32_wrapper_default = 14;
  1865. inline bool WrappersTestCases::has_int32_wrapper_default() const {
  1866. return this != internal_default_instance() && int32_wrapper_default_ != NULL;
  1867. }
  1868. inline void WrappersTestCases::clear_int32_wrapper_default() {
  1869. if (GetArenaNoVirtual() == NULL && int32_wrapper_default_ != NULL) {
  1870. delete int32_wrapper_default_;
  1871. }
  1872. int32_wrapper_default_ = NULL;
  1873. }
  1874. inline const ::google::protobuf::testing::Int32Wrapper& WrappersTestCases::_internal_int32_wrapper_default() const {
  1875. return *int32_wrapper_default_;
  1876. }
  1877. inline const ::google::protobuf::testing::Int32Wrapper& WrappersTestCases::int32_wrapper_default() const {
  1878. const ::google::protobuf::testing::Int32Wrapper* p = int32_wrapper_default_;
  1879. // @@protoc_insertion_point(field_get:google.protobuf.testing.WrappersTestCases.int32_wrapper_default)
  1880. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::Int32Wrapper*>(
  1881. &::google::protobuf::testing::_Int32Wrapper_default_instance_);
  1882. }
  1883. inline ::google::protobuf::testing::Int32Wrapper* WrappersTestCases::release_int32_wrapper_default() {
  1884. // @@protoc_insertion_point(field_release:google.protobuf.testing.WrappersTestCases.int32_wrapper_default)
  1885. ::google::protobuf::testing::Int32Wrapper* temp = int32_wrapper_default_;
  1886. int32_wrapper_default_ = NULL;
  1887. return temp;
  1888. }
  1889. inline ::google::protobuf::testing::Int32Wrapper* WrappersTestCases::mutable_int32_wrapper_default() {
  1890. if (int32_wrapper_default_ == NULL) {
  1891. auto* p = CreateMaybeMessage<::google::protobuf::testing::Int32Wrapper>(GetArenaNoVirtual());
  1892. int32_wrapper_default_ = p;
  1893. }
  1894. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.WrappersTestCases.int32_wrapper_default)
  1895. return int32_wrapper_default_;
  1896. }
  1897. inline void WrappersTestCases::set_allocated_int32_wrapper_default(::google::protobuf::testing::Int32Wrapper* int32_wrapper_default) {
  1898. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1899. if (message_arena == NULL) {
  1900. delete int32_wrapper_default_;
  1901. }
  1902. if (int32_wrapper_default) {
  1903. ::google::protobuf::Arena* submessage_arena = NULL;
  1904. if (message_arena != submessage_arena) {
  1905. int32_wrapper_default = ::google::protobuf::internal::GetOwnedMessage(
  1906. message_arena, int32_wrapper_default, submessage_arena);
  1907. }
  1908. } else {
  1909. }
  1910. int32_wrapper_default_ = int32_wrapper_default;
  1911. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.WrappersTestCases.int32_wrapper_default)
  1912. }
  1913. // .google.protobuf.testing.UInt32Wrapper uint32_wrapper_default = 15;
  1914. inline bool WrappersTestCases::has_uint32_wrapper_default() const {
  1915. return this != internal_default_instance() && uint32_wrapper_default_ != NULL;
  1916. }
  1917. inline void WrappersTestCases::clear_uint32_wrapper_default() {
  1918. if (GetArenaNoVirtual() == NULL && uint32_wrapper_default_ != NULL) {
  1919. delete uint32_wrapper_default_;
  1920. }
  1921. uint32_wrapper_default_ = NULL;
  1922. }
  1923. inline const ::google::protobuf::testing::UInt32Wrapper& WrappersTestCases::_internal_uint32_wrapper_default() const {
  1924. return *uint32_wrapper_default_;
  1925. }
  1926. inline const ::google::protobuf::testing::UInt32Wrapper& WrappersTestCases::uint32_wrapper_default() const {
  1927. const ::google::protobuf::testing::UInt32Wrapper* p = uint32_wrapper_default_;
  1928. // @@protoc_insertion_point(field_get:google.protobuf.testing.WrappersTestCases.uint32_wrapper_default)
  1929. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::UInt32Wrapper*>(
  1930. &::google::protobuf::testing::_UInt32Wrapper_default_instance_);
  1931. }
  1932. inline ::google::protobuf::testing::UInt32Wrapper* WrappersTestCases::release_uint32_wrapper_default() {
  1933. // @@protoc_insertion_point(field_release:google.protobuf.testing.WrappersTestCases.uint32_wrapper_default)
  1934. ::google::protobuf::testing::UInt32Wrapper* temp = uint32_wrapper_default_;
  1935. uint32_wrapper_default_ = NULL;
  1936. return temp;
  1937. }
  1938. inline ::google::protobuf::testing::UInt32Wrapper* WrappersTestCases::mutable_uint32_wrapper_default() {
  1939. if (uint32_wrapper_default_ == NULL) {
  1940. auto* p = CreateMaybeMessage<::google::protobuf::testing::UInt32Wrapper>(GetArenaNoVirtual());
  1941. uint32_wrapper_default_ = p;
  1942. }
  1943. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.WrappersTestCases.uint32_wrapper_default)
  1944. return uint32_wrapper_default_;
  1945. }
  1946. inline void WrappersTestCases::set_allocated_uint32_wrapper_default(::google::protobuf::testing::UInt32Wrapper* uint32_wrapper_default) {
  1947. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1948. if (message_arena == NULL) {
  1949. delete uint32_wrapper_default_;
  1950. }
  1951. if (uint32_wrapper_default) {
  1952. ::google::protobuf::Arena* submessage_arena = NULL;
  1953. if (message_arena != submessage_arena) {
  1954. uint32_wrapper_default = ::google::protobuf::internal::GetOwnedMessage(
  1955. message_arena, uint32_wrapper_default, submessage_arena);
  1956. }
  1957. } else {
  1958. }
  1959. uint32_wrapper_default_ = uint32_wrapper_default;
  1960. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.WrappersTestCases.uint32_wrapper_default)
  1961. }
  1962. // .google.protobuf.testing.BoolWrapper bool_wrapper_default = 16;
  1963. inline bool WrappersTestCases::has_bool_wrapper_default() const {
  1964. return this != internal_default_instance() && bool_wrapper_default_ != NULL;
  1965. }
  1966. inline void WrappersTestCases::clear_bool_wrapper_default() {
  1967. if (GetArenaNoVirtual() == NULL && bool_wrapper_default_ != NULL) {
  1968. delete bool_wrapper_default_;
  1969. }
  1970. bool_wrapper_default_ = NULL;
  1971. }
  1972. inline const ::google::protobuf::testing::BoolWrapper& WrappersTestCases::_internal_bool_wrapper_default() const {
  1973. return *bool_wrapper_default_;
  1974. }
  1975. inline const ::google::protobuf::testing::BoolWrapper& WrappersTestCases::bool_wrapper_default() const {
  1976. const ::google::protobuf::testing::BoolWrapper* p = bool_wrapper_default_;
  1977. // @@protoc_insertion_point(field_get:google.protobuf.testing.WrappersTestCases.bool_wrapper_default)
  1978. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::BoolWrapper*>(
  1979. &::google::protobuf::testing::_BoolWrapper_default_instance_);
  1980. }
  1981. inline ::google::protobuf::testing::BoolWrapper* WrappersTestCases::release_bool_wrapper_default() {
  1982. // @@protoc_insertion_point(field_release:google.protobuf.testing.WrappersTestCases.bool_wrapper_default)
  1983. ::google::protobuf::testing::BoolWrapper* temp = bool_wrapper_default_;
  1984. bool_wrapper_default_ = NULL;
  1985. return temp;
  1986. }
  1987. inline ::google::protobuf::testing::BoolWrapper* WrappersTestCases::mutable_bool_wrapper_default() {
  1988. if (bool_wrapper_default_ == NULL) {
  1989. auto* p = CreateMaybeMessage<::google::protobuf::testing::BoolWrapper>(GetArenaNoVirtual());
  1990. bool_wrapper_default_ = p;
  1991. }
  1992. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.WrappersTestCases.bool_wrapper_default)
  1993. return bool_wrapper_default_;
  1994. }
  1995. inline void WrappersTestCases::set_allocated_bool_wrapper_default(::google::protobuf::testing::BoolWrapper* bool_wrapper_default) {
  1996. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1997. if (message_arena == NULL) {
  1998. delete bool_wrapper_default_;
  1999. }
  2000. if (bool_wrapper_default) {
  2001. ::google::protobuf::Arena* submessage_arena = NULL;
  2002. if (message_arena != submessage_arena) {
  2003. bool_wrapper_default = ::google::protobuf::internal::GetOwnedMessage(
  2004. message_arena, bool_wrapper_default, submessage_arena);
  2005. }
  2006. } else {
  2007. }
  2008. bool_wrapper_default_ = bool_wrapper_default;
  2009. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.WrappersTestCases.bool_wrapper_default)
  2010. }
  2011. // .google.protobuf.testing.StringWrapper string_wrapper_default = 17;
  2012. inline bool WrappersTestCases::has_string_wrapper_default() const {
  2013. return this != internal_default_instance() && string_wrapper_default_ != NULL;
  2014. }
  2015. inline void WrappersTestCases::clear_string_wrapper_default() {
  2016. if (GetArenaNoVirtual() == NULL && string_wrapper_default_ != NULL) {
  2017. delete string_wrapper_default_;
  2018. }
  2019. string_wrapper_default_ = NULL;
  2020. }
  2021. inline const ::google::protobuf::testing::StringWrapper& WrappersTestCases::_internal_string_wrapper_default() const {
  2022. return *string_wrapper_default_;
  2023. }
  2024. inline const ::google::protobuf::testing::StringWrapper& WrappersTestCases::string_wrapper_default() const {
  2025. const ::google::protobuf::testing::StringWrapper* p = string_wrapper_default_;
  2026. // @@protoc_insertion_point(field_get:google.protobuf.testing.WrappersTestCases.string_wrapper_default)
  2027. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::StringWrapper*>(
  2028. &::google::protobuf::testing::_StringWrapper_default_instance_);
  2029. }
  2030. inline ::google::protobuf::testing::StringWrapper* WrappersTestCases::release_string_wrapper_default() {
  2031. // @@protoc_insertion_point(field_release:google.protobuf.testing.WrappersTestCases.string_wrapper_default)
  2032. ::google::protobuf::testing::StringWrapper* temp = string_wrapper_default_;
  2033. string_wrapper_default_ = NULL;
  2034. return temp;
  2035. }
  2036. inline ::google::protobuf::testing::StringWrapper* WrappersTestCases::mutable_string_wrapper_default() {
  2037. if (string_wrapper_default_ == NULL) {
  2038. auto* p = CreateMaybeMessage<::google::protobuf::testing::StringWrapper>(GetArenaNoVirtual());
  2039. string_wrapper_default_ = p;
  2040. }
  2041. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.WrappersTestCases.string_wrapper_default)
  2042. return string_wrapper_default_;
  2043. }
  2044. inline void WrappersTestCases::set_allocated_string_wrapper_default(::google::protobuf::testing::StringWrapper* string_wrapper_default) {
  2045. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2046. if (message_arena == NULL) {
  2047. delete string_wrapper_default_;
  2048. }
  2049. if (string_wrapper_default) {
  2050. ::google::protobuf::Arena* submessage_arena = NULL;
  2051. if (message_arena != submessage_arena) {
  2052. string_wrapper_default = ::google::protobuf::internal::GetOwnedMessage(
  2053. message_arena, string_wrapper_default, submessage_arena);
  2054. }
  2055. } else {
  2056. }
  2057. string_wrapper_default_ = string_wrapper_default;
  2058. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.WrappersTestCases.string_wrapper_default)
  2059. }
  2060. // .google.protobuf.testing.BytesWrapper bytes_wrapper_default = 18;
  2061. inline bool WrappersTestCases::has_bytes_wrapper_default() const {
  2062. return this != internal_default_instance() && bytes_wrapper_default_ != NULL;
  2063. }
  2064. inline void WrappersTestCases::clear_bytes_wrapper_default() {
  2065. if (GetArenaNoVirtual() == NULL && bytes_wrapper_default_ != NULL) {
  2066. delete bytes_wrapper_default_;
  2067. }
  2068. bytes_wrapper_default_ = NULL;
  2069. }
  2070. inline const ::google::protobuf::testing::BytesWrapper& WrappersTestCases::_internal_bytes_wrapper_default() const {
  2071. return *bytes_wrapper_default_;
  2072. }
  2073. inline const ::google::protobuf::testing::BytesWrapper& WrappersTestCases::bytes_wrapper_default() const {
  2074. const ::google::protobuf::testing::BytesWrapper* p = bytes_wrapper_default_;
  2075. // @@protoc_insertion_point(field_get:google.protobuf.testing.WrappersTestCases.bytes_wrapper_default)
  2076. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::BytesWrapper*>(
  2077. &::google::protobuf::testing::_BytesWrapper_default_instance_);
  2078. }
  2079. inline ::google::protobuf::testing::BytesWrapper* WrappersTestCases::release_bytes_wrapper_default() {
  2080. // @@protoc_insertion_point(field_release:google.protobuf.testing.WrappersTestCases.bytes_wrapper_default)
  2081. ::google::protobuf::testing::BytesWrapper* temp = bytes_wrapper_default_;
  2082. bytes_wrapper_default_ = NULL;
  2083. return temp;
  2084. }
  2085. inline ::google::protobuf::testing::BytesWrapper* WrappersTestCases::mutable_bytes_wrapper_default() {
  2086. if (bytes_wrapper_default_ == NULL) {
  2087. auto* p = CreateMaybeMessage<::google::protobuf::testing::BytesWrapper>(GetArenaNoVirtual());
  2088. bytes_wrapper_default_ = p;
  2089. }
  2090. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.WrappersTestCases.bytes_wrapper_default)
  2091. return bytes_wrapper_default_;
  2092. }
  2093. inline void WrappersTestCases::set_allocated_bytes_wrapper_default(::google::protobuf::testing::BytesWrapper* bytes_wrapper_default) {
  2094. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2095. if (message_arena == NULL) {
  2096. delete bytes_wrapper_default_;
  2097. }
  2098. if (bytes_wrapper_default) {
  2099. ::google::protobuf::Arena* submessage_arena = NULL;
  2100. if (message_arena != submessage_arena) {
  2101. bytes_wrapper_default = ::google::protobuf::internal::GetOwnedMessage(
  2102. message_arena, bytes_wrapper_default, submessage_arena);
  2103. }
  2104. } else {
  2105. }
  2106. bytes_wrapper_default_ = bytes_wrapper_default;
  2107. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.WrappersTestCases.bytes_wrapper_default)
  2108. }
  2109. // -------------------------------------------------------------------
  2110. // DoubleWrapper
  2111. // .google.protobuf.DoubleValue double = 1;
  2112. inline bool DoubleWrapper::has_double_() const {
  2113. return this != internal_default_instance() && double__ != NULL;
  2114. }
  2115. inline const ::google::protobuf::DoubleValue& DoubleWrapper::_internal_double_() const {
  2116. return *double__;
  2117. }
  2118. inline const ::google::protobuf::DoubleValue& DoubleWrapper::double_() const {
  2119. const ::google::protobuf::DoubleValue* p = double__;
  2120. // @@protoc_insertion_point(field_get:google.protobuf.testing.DoubleWrapper.double)
  2121. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::DoubleValue*>(
  2122. &::google::protobuf::_DoubleValue_default_instance_);
  2123. }
  2124. inline ::google::protobuf::DoubleValue* DoubleWrapper::release_double_() {
  2125. // @@protoc_insertion_point(field_release:google.protobuf.testing.DoubleWrapper.double)
  2126. ::google::protobuf::DoubleValue* temp = double__;
  2127. double__ = NULL;
  2128. return temp;
  2129. }
  2130. inline ::google::protobuf::DoubleValue* DoubleWrapper::mutable_double_() {
  2131. if (double__ == NULL) {
  2132. auto* p = CreateMaybeMessage<::google::protobuf::DoubleValue>(GetArenaNoVirtual());
  2133. double__ = p;
  2134. }
  2135. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.DoubleWrapper.double)
  2136. return double__;
  2137. }
  2138. inline void DoubleWrapper::set_allocated_double_(::google::protobuf::DoubleValue* double_) {
  2139. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2140. if (message_arena == NULL) {
  2141. delete reinterpret_cast< ::google::protobuf::MessageLite*>(double__);
  2142. }
  2143. if (double_) {
  2144. ::google::protobuf::Arena* submessage_arena =
  2145. reinterpret_cast<::google::protobuf::MessageLite*>(double_)->GetArena();
  2146. if (message_arena != submessage_arena) {
  2147. double_ = ::google::protobuf::internal::GetOwnedMessage(
  2148. message_arena, double_, submessage_arena);
  2149. }
  2150. } else {
  2151. }
  2152. double__ = double_;
  2153. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.DoubleWrapper.double)
  2154. }
  2155. // -------------------------------------------------------------------
  2156. // FloatWrapper
  2157. // .google.protobuf.FloatValue float = 1;
  2158. inline bool FloatWrapper::has_float_() const {
  2159. return this != internal_default_instance() && float__ != NULL;
  2160. }
  2161. inline const ::google::protobuf::FloatValue& FloatWrapper::_internal_float_() const {
  2162. return *float__;
  2163. }
  2164. inline const ::google::protobuf::FloatValue& FloatWrapper::float_() const {
  2165. const ::google::protobuf::FloatValue* p = float__;
  2166. // @@protoc_insertion_point(field_get:google.protobuf.testing.FloatWrapper.float)
  2167. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::FloatValue*>(
  2168. &::google::protobuf::_FloatValue_default_instance_);
  2169. }
  2170. inline ::google::protobuf::FloatValue* FloatWrapper::release_float_() {
  2171. // @@protoc_insertion_point(field_release:google.protobuf.testing.FloatWrapper.float)
  2172. ::google::protobuf::FloatValue* temp = float__;
  2173. float__ = NULL;
  2174. return temp;
  2175. }
  2176. inline ::google::protobuf::FloatValue* FloatWrapper::mutable_float_() {
  2177. if (float__ == NULL) {
  2178. auto* p = CreateMaybeMessage<::google::protobuf::FloatValue>(GetArenaNoVirtual());
  2179. float__ = p;
  2180. }
  2181. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.FloatWrapper.float)
  2182. return float__;
  2183. }
  2184. inline void FloatWrapper::set_allocated_float_(::google::protobuf::FloatValue* float_) {
  2185. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2186. if (message_arena == NULL) {
  2187. delete reinterpret_cast< ::google::protobuf::MessageLite*>(float__);
  2188. }
  2189. if (float_) {
  2190. ::google::protobuf::Arena* submessage_arena =
  2191. reinterpret_cast<::google::protobuf::MessageLite*>(float_)->GetArena();
  2192. if (message_arena != submessage_arena) {
  2193. float_ = ::google::protobuf::internal::GetOwnedMessage(
  2194. message_arena, float_, submessage_arena);
  2195. }
  2196. } else {
  2197. }
  2198. float__ = float_;
  2199. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.FloatWrapper.float)
  2200. }
  2201. // -------------------------------------------------------------------
  2202. // Int64Wrapper
  2203. // .google.protobuf.Int64Value int64 = 1;
  2204. inline bool Int64Wrapper::has_int64() const {
  2205. return this != internal_default_instance() && int64_ != NULL;
  2206. }
  2207. inline const ::google::protobuf::Int64Value& Int64Wrapper::_internal_int64() const {
  2208. return *int64_;
  2209. }
  2210. inline const ::google::protobuf::Int64Value& Int64Wrapper::int64() const {
  2211. const ::google::protobuf::Int64Value* p = int64_;
  2212. // @@protoc_insertion_point(field_get:google.protobuf.testing.Int64Wrapper.int64)
  2213. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Int64Value*>(
  2214. &::google::protobuf::_Int64Value_default_instance_);
  2215. }
  2216. inline ::google::protobuf::Int64Value* Int64Wrapper::release_int64() {
  2217. // @@protoc_insertion_point(field_release:google.protobuf.testing.Int64Wrapper.int64)
  2218. ::google::protobuf::Int64Value* temp = int64_;
  2219. int64_ = NULL;
  2220. return temp;
  2221. }
  2222. inline ::google::protobuf::Int64Value* Int64Wrapper::mutable_int64() {
  2223. if (int64_ == NULL) {
  2224. auto* p = CreateMaybeMessage<::google::protobuf::Int64Value>(GetArenaNoVirtual());
  2225. int64_ = p;
  2226. }
  2227. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.Int64Wrapper.int64)
  2228. return int64_;
  2229. }
  2230. inline void Int64Wrapper::set_allocated_int64(::google::protobuf::Int64Value* int64) {
  2231. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2232. if (message_arena == NULL) {
  2233. delete reinterpret_cast< ::google::protobuf::MessageLite*>(int64_);
  2234. }
  2235. if (int64) {
  2236. ::google::protobuf::Arena* submessage_arena =
  2237. reinterpret_cast<::google::protobuf::MessageLite*>(int64)->GetArena();
  2238. if (message_arena != submessage_arena) {
  2239. int64 = ::google::protobuf::internal::GetOwnedMessage(
  2240. message_arena, int64, submessage_arena);
  2241. }
  2242. } else {
  2243. }
  2244. int64_ = int64;
  2245. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.Int64Wrapper.int64)
  2246. }
  2247. // -------------------------------------------------------------------
  2248. // UInt64Wrapper
  2249. // .google.protobuf.UInt64Value uint64 = 1;
  2250. inline bool UInt64Wrapper::has_uint64() const {
  2251. return this != internal_default_instance() && uint64_ != NULL;
  2252. }
  2253. inline const ::google::protobuf::UInt64Value& UInt64Wrapper::_internal_uint64() const {
  2254. return *uint64_;
  2255. }
  2256. inline const ::google::protobuf::UInt64Value& UInt64Wrapper::uint64() const {
  2257. const ::google::protobuf::UInt64Value* p = uint64_;
  2258. // @@protoc_insertion_point(field_get:google.protobuf.testing.UInt64Wrapper.uint64)
  2259. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::UInt64Value*>(
  2260. &::google::protobuf::_UInt64Value_default_instance_);
  2261. }
  2262. inline ::google::protobuf::UInt64Value* UInt64Wrapper::release_uint64() {
  2263. // @@protoc_insertion_point(field_release:google.protobuf.testing.UInt64Wrapper.uint64)
  2264. ::google::protobuf::UInt64Value* temp = uint64_;
  2265. uint64_ = NULL;
  2266. return temp;
  2267. }
  2268. inline ::google::protobuf::UInt64Value* UInt64Wrapper::mutable_uint64() {
  2269. if (uint64_ == NULL) {
  2270. auto* p = CreateMaybeMessage<::google::protobuf::UInt64Value>(GetArenaNoVirtual());
  2271. uint64_ = p;
  2272. }
  2273. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.UInt64Wrapper.uint64)
  2274. return uint64_;
  2275. }
  2276. inline void UInt64Wrapper::set_allocated_uint64(::google::protobuf::UInt64Value* uint64) {
  2277. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2278. if (message_arena == NULL) {
  2279. delete reinterpret_cast< ::google::protobuf::MessageLite*>(uint64_);
  2280. }
  2281. if (uint64) {
  2282. ::google::protobuf::Arena* submessage_arena =
  2283. reinterpret_cast<::google::protobuf::MessageLite*>(uint64)->GetArena();
  2284. if (message_arena != submessage_arena) {
  2285. uint64 = ::google::protobuf::internal::GetOwnedMessage(
  2286. message_arena, uint64, submessage_arena);
  2287. }
  2288. } else {
  2289. }
  2290. uint64_ = uint64;
  2291. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.UInt64Wrapper.uint64)
  2292. }
  2293. // -------------------------------------------------------------------
  2294. // Int32Wrapper
  2295. // .google.protobuf.Int32Value int32 = 1;
  2296. inline bool Int32Wrapper::has_int32() const {
  2297. return this != internal_default_instance() && int32_ != NULL;
  2298. }
  2299. inline const ::google::protobuf::Int32Value& Int32Wrapper::_internal_int32() const {
  2300. return *int32_;
  2301. }
  2302. inline const ::google::protobuf::Int32Value& Int32Wrapper::int32() const {
  2303. const ::google::protobuf::Int32Value* p = int32_;
  2304. // @@protoc_insertion_point(field_get:google.protobuf.testing.Int32Wrapper.int32)
  2305. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Int32Value*>(
  2306. &::google::protobuf::_Int32Value_default_instance_);
  2307. }
  2308. inline ::google::protobuf::Int32Value* Int32Wrapper::release_int32() {
  2309. // @@protoc_insertion_point(field_release:google.protobuf.testing.Int32Wrapper.int32)
  2310. ::google::protobuf::Int32Value* temp = int32_;
  2311. int32_ = NULL;
  2312. return temp;
  2313. }
  2314. inline ::google::protobuf::Int32Value* Int32Wrapper::mutable_int32() {
  2315. if (int32_ == NULL) {
  2316. auto* p = CreateMaybeMessage<::google::protobuf::Int32Value>(GetArenaNoVirtual());
  2317. int32_ = p;
  2318. }
  2319. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.Int32Wrapper.int32)
  2320. return int32_;
  2321. }
  2322. inline void Int32Wrapper::set_allocated_int32(::google::protobuf::Int32Value* int32) {
  2323. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2324. if (message_arena == NULL) {
  2325. delete reinterpret_cast< ::google::protobuf::MessageLite*>(int32_);
  2326. }
  2327. if (int32) {
  2328. ::google::protobuf::Arena* submessage_arena =
  2329. reinterpret_cast<::google::protobuf::MessageLite*>(int32)->GetArena();
  2330. if (message_arena != submessage_arena) {
  2331. int32 = ::google::protobuf::internal::GetOwnedMessage(
  2332. message_arena, int32, submessage_arena);
  2333. }
  2334. } else {
  2335. }
  2336. int32_ = int32;
  2337. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.Int32Wrapper.int32)
  2338. }
  2339. // -------------------------------------------------------------------
  2340. // UInt32Wrapper
  2341. // .google.protobuf.UInt32Value uint32 = 1;
  2342. inline bool UInt32Wrapper::has_uint32() const {
  2343. return this != internal_default_instance() && uint32_ != NULL;
  2344. }
  2345. inline const ::google::protobuf::UInt32Value& UInt32Wrapper::_internal_uint32() const {
  2346. return *uint32_;
  2347. }
  2348. inline const ::google::protobuf::UInt32Value& UInt32Wrapper::uint32() const {
  2349. const ::google::protobuf::UInt32Value* p = uint32_;
  2350. // @@protoc_insertion_point(field_get:google.protobuf.testing.UInt32Wrapper.uint32)
  2351. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::UInt32Value*>(
  2352. &::google::protobuf::_UInt32Value_default_instance_);
  2353. }
  2354. inline ::google::protobuf::UInt32Value* UInt32Wrapper::release_uint32() {
  2355. // @@protoc_insertion_point(field_release:google.protobuf.testing.UInt32Wrapper.uint32)
  2356. ::google::protobuf::UInt32Value* temp = uint32_;
  2357. uint32_ = NULL;
  2358. return temp;
  2359. }
  2360. inline ::google::protobuf::UInt32Value* UInt32Wrapper::mutable_uint32() {
  2361. if (uint32_ == NULL) {
  2362. auto* p = CreateMaybeMessage<::google::protobuf::UInt32Value>(GetArenaNoVirtual());
  2363. uint32_ = p;
  2364. }
  2365. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.UInt32Wrapper.uint32)
  2366. return uint32_;
  2367. }
  2368. inline void UInt32Wrapper::set_allocated_uint32(::google::protobuf::UInt32Value* uint32) {
  2369. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2370. if (message_arena == NULL) {
  2371. delete reinterpret_cast< ::google::protobuf::MessageLite*>(uint32_);
  2372. }
  2373. if (uint32) {
  2374. ::google::protobuf::Arena* submessage_arena =
  2375. reinterpret_cast<::google::protobuf::MessageLite*>(uint32)->GetArena();
  2376. if (message_arena != submessage_arena) {
  2377. uint32 = ::google::protobuf::internal::GetOwnedMessage(
  2378. message_arena, uint32, submessage_arena);
  2379. }
  2380. } else {
  2381. }
  2382. uint32_ = uint32;
  2383. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.UInt32Wrapper.uint32)
  2384. }
  2385. // -------------------------------------------------------------------
  2386. // BoolWrapper
  2387. // .google.protobuf.BoolValue bool = 1;
  2388. inline bool BoolWrapper::has_bool_() const {
  2389. return this != internal_default_instance() && bool__ != NULL;
  2390. }
  2391. inline const ::google::protobuf::BoolValue& BoolWrapper::_internal_bool_() const {
  2392. return *bool__;
  2393. }
  2394. inline const ::google::protobuf::BoolValue& BoolWrapper::bool_() const {
  2395. const ::google::protobuf::BoolValue* p = bool__;
  2396. // @@protoc_insertion_point(field_get:google.protobuf.testing.BoolWrapper.bool)
  2397. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::BoolValue*>(
  2398. &::google::protobuf::_BoolValue_default_instance_);
  2399. }
  2400. inline ::google::protobuf::BoolValue* BoolWrapper::release_bool_() {
  2401. // @@protoc_insertion_point(field_release:google.protobuf.testing.BoolWrapper.bool)
  2402. ::google::protobuf::BoolValue* temp = bool__;
  2403. bool__ = NULL;
  2404. return temp;
  2405. }
  2406. inline ::google::protobuf::BoolValue* BoolWrapper::mutable_bool_() {
  2407. if (bool__ == NULL) {
  2408. auto* p = CreateMaybeMessage<::google::protobuf::BoolValue>(GetArenaNoVirtual());
  2409. bool__ = p;
  2410. }
  2411. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.BoolWrapper.bool)
  2412. return bool__;
  2413. }
  2414. inline void BoolWrapper::set_allocated_bool_(::google::protobuf::BoolValue* bool_) {
  2415. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2416. if (message_arena == NULL) {
  2417. delete reinterpret_cast< ::google::protobuf::MessageLite*>(bool__);
  2418. }
  2419. if (bool_) {
  2420. ::google::protobuf::Arena* submessage_arena =
  2421. reinterpret_cast<::google::protobuf::MessageLite*>(bool_)->GetArena();
  2422. if (message_arena != submessage_arena) {
  2423. bool_ = ::google::protobuf::internal::GetOwnedMessage(
  2424. message_arena, bool_, submessage_arena);
  2425. }
  2426. } else {
  2427. }
  2428. bool__ = bool_;
  2429. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.BoolWrapper.bool)
  2430. }
  2431. // -------------------------------------------------------------------
  2432. // StringWrapper
  2433. // .google.protobuf.StringValue string = 1;
  2434. inline bool StringWrapper::has_string() const {
  2435. return this != internal_default_instance() && string_ != NULL;
  2436. }
  2437. inline const ::google::protobuf::StringValue& StringWrapper::_internal_string() const {
  2438. return *string_;
  2439. }
  2440. inline const ::google::protobuf::StringValue& StringWrapper::string() const {
  2441. const ::google::protobuf::StringValue* p = string_;
  2442. // @@protoc_insertion_point(field_get:google.protobuf.testing.StringWrapper.string)
  2443. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::StringValue*>(
  2444. &::google::protobuf::_StringValue_default_instance_);
  2445. }
  2446. inline ::google::protobuf::StringValue* StringWrapper::release_string() {
  2447. // @@protoc_insertion_point(field_release:google.protobuf.testing.StringWrapper.string)
  2448. ::google::protobuf::StringValue* temp = string_;
  2449. string_ = NULL;
  2450. return temp;
  2451. }
  2452. inline ::google::protobuf::StringValue* StringWrapper::mutable_string() {
  2453. if (string_ == NULL) {
  2454. auto* p = CreateMaybeMessage<::google::protobuf::StringValue>(GetArenaNoVirtual());
  2455. string_ = p;
  2456. }
  2457. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.StringWrapper.string)
  2458. return string_;
  2459. }
  2460. inline void StringWrapper::set_allocated_string(::google::protobuf::StringValue* string) {
  2461. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2462. if (message_arena == NULL) {
  2463. delete reinterpret_cast< ::google::protobuf::MessageLite*>(string_);
  2464. }
  2465. if (string) {
  2466. ::google::protobuf::Arena* submessage_arena =
  2467. reinterpret_cast<::google::protobuf::MessageLite*>(string)->GetArena();
  2468. if (message_arena != submessage_arena) {
  2469. string = ::google::protobuf::internal::GetOwnedMessage(
  2470. message_arena, string, submessage_arena);
  2471. }
  2472. } else {
  2473. }
  2474. string_ = string;
  2475. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StringWrapper.string)
  2476. }
  2477. // -------------------------------------------------------------------
  2478. // BytesWrapper
  2479. // .google.protobuf.BytesValue bytes = 1;
  2480. inline bool BytesWrapper::has_bytes() const {
  2481. return this != internal_default_instance() && bytes_ != NULL;
  2482. }
  2483. inline const ::google::protobuf::BytesValue& BytesWrapper::_internal_bytes() const {
  2484. return *bytes_;
  2485. }
  2486. inline const ::google::protobuf::BytesValue& BytesWrapper::bytes() const {
  2487. const ::google::protobuf::BytesValue* p = bytes_;
  2488. // @@protoc_insertion_point(field_get:google.protobuf.testing.BytesWrapper.bytes)
  2489. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::BytesValue*>(
  2490. &::google::protobuf::_BytesValue_default_instance_);
  2491. }
  2492. inline ::google::protobuf::BytesValue* BytesWrapper::release_bytes() {
  2493. // @@protoc_insertion_point(field_release:google.protobuf.testing.BytesWrapper.bytes)
  2494. ::google::protobuf::BytesValue* temp = bytes_;
  2495. bytes_ = NULL;
  2496. return temp;
  2497. }
  2498. inline ::google::protobuf::BytesValue* BytesWrapper::mutable_bytes() {
  2499. if (bytes_ == NULL) {
  2500. auto* p = CreateMaybeMessage<::google::protobuf::BytesValue>(GetArenaNoVirtual());
  2501. bytes_ = p;
  2502. }
  2503. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.BytesWrapper.bytes)
  2504. return bytes_;
  2505. }
  2506. inline void BytesWrapper::set_allocated_bytes(::google::protobuf::BytesValue* bytes) {
  2507. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2508. if (message_arena == NULL) {
  2509. delete reinterpret_cast< ::google::protobuf::MessageLite*>(bytes_);
  2510. }
  2511. if (bytes) {
  2512. ::google::protobuf::Arena* submessage_arena =
  2513. reinterpret_cast<::google::protobuf::MessageLite*>(bytes)->GetArena();
  2514. if (message_arena != submessage_arena) {
  2515. bytes = ::google::protobuf::internal::GetOwnedMessage(
  2516. message_arena, bytes, submessage_arena);
  2517. }
  2518. } else {
  2519. }
  2520. bytes_ = bytes;
  2521. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.BytesWrapper.bytes)
  2522. }
  2523. #ifdef __GNUC__
  2524. #pragma GCC diagnostic pop
  2525. #endif // __GNUC__
  2526. // -------------------------------------------------------------------
  2527. // -------------------------------------------------------------------
  2528. // -------------------------------------------------------------------
  2529. // -------------------------------------------------------------------
  2530. // -------------------------------------------------------------------
  2531. // -------------------------------------------------------------------
  2532. // -------------------------------------------------------------------
  2533. // -------------------------------------------------------------------
  2534. // -------------------------------------------------------------------
  2535. // @@protoc_insertion_point(namespace_scope)
  2536. } // namespace testing
  2537. } // namespace protobuf
  2538. } // namespace google
  2539. // @@protoc_insertion_point(global_scope)
  2540. #endif // PROTOBUF_INCLUDED_google_2fprotobuf_2futil_2finternal_2ftestdata_2fwrappers_2eproto