simpletest.pb.h 141 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: simpletest.proto
  3. #ifndef PROTOBUF_INCLUDED_simpletest_2eproto
  4. #define PROTOBUF_INCLUDED_simpletest_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/generated_enum_reflection.h>
  28. #include <google/protobuf/unknown_field_set.h>
  29. // @@protoc_insertion_point(includes)
  30. #define PROTOBUF_INTERNAL_EXPORT_protobuf_simpletest_2eproto
  31. namespace protobuf_simpletest_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[24];
  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_simpletest_2eproto
  43. namespace qtprotobufnamespace {
  44. namespace tests {
  45. class ComplexMessage;
  46. class ComplexMessageDefaultTypeInternal;
  47. extern ComplexMessageDefaultTypeInternal _ComplexMessage_default_instance_;
  48. class RepeatedBytesMessage;
  49. class RepeatedBytesMessageDefaultTypeInternal;
  50. extern RepeatedBytesMessageDefaultTypeInternal _RepeatedBytesMessage_default_instance_;
  51. class RepeatedComplexMessage;
  52. class RepeatedComplexMessageDefaultTypeInternal;
  53. extern RepeatedComplexMessageDefaultTypeInternal _RepeatedComplexMessage_default_instance_;
  54. class RepeatedDoubleMessage;
  55. class RepeatedDoubleMessageDefaultTypeInternal;
  56. extern RepeatedDoubleMessageDefaultTypeInternal _RepeatedDoubleMessage_default_instance_;
  57. class RepeatedFloatMessage;
  58. class RepeatedFloatMessageDefaultTypeInternal;
  59. extern RepeatedFloatMessageDefaultTypeInternal _RepeatedFloatMessage_default_instance_;
  60. class RepeatedIntMessage;
  61. class RepeatedIntMessageDefaultTypeInternal;
  62. extern RepeatedIntMessageDefaultTypeInternal _RepeatedIntMessage_default_instance_;
  63. class RepeatedStringMessage;
  64. class RepeatedStringMessageDefaultTypeInternal;
  65. extern RepeatedStringMessageDefaultTypeInternal _RepeatedStringMessage_default_instance_;
  66. class SimpleBoolMessage;
  67. class SimpleBoolMessageDefaultTypeInternal;
  68. extern SimpleBoolMessageDefaultTypeInternal _SimpleBoolMessage_default_instance_;
  69. class SimpleBytesMessage;
  70. class SimpleBytesMessageDefaultTypeInternal;
  71. extern SimpleBytesMessageDefaultTypeInternal _SimpleBytesMessage_default_instance_;
  72. class SimpleDoubleMessage;
  73. class SimpleDoubleMessageDefaultTypeInternal;
  74. extern SimpleDoubleMessageDefaultTypeInternal _SimpleDoubleMessage_default_instance_;
  75. class SimpleEnumMessage;
  76. class SimpleEnumMessageDefaultTypeInternal;
  77. extern SimpleEnumMessageDefaultTypeInternal _SimpleEnumMessage_default_instance_;
  78. class SimpleFileEnumMessage;
  79. class SimpleFileEnumMessageDefaultTypeInternal;
  80. extern SimpleFileEnumMessageDefaultTypeInternal _SimpleFileEnumMessage_default_instance_;
  81. class SimpleFixedInt32Message;
  82. class SimpleFixedInt32MessageDefaultTypeInternal;
  83. extern SimpleFixedInt32MessageDefaultTypeInternal _SimpleFixedInt32Message_default_instance_;
  84. class SimpleFixedInt64Message;
  85. class SimpleFixedInt64MessageDefaultTypeInternal;
  86. extern SimpleFixedInt64MessageDefaultTypeInternal _SimpleFixedInt64Message_default_instance_;
  87. class SimpleFloatMessage;
  88. class SimpleFloatMessageDefaultTypeInternal;
  89. extern SimpleFloatMessageDefaultTypeInternal _SimpleFloatMessage_default_instance_;
  90. class SimpleInt64Message;
  91. class SimpleInt64MessageDefaultTypeInternal;
  92. extern SimpleInt64MessageDefaultTypeInternal _SimpleInt64Message_default_instance_;
  93. class SimpleIntMessage;
  94. class SimpleIntMessageDefaultTypeInternal;
  95. extern SimpleIntMessageDefaultTypeInternal _SimpleIntMessage_default_instance_;
  96. class SimpleSFixedInt32Message;
  97. class SimpleSFixedInt32MessageDefaultTypeInternal;
  98. extern SimpleSFixedInt32MessageDefaultTypeInternal _SimpleSFixedInt32Message_default_instance_;
  99. class SimpleSFixedInt64Message;
  100. class SimpleSFixedInt64MessageDefaultTypeInternal;
  101. extern SimpleSFixedInt64MessageDefaultTypeInternal _SimpleSFixedInt64Message_default_instance_;
  102. class SimpleSInt64Message;
  103. class SimpleSInt64MessageDefaultTypeInternal;
  104. extern SimpleSInt64MessageDefaultTypeInternal _SimpleSInt64Message_default_instance_;
  105. class SimpleSIntMessage;
  106. class SimpleSIntMessageDefaultTypeInternal;
  107. extern SimpleSIntMessageDefaultTypeInternal _SimpleSIntMessage_default_instance_;
  108. class SimpleStringMessage;
  109. class SimpleStringMessageDefaultTypeInternal;
  110. extern SimpleStringMessageDefaultTypeInternal _SimpleStringMessage_default_instance_;
  111. class SimpleUInt64Message;
  112. class SimpleUInt64MessageDefaultTypeInternal;
  113. extern SimpleUInt64MessageDefaultTypeInternal _SimpleUInt64Message_default_instance_;
  114. class SimpleUIntMessage;
  115. class SimpleUIntMessageDefaultTypeInternal;
  116. extern SimpleUIntMessageDefaultTypeInternal _SimpleUIntMessage_default_instance_;
  117. } // namespace tests
  118. } // namespace qtprotobufnamespace
  119. namespace google {
  120. namespace protobuf {
  121. template<> ::qtprotobufnamespace::tests::ComplexMessage* Arena::CreateMaybeMessage<::qtprotobufnamespace::tests::ComplexMessage>(Arena*);
  122. template<> ::qtprotobufnamespace::tests::RepeatedBytesMessage* Arena::CreateMaybeMessage<::qtprotobufnamespace::tests::RepeatedBytesMessage>(Arena*);
  123. template<> ::qtprotobufnamespace::tests::RepeatedComplexMessage* Arena::CreateMaybeMessage<::qtprotobufnamespace::tests::RepeatedComplexMessage>(Arena*);
  124. template<> ::qtprotobufnamespace::tests::RepeatedDoubleMessage* Arena::CreateMaybeMessage<::qtprotobufnamespace::tests::RepeatedDoubleMessage>(Arena*);
  125. template<> ::qtprotobufnamespace::tests::RepeatedFloatMessage* Arena::CreateMaybeMessage<::qtprotobufnamespace::tests::RepeatedFloatMessage>(Arena*);
  126. template<> ::qtprotobufnamespace::tests::RepeatedIntMessage* Arena::CreateMaybeMessage<::qtprotobufnamespace::tests::RepeatedIntMessage>(Arena*);
  127. template<> ::qtprotobufnamespace::tests::RepeatedStringMessage* Arena::CreateMaybeMessage<::qtprotobufnamespace::tests::RepeatedStringMessage>(Arena*);
  128. template<> ::qtprotobufnamespace::tests::SimpleBoolMessage* Arena::CreateMaybeMessage<::qtprotobufnamespace::tests::SimpleBoolMessage>(Arena*);
  129. template<> ::qtprotobufnamespace::tests::SimpleBytesMessage* Arena::CreateMaybeMessage<::qtprotobufnamespace::tests::SimpleBytesMessage>(Arena*);
  130. template<> ::qtprotobufnamespace::tests::SimpleDoubleMessage* Arena::CreateMaybeMessage<::qtprotobufnamespace::tests::SimpleDoubleMessage>(Arena*);
  131. template<> ::qtprotobufnamespace::tests::SimpleEnumMessage* Arena::CreateMaybeMessage<::qtprotobufnamespace::tests::SimpleEnumMessage>(Arena*);
  132. template<> ::qtprotobufnamespace::tests::SimpleFileEnumMessage* Arena::CreateMaybeMessage<::qtprotobufnamespace::tests::SimpleFileEnumMessage>(Arena*);
  133. template<> ::qtprotobufnamespace::tests::SimpleFixedInt32Message* Arena::CreateMaybeMessage<::qtprotobufnamespace::tests::SimpleFixedInt32Message>(Arena*);
  134. template<> ::qtprotobufnamespace::tests::SimpleFixedInt64Message* Arena::CreateMaybeMessage<::qtprotobufnamespace::tests::SimpleFixedInt64Message>(Arena*);
  135. template<> ::qtprotobufnamespace::tests::SimpleFloatMessage* Arena::CreateMaybeMessage<::qtprotobufnamespace::tests::SimpleFloatMessage>(Arena*);
  136. template<> ::qtprotobufnamespace::tests::SimpleInt64Message* Arena::CreateMaybeMessage<::qtprotobufnamespace::tests::SimpleInt64Message>(Arena*);
  137. template<> ::qtprotobufnamespace::tests::SimpleIntMessage* Arena::CreateMaybeMessage<::qtprotobufnamespace::tests::SimpleIntMessage>(Arena*);
  138. template<> ::qtprotobufnamespace::tests::SimpleSFixedInt32Message* Arena::CreateMaybeMessage<::qtprotobufnamespace::tests::SimpleSFixedInt32Message>(Arena*);
  139. template<> ::qtprotobufnamespace::tests::SimpleSFixedInt64Message* Arena::CreateMaybeMessage<::qtprotobufnamespace::tests::SimpleSFixedInt64Message>(Arena*);
  140. template<> ::qtprotobufnamespace::tests::SimpleSInt64Message* Arena::CreateMaybeMessage<::qtprotobufnamespace::tests::SimpleSInt64Message>(Arena*);
  141. template<> ::qtprotobufnamespace::tests::SimpleSIntMessage* Arena::CreateMaybeMessage<::qtprotobufnamespace::tests::SimpleSIntMessage>(Arena*);
  142. template<> ::qtprotobufnamespace::tests::SimpleStringMessage* Arena::CreateMaybeMessage<::qtprotobufnamespace::tests::SimpleStringMessage>(Arena*);
  143. template<> ::qtprotobufnamespace::tests::SimpleUInt64Message* Arena::CreateMaybeMessage<::qtprotobufnamespace::tests::SimpleUInt64Message>(Arena*);
  144. template<> ::qtprotobufnamespace::tests::SimpleUIntMessage* Arena::CreateMaybeMessage<::qtprotobufnamespace::tests::SimpleUIntMessage>(Arena*);
  145. } // namespace protobuf
  146. } // namespace google
  147. namespace qtprotobufnamespace {
  148. namespace tests {
  149. enum SimpleEnumMessage_LocalEnum {
  150. SimpleEnumMessage_LocalEnum_LOCAL_ENUM_VALUE0 = 0,
  151. SimpleEnumMessage_LocalEnum_LOCAL_ENUM_VALUE1 = 1,
  152. SimpleEnumMessage_LocalEnum_LOCAL_ENUM_VALUE2 = 2,
  153. SimpleEnumMessage_LocalEnum_LOCAL_ENUM_VALUE3 = 3,
  154. SimpleEnumMessage_LocalEnum_SimpleEnumMessage_LocalEnum_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min,
  155. SimpleEnumMessage_LocalEnum_SimpleEnumMessage_LocalEnum_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max
  156. };
  157. bool SimpleEnumMessage_LocalEnum_IsValid(int value);
  158. const SimpleEnumMessage_LocalEnum SimpleEnumMessage_LocalEnum_LocalEnum_MIN = SimpleEnumMessage_LocalEnum_LOCAL_ENUM_VALUE0;
  159. const SimpleEnumMessage_LocalEnum SimpleEnumMessage_LocalEnum_LocalEnum_MAX = SimpleEnumMessage_LocalEnum_LOCAL_ENUM_VALUE3;
  160. const int SimpleEnumMessage_LocalEnum_LocalEnum_ARRAYSIZE = SimpleEnumMessage_LocalEnum_LocalEnum_MAX + 1;
  161. const ::google::protobuf::EnumDescriptor* SimpleEnumMessage_LocalEnum_descriptor();
  162. inline const ::std::string& SimpleEnumMessage_LocalEnum_Name(SimpleEnumMessage_LocalEnum value) {
  163. return ::google::protobuf::internal::NameOfEnum(
  164. SimpleEnumMessage_LocalEnum_descriptor(), value);
  165. }
  166. inline bool SimpleEnumMessage_LocalEnum_Parse(
  167. const ::std::string& name, SimpleEnumMessage_LocalEnum* value) {
  168. return ::google::protobuf::internal::ParseNamedEnum<SimpleEnumMessage_LocalEnum>(
  169. SimpleEnumMessage_LocalEnum_descriptor(), name, value);
  170. }
  171. enum TestEnum {
  172. TEST_ENUM_VALUE0 = 0,
  173. TEST_ENUM_VALUE1 = 1,
  174. TEST_ENUM_VALUE2 = 2,
  175. TEST_ENUM_VALUE3 = 4,
  176. TEST_ENUM_VALUE4 = 3,
  177. TestEnum_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min,
  178. TestEnum_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max
  179. };
  180. bool TestEnum_IsValid(int value);
  181. const TestEnum TestEnum_MIN = TEST_ENUM_VALUE0;
  182. const TestEnum TestEnum_MAX = TEST_ENUM_VALUE3;
  183. const int TestEnum_ARRAYSIZE = TestEnum_MAX + 1;
  184. const ::google::protobuf::EnumDescriptor* TestEnum_descriptor();
  185. inline const ::std::string& TestEnum_Name(TestEnum value) {
  186. return ::google::protobuf::internal::NameOfEnum(
  187. TestEnum_descriptor(), value);
  188. }
  189. inline bool TestEnum_Parse(
  190. const ::std::string& name, TestEnum* value) {
  191. return ::google::protobuf::internal::ParseNamedEnum<TestEnum>(
  192. TestEnum_descriptor(), name, value);
  193. }
  194. // ===================================================================
  195. class SimpleEnumMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:qtprotobufnamespace.tests.SimpleEnumMessage) */ {
  196. public:
  197. SimpleEnumMessage();
  198. virtual ~SimpleEnumMessage();
  199. SimpleEnumMessage(const SimpleEnumMessage& from);
  200. inline SimpleEnumMessage& operator=(const SimpleEnumMessage& from) {
  201. CopyFrom(from);
  202. return *this;
  203. }
  204. #if LANG_CXX11
  205. SimpleEnumMessage(SimpleEnumMessage&& from) noexcept
  206. : SimpleEnumMessage() {
  207. *this = ::std::move(from);
  208. }
  209. inline SimpleEnumMessage& operator=(SimpleEnumMessage&& from) noexcept {
  210. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  211. if (this != &from) InternalSwap(&from);
  212. } else {
  213. CopyFrom(from);
  214. }
  215. return *this;
  216. }
  217. #endif
  218. static const ::google::protobuf::Descriptor* descriptor();
  219. static const SimpleEnumMessage& default_instance();
  220. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  221. static inline const SimpleEnumMessage* internal_default_instance() {
  222. return reinterpret_cast<const SimpleEnumMessage*>(
  223. &_SimpleEnumMessage_default_instance_);
  224. }
  225. static constexpr int kIndexInFileMessages =
  226. 0;
  227. void Swap(SimpleEnumMessage* other);
  228. friend void swap(SimpleEnumMessage& a, SimpleEnumMessage& b) {
  229. a.Swap(&b);
  230. }
  231. // implements Message ----------------------------------------------
  232. inline SimpleEnumMessage* New() const final {
  233. return CreateMaybeMessage<SimpleEnumMessage>(NULL);
  234. }
  235. SimpleEnumMessage* New(::google::protobuf::Arena* arena) const final {
  236. return CreateMaybeMessage<SimpleEnumMessage>(arena);
  237. }
  238. void CopyFrom(const ::google::protobuf::Message& from) final;
  239. void MergeFrom(const ::google::protobuf::Message& from) final;
  240. void CopyFrom(const SimpleEnumMessage& from);
  241. void MergeFrom(const SimpleEnumMessage& from);
  242. void Clear() final;
  243. bool IsInitialized() const final;
  244. size_t ByteSizeLong() const final;
  245. bool MergePartialFromCodedStream(
  246. ::google::protobuf::io::CodedInputStream* input) final;
  247. void SerializeWithCachedSizes(
  248. ::google::protobuf::io::CodedOutputStream* output) const final;
  249. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  250. bool deterministic, ::google::protobuf::uint8* target) const final;
  251. int GetCachedSize() const final { return _cached_size_.Get(); }
  252. private:
  253. void SharedCtor();
  254. void SharedDtor();
  255. void SetCachedSize(int size) const final;
  256. void InternalSwap(SimpleEnumMessage* other);
  257. private:
  258. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  259. return NULL;
  260. }
  261. inline void* MaybeArenaPtr() const {
  262. return NULL;
  263. }
  264. public:
  265. ::google::protobuf::Metadata GetMetadata() const final;
  266. // nested types ----------------------------------------------------
  267. typedef SimpleEnumMessage_LocalEnum LocalEnum;
  268. static const LocalEnum LOCAL_ENUM_VALUE0 =
  269. SimpleEnumMessage_LocalEnum_LOCAL_ENUM_VALUE0;
  270. static const LocalEnum LOCAL_ENUM_VALUE1 =
  271. SimpleEnumMessage_LocalEnum_LOCAL_ENUM_VALUE1;
  272. static const LocalEnum LOCAL_ENUM_VALUE2 =
  273. SimpleEnumMessage_LocalEnum_LOCAL_ENUM_VALUE2;
  274. static const LocalEnum LOCAL_ENUM_VALUE3 =
  275. SimpleEnumMessage_LocalEnum_LOCAL_ENUM_VALUE3;
  276. static inline bool LocalEnum_IsValid(int value) {
  277. return SimpleEnumMessage_LocalEnum_IsValid(value);
  278. }
  279. static const LocalEnum LocalEnum_MIN =
  280. SimpleEnumMessage_LocalEnum_LocalEnum_MIN;
  281. static const LocalEnum LocalEnum_MAX =
  282. SimpleEnumMessage_LocalEnum_LocalEnum_MAX;
  283. static const int LocalEnum_ARRAYSIZE =
  284. SimpleEnumMessage_LocalEnum_LocalEnum_ARRAYSIZE;
  285. static inline const ::google::protobuf::EnumDescriptor*
  286. LocalEnum_descriptor() {
  287. return SimpleEnumMessage_LocalEnum_descriptor();
  288. }
  289. static inline const ::std::string& LocalEnum_Name(LocalEnum value) {
  290. return SimpleEnumMessage_LocalEnum_Name(value);
  291. }
  292. static inline bool LocalEnum_Parse(const ::std::string& name,
  293. LocalEnum* value) {
  294. return SimpleEnumMessage_LocalEnum_Parse(name, value);
  295. }
  296. // accessors -------------------------------------------------------
  297. // repeated .qtprotobufnamespace.tests.SimpleEnumMessage.LocalEnum localEnumList = 2;
  298. int localenumlist_size() const;
  299. void clear_localenumlist();
  300. static const int kLocalEnumListFieldNumber = 2;
  301. ::qtprotobufnamespace::tests::SimpleEnumMessage_LocalEnum localenumlist(int index) const;
  302. void set_localenumlist(int index, ::qtprotobufnamespace::tests::SimpleEnumMessage_LocalEnum value);
  303. void add_localenumlist(::qtprotobufnamespace::tests::SimpleEnumMessage_LocalEnum value);
  304. const ::google::protobuf::RepeatedField<int>& localenumlist() const;
  305. ::google::protobuf::RepeatedField<int>* mutable_localenumlist();
  306. // .qtprotobufnamespace.tests.SimpleEnumMessage.LocalEnum localEnum = 1;
  307. void clear_localenum();
  308. static const int kLocalEnumFieldNumber = 1;
  309. ::qtprotobufnamespace::tests::SimpleEnumMessage_LocalEnum localenum() const;
  310. void set_localenum(::qtprotobufnamespace::tests::SimpleEnumMessage_LocalEnum value);
  311. // @@protoc_insertion_point(class_scope:qtprotobufnamespace.tests.SimpleEnumMessage)
  312. private:
  313. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  314. ::google::protobuf::RepeatedField<int> localenumlist_;
  315. mutable int _localenumlist_cached_byte_size_;
  316. int localenum_;
  317. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  318. friend struct ::protobuf_simpletest_2eproto::TableStruct;
  319. };
  320. // -------------------------------------------------------------------
  321. class SimpleFileEnumMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:qtprotobufnamespace.tests.SimpleFileEnumMessage) */ {
  322. public:
  323. SimpleFileEnumMessage();
  324. virtual ~SimpleFileEnumMessage();
  325. SimpleFileEnumMessage(const SimpleFileEnumMessage& from);
  326. inline SimpleFileEnumMessage& operator=(const SimpleFileEnumMessage& from) {
  327. CopyFrom(from);
  328. return *this;
  329. }
  330. #if LANG_CXX11
  331. SimpleFileEnumMessage(SimpleFileEnumMessage&& from) noexcept
  332. : SimpleFileEnumMessage() {
  333. *this = ::std::move(from);
  334. }
  335. inline SimpleFileEnumMessage& operator=(SimpleFileEnumMessage&& from) noexcept {
  336. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  337. if (this != &from) InternalSwap(&from);
  338. } else {
  339. CopyFrom(from);
  340. }
  341. return *this;
  342. }
  343. #endif
  344. static const ::google::protobuf::Descriptor* descriptor();
  345. static const SimpleFileEnumMessage& default_instance();
  346. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  347. static inline const SimpleFileEnumMessage* internal_default_instance() {
  348. return reinterpret_cast<const SimpleFileEnumMessage*>(
  349. &_SimpleFileEnumMessage_default_instance_);
  350. }
  351. static constexpr int kIndexInFileMessages =
  352. 1;
  353. void Swap(SimpleFileEnumMessage* other);
  354. friend void swap(SimpleFileEnumMessage& a, SimpleFileEnumMessage& b) {
  355. a.Swap(&b);
  356. }
  357. // implements Message ----------------------------------------------
  358. inline SimpleFileEnumMessage* New() const final {
  359. return CreateMaybeMessage<SimpleFileEnumMessage>(NULL);
  360. }
  361. SimpleFileEnumMessage* New(::google::protobuf::Arena* arena) const final {
  362. return CreateMaybeMessage<SimpleFileEnumMessage>(arena);
  363. }
  364. void CopyFrom(const ::google::protobuf::Message& from) final;
  365. void MergeFrom(const ::google::protobuf::Message& from) final;
  366. void CopyFrom(const SimpleFileEnumMessage& from);
  367. void MergeFrom(const SimpleFileEnumMessage& from);
  368. void Clear() final;
  369. bool IsInitialized() const final;
  370. size_t ByteSizeLong() const final;
  371. bool MergePartialFromCodedStream(
  372. ::google::protobuf::io::CodedInputStream* input) final;
  373. void SerializeWithCachedSizes(
  374. ::google::protobuf::io::CodedOutputStream* output) const final;
  375. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  376. bool deterministic, ::google::protobuf::uint8* target) const final;
  377. int GetCachedSize() const final { return _cached_size_.Get(); }
  378. private:
  379. void SharedCtor();
  380. void SharedDtor();
  381. void SetCachedSize(int size) const final;
  382. void InternalSwap(SimpleFileEnumMessage* other);
  383. private:
  384. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  385. return NULL;
  386. }
  387. inline void* MaybeArenaPtr() const {
  388. return NULL;
  389. }
  390. public:
  391. ::google::protobuf::Metadata GetMetadata() const final;
  392. // nested types ----------------------------------------------------
  393. // accessors -------------------------------------------------------
  394. // repeated .qtprotobufnamespace.tests.TestEnum globalEnumList = 2;
  395. int globalenumlist_size() const;
  396. void clear_globalenumlist();
  397. static const int kGlobalEnumListFieldNumber = 2;
  398. ::qtprotobufnamespace::tests::TestEnum globalenumlist(int index) const;
  399. void set_globalenumlist(int index, ::qtprotobufnamespace::tests::TestEnum value);
  400. void add_globalenumlist(::qtprotobufnamespace::tests::TestEnum value);
  401. const ::google::protobuf::RepeatedField<int>& globalenumlist() const;
  402. ::google::protobuf::RepeatedField<int>* mutable_globalenumlist();
  403. // .qtprotobufnamespace.tests.TestEnum globalEnum = 1;
  404. void clear_globalenum();
  405. static const int kGlobalEnumFieldNumber = 1;
  406. ::qtprotobufnamespace::tests::TestEnum globalenum() const;
  407. void set_globalenum(::qtprotobufnamespace::tests::TestEnum value);
  408. // @@protoc_insertion_point(class_scope:qtprotobufnamespace.tests.SimpleFileEnumMessage)
  409. private:
  410. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  411. ::google::protobuf::RepeatedField<int> globalenumlist_;
  412. mutable int _globalenumlist_cached_byte_size_;
  413. int globalenum_;
  414. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  415. friend struct ::protobuf_simpletest_2eproto::TableStruct;
  416. };
  417. // -------------------------------------------------------------------
  418. class SimpleBoolMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:qtprotobufnamespace.tests.SimpleBoolMessage) */ {
  419. public:
  420. SimpleBoolMessage();
  421. virtual ~SimpleBoolMessage();
  422. SimpleBoolMessage(const SimpleBoolMessage& from);
  423. inline SimpleBoolMessage& operator=(const SimpleBoolMessage& from) {
  424. CopyFrom(from);
  425. return *this;
  426. }
  427. #if LANG_CXX11
  428. SimpleBoolMessage(SimpleBoolMessage&& from) noexcept
  429. : SimpleBoolMessage() {
  430. *this = ::std::move(from);
  431. }
  432. inline SimpleBoolMessage& operator=(SimpleBoolMessage&& from) noexcept {
  433. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  434. if (this != &from) InternalSwap(&from);
  435. } else {
  436. CopyFrom(from);
  437. }
  438. return *this;
  439. }
  440. #endif
  441. static const ::google::protobuf::Descriptor* descriptor();
  442. static const SimpleBoolMessage& default_instance();
  443. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  444. static inline const SimpleBoolMessage* internal_default_instance() {
  445. return reinterpret_cast<const SimpleBoolMessage*>(
  446. &_SimpleBoolMessage_default_instance_);
  447. }
  448. static constexpr int kIndexInFileMessages =
  449. 2;
  450. void Swap(SimpleBoolMessage* other);
  451. friend void swap(SimpleBoolMessage& a, SimpleBoolMessage& b) {
  452. a.Swap(&b);
  453. }
  454. // implements Message ----------------------------------------------
  455. inline SimpleBoolMessage* New() const final {
  456. return CreateMaybeMessage<SimpleBoolMessage>(NULL);
  457. }
  458. SimpleBoolMessage* New(::google::protobuf::Arena* arena) const final {
  459. return CreateMaybeMessage<SimpleBoolMessage>(arena);
  460. }
  461. void CopyFrom(const ::google::protobuf::Message& from) final;
  462. void MergeFrom(const ::google::protobuf::Message& from) final;
  463. void CopyFrom(const SimpleBoolMessage& from);
  464. void MergeFrom(const SimpleBoolMessage& from);
  465. void Clear() final;
  466. bool IsInitialized() const final;
  467. size_t ByteSizeLong() const final;
  468. bool MergePartialFromCodedStream(
  469. ::google::protobuf::io::CodedInputStream* input) final;
  470. void SerializeWithCachedSizes(
  471. ::google::protobuf::io::CodedOutputStream* output) const final;
  472. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  473. bool deterministic, ::google::protobuf::uint8* target) const final;
  474. int GetCachedSize() const final { return _cached_size_.Get(); }
  475. private:
  476. void SharedCtor();
  477. void SharedDtor();
  478. void SetCachedSize(int size) const final;
  479. void InternalSwap(SimpleBoolMessage* other);
  480. private:
  481. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  482. return NULL;
  483. }
  484. inline void* MaybeArenaPtr() const {
  485. return NULL;
  486. }
  487. public:
  488. ::google::protobuf::Metadata GetMetadata() const final;
  489. // nested types ----------------------------------------------------
  490. // accessors -------------------------------------------------------
  491. // bool testFieldBool = 1;
  492. void clear_testfieldbool();
  493. static const int kTestFieldBoolFieldNumber = 1;
  494. bool testfieldbool() const;
  495. void set_testfieldbool(bool value);
  496. // @@protoc_insertion_point(class_scope:qtprotobufnamespace.tests.SimpleBoolMessage)
  497. private:
  498. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  499. bool testfieldbool_;
  500. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  501. friend struct ::protobuf_simpletest_2eproto::TableStruct;
  502. };
  503. // -------------------------------------------------------------------
  504. class SimpleIntMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:qtprotobufnamespace.tests.SimpleIntMessage) */ {
  505. public:
  506. SimpleIntMessage();
  507. virtual ~SimpleIntMessage();
  508. SimpleIntMessage(const SimpleIntMessage& from);
  509. inline SimpleIntMessage& operator=(const SimpleIntMessage& from) {
  510. CopyFrom(from);
  511. return *this;
  512. }
  513. #if LANG_CXX11
  514. SimpleIntMessage(SimpleIntMessage&& from) noexcept
  515. : SimpleIntMessage() {
  516. *this = ::std::move(from);
  517. }
  518. inline SimpleIntMessage& operator=(SimpleIntMessage&& from) noexcept {
  519. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  520. if (this != &from) InternalSwap(&from);
  521. } else {
  522. CopyFrom(from);
  523. }
  524. return *this;
  525. }
  526. #endif
  527. static const ::google::protobuf::Descriptor* descriptor();
  528. static const SimpleIntMessage& default_instance();
  529. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  530. static inline const SimpleIntMessage* internal_default_instance() {
  531. return reinterpret_cast<const SimpleIntMessage*>(
  532. &_SimpleIntMessage_default_instance_);
  533. }
  534. static constexpr int kIndexInFileMessages =
  535. 3;
  536. void Swap(SimpleIntMessage* other);
  537. friend void swap(SimpleIntMessage& a, SimpleIntMessage& b) {
  538. a.Swap(&b);
  539. }
  540. // implements Message ----------------------------------------------
  541. inline SimpleIntMessage* New() const final {
  542. return CreateMaybeMessage<SimpleIntMessage>(NULL);
  543. }
  544. SimpleIntMessage* New(::google::protobuf::Arena* arena) const final {
  545. return CreateMaybeMessage<SimpleIntMessage>(arena);
  546. }
  547. void CopyFrom(const ::google::protobuf::Message& from) final;
  548. void MergeFrom(const ::google::protobuf::Message& from) final;
  549. void CopyFrom(const SimpleIntMessage& from);
  550. void MergeFrom(const SimpleIntMessage& from);
  551. void Clear() final;
  552. bool IsInitialized() const final;
  553. size_t ByteSizeLong() const final;
  554. bool MergePartialFromCodedStream(
  555. ::google::protobuf::io::CodedInputStream* input) final;
  556. void SerializeWithCachedSizes(
  557. ::google::protobuf::io::CodedOutputStream* output) const final;
  558. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  559. bool deterministic, ::google::protobuf::uint8* target) const final;
  560. int GetCachedSize() const final { return _cached_size_.Get(); }
  561. private:
  562. void SharedCtor();
  563. void SharedDtor();
  564. void SetCachedSize(int size) const final;
  565. void InternalSwap(SimpleIntMessage* other);
  566. private:
  567. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  568. return NULL;
  569. }
  570. inline void* MaybeArenaPtr() const {
  571. return NULL;
  572. }
  573. public:
  574. ::google::protobuf::Metadata GetMetadata() const final;
  575. // nested types ----------------------------------------------------
  576. // accessors -------------------------------------------------------
  577. // int32 testFieldInt = 1;
  578. void clear_testfieldint();
  579. static const int kTestFieldIntFieldNumber = 1;
  580. ::google::protobuf::int32 testfieldint() const;
  581. void set_testfieldint(::google::protobuf::int32 value);
  582. // @@protoc_insertion_point(class_scope:qtprotobufnamespace.tests.SimpleIntMessage)
  583. private:
  584. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  585. ::google::protobuf::int32 testfieldint_;
  586. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  587. friend struct ::protobuf_simpletest_2eproto::TableStruct;
  588. };
  589. // -------------------------------------------------------------------
  590. class SimpleSIntMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:qtprotobufnamespace.tests.SimpleSIntMessage) */ {
  591. public:
  592. SimpleSIntMessage();
  593. virtual ~SimpleSIntMessage();
  594. SimpleSIntMessage(const SimpleSIntMessage& from);
  595. inline SimpleSIntMessage& operator=(const SimpleSIntMessage& from) {
  596. CopyFrom(from);
  597. return *this;
  598. }
  599. #if LANG_CXX11
  600. SimpleSIntMessage(SimpleSIntMessage&& from) noexcept
  601. : SimpleSIntMessage() {
  602. *this = ::std::move(from);
  603. }
  604. inline SimpleSIntMessage& operator=(SimpleSIntMessage&& from) noexcept {
  605. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  606. if (this != &from) InternalSwap(&from);
  607. } else {
  608. CopyFrom(from);
  609. }
  610. return *this;
  611. }
  612. #endif
  613. static const ::google::protobuf::Descriptor* descriptor();
  614. static const SimpleSIntMessage& default_instance();
  615. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  616. static inline const SimpleSIntMessage* internal_default_instance() {
  617. return reinterpret_cast<const SimpleSIntMessage*>(
  618. &_SimpleSIntMessage_default_instance_);
  619. }
  620. static constexpr int kIndexInFileMessages =
  621. 4;
  622. void Swap(SimpleSIntMessage* other);
  623. friend void swap(SimpleSIntMessage& a, SimpleSIntMessage& b) {
  624. a.Swap(&b);
  625. }
  626. // implements Message ----------------------------------------------
  627. inline SimpleSIntMessage* New() const final {
  628. return CreateMaybeMessage<SimpleSIntMessage>(NULL);
  629. }
  630. SimpleSIntMessage* New(::google::protobuf::Arena* arena) const final {
  631. return CreateMaybeMessage<SimpleSIntMessage>(arena);
  632. }
  633. void CopyFrom(const ::google::protobuf::Message& from) final;
  634. void MergeFrom(const ::google::protobuf::Message& from) final;
  635. void CopyFrom(const SimpleSIntMessage& from);
  636. void MergeFrom(const SimpleSIntMessage& from);
  637. void Clear() final;
  638. bool IsInitialized() const final;
  639. size_t ByteSizeLong() const final;
  640. bool MergePartialFromCodedStream(
  641. ::google::protobuf::io::CodedInputStream* input) final;
  642. void SerializeWithCachedSizes(
  643. ::google::protobuf::io::CodedOutputStream* output) const final;
  644. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  645. bool deterministic, ::google::protobuf::uint8* target) const final;
  646. int GetCachedSize() const final { return _cached_size_.Get(); }
  647. private:
  648. void SharedCtor();
  649. void SharedDtor();
  650. void SetCachedSize(int size) const final;
  651. void InternalSwap(SimpleSIntMessage* other);
  652. private:
  653. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  654. return NULL;
  655. }
  656. inline void* MaybeArenaPtr() const {
  657. return NULL;
  658. }
  659. public:
  660. ::google::protobuf::Metadata GetMetadata() const final;
  661. // nested types ----------------------------------------------------
  662. // accessors -------------------------------------------------------
  663. // sint32 testFieldInt = 1;
  664. void clear_testfieldint();
  665. static const int kTestFieldIntFieldNumber = 1;
  666. ::google::protobuf::int32 testfieldint() const;
  667. void set_testfieldint(::google::protobuf::int32 value);
  668. // @@protoc_insertion_point(class_scope:qtprotobufnamespace.tests.SimpleSIntMessage)
  669. private:
  670. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  671. ::google::protobuf::int32 testfieldint_;
  672. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  673. friend struct ::protobuf_simpletest_2eproto::TableStruct;
  674. };
  675. // -------------------------------------------------------------------
  676. class SimpleUIntMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:qtprotobufnamespace.tests.SimpleUIntMessage) */ {
  677. public:
  678. SimpleUIntMessage();
  679. virtual ~SimpleUIntMessage();
  680. SimpleUIntMessage(const SimpleUIntMessage& from);
  681. inline SimpleUIntMessage& operator=(const SimpleUIntMessage& from) {
  682. CopyFrom(from);
  683. return *this;
  684. }
  685. #if LANG_CXX11
  686. SimpleUIntMessage(SimpleUIntMessage&& from) noexcept
  687. : SimpleUIntMessage() {
  688. *this = ::std::move(from);
  689. }
  690. inline SimpleUIntMessage& operator=(SimpleUIntMessage&& from) noexcept {
  691. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  692. if (this != &from) InternalSwap(&from);
  693. } else {
  694. CopyFrom(from);
  695. }
  696. return *this;
  697. }
  698. #endif
  699. static const ::google::protobuf::Descriptor* descriptor();
  700. static const SimpleUIntMessage& default_instance();
  701. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  702. static inline const SimpleUIntMessage* internal_default_instance() {
  703. return reinterpret_cast<const SimpleUIntMessage*>(
  704. &_SimpleUIntMessage_default_instance_);
  705. }
  706. static constexpr int kIndexInFileMessages =
  707. 5;
  708. void Swap(SimpleUIntMessage* other);
  709. friend void swap(SimpleUIntMessage& a, SimpleUIntMessage& b) {
  710. a.Swap(&b);
  711. }
  712. // implements Message ----------------------------------------------
  713. inline SimpleUIntMessage* New() const final {
  714. return CreateMaybeMessage<SimpleUIntMessage>(NULL);
  715. }
  716. SimpleUIntMessage* New(::google::protobuf::Arena* arena) const final {
  717. return CreateMaybeMessage<SimpleUIntMessage>(arena);
  718. }
  719. void CopyFrom(const ::google::protobuf::Message& from) final;
  720. void MergeFrom(const ::google::protobuf::Message& from) final;
  721. void CopyFrom(const SimpleUIntMessage& from);
  722. void MergeFrom(const SimpleUIntMessage& from);
  723. void Clear() final;
  724. bool IsInitialized() const final;
  725. size_t ByteSizeLong() const final;
  726. bool MergePartialFromCodedStream(
  727. ::google::protobuf::io::CodedInputStream* input) final;
  728. void SerializeWithCachedSizes(
  729. ::google::protobuf::io::CodedOutputStream* output) const final;
  730. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  731. bool deterministic, ::google::protobuf::uint8* target) const final;
  732. int GetCachedSize() const final { return _cached_size_.Get(); }
  733. private:
  734. void SharedCtor();
  735. void SharedDtor();
  736. void SetCachedSize(int size) const final;
  737. void InternalSwap(SimpleUIntMessage* other);
  738. private:
  739. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  740. return NULL;
  741. }
  742. inline void* MaybeArenaPtr() const {
  743. return NULL;
  744. }
  745. public:
  746. ::google::protobuf::Metadata GetMetadata() const final;
  747. // nested types ----------------------------------------------------
  748. // accessors -------------------------------------------------------
  749. // uint32 testFieldInt = 1;
  750. void clear_testfieldint();
  751. static const int kTestFieldIntFieldNumber = 1;
  752. ::google::protobuf::uint32 testfieldint() const;
  753. void set_testfieldint(::google::protobuf::uint32 value);
  754. // @@protoc_insertion_point(class_scope:qtprotobufnamespace.tests.SimpleUIntMessage)
  755. private:
  756. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  757. ::google::protobuf::uint32 testfieldint_;
  758. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  759. friend struct ::protobuf_simpletest_2eproto::TableStruct;
  760. };
  761. // -------------------------------------------------------------------
  762. class SimpleInt64Message : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:qtprotobufnamespace.tests.SimpleInt64Message) */ {
  763. public:
  764. SimpleInt64Message();
  765. virtual ~SimpleInt64Message();
  766. SimpleInt64Message(const SimpleInt64Message& from);
  767. inline SimpleInt64Message& operator=(const SimpleInt64Message& from) {
  768. CopyFrom(from);
  769. return *this;
  770. }
  771. #if LANG_CXX11
  772. SimpleInt64Message(SimpleInt64Message&& from) noexcept
  773. : SimpleInt64Message() {
  774. *this = ::std::move(from);
  775. }
  776. inline SimpleInt64Message& operator=(SimpleInt64Message&& from) noexcept {
  777. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  778. if (this != &from) InternalSwap(&from);
  779. } else {
  780. CopyFrom(from);
  781. }
  782. return *this;
  783. }
  784. #endif
  785. static const ::google::protobuf::Descriptor* descriptor();
  786. static const SimpleInt64Message& default_instance();
  787. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  788. static inline const SimpleInt64Message* internal_default_instance() {
  789. return reinterpret_cast<const SimpleInt64Message*>(
  790. &_SimpleInt64Message_default_instance_);
  791. }
  792. static constexpr int kIndexInFileMessages =
  793. 6;
  794. void Swap(SimpleInt64Message* other);
  795. friend void swap(SimpleInt64Message& a, SimpleInt64Message& b) {
  796. a.Swap(&b);
  797. }
  798. // implements Message ----------------------------------------------
  799. inline SimpleInt64Message* New() const final {
  800. return CreateMaybeMessage<SimpleInt64Message>(NULL);
  801. }
  802. SimpleInt64Message* New(::google::protobuf::Arena* arena) const final {
  803. return CreateMaybeMessage<SimpleInt64Message>(arena);
  804. }
  805. void CopyFrom(const ::google::protobuf::Message& from) final;
  806. void MergeFrom(const ::google::protobuf::Message& from) final;
  807. void CopyFrom(const SimpleInt64Message& from);
  808. void MergeFrom(const SimpleInt64Message& from);
  809. void Clear() final;
  810. bool IsInitialized() const final;
  811. size_t ByteSizeLong() const final;
  812. bool MergePartialFromCodedStream(
  813. ::google::protobuf::io::CodedInputStream* input) final;
  814. void SerializeWithCachedSizes(
  815. ::google::protobuf::io::CodedOutputStream* output) const final;
  816. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  817. bool deterministic, ::google::protobuf::uint8* target) const final;
  818. int GetCachedSize() const final { return _cached_size_.Get(); }
  819. private:
  820. void SharedCtor();
  821. void SharedDtor();
  822. void SetCachedSize(int size) const final;
  823. void InternalSwap(SimpleInt64Message* other);
  824. private:
  825. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  826. return NULL;
  827. }
  828. inline void* MaybeArenaPtr() const {
  829. return NULL;
  830. }
  831. public:
  832. ::google::protobuf::Metadata GetMetadata() const final;
  833. // nested types ----------------------------------------------------
  834. // accessors -------------------------------------------------------
  835. // int64 testFieldInt = 1;
  836. void clear_testfieldint();
  837. static const int kTestFieldIntFieldNumber = 1;
  838. ::google::protobuf::int64 testfieldint() const;
  839. void set_testfieldint(::google::protobuf::int64 value);
  840. // @@protoc_insertion_point(class_scope:qtprotobufnamespace.tests.SimpleInt64Message)
  841. private:
  842. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  843. ::google::protobuf::int64 testfieldint_;
  844. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  845. friend struct ::protobuf_simpletest_2eproto::TableStruct;
  846. };
  847. // -------------------------------------------------------------------
  848. class SimpleSInt64Message : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:qtprotobufnamespace.tests.SimpleSInt64Message) */ {
  849. public:
  850. SimpleSInt64Message();
  851. virtual ~SimpleSInt64Message();
  852. SimpleSInt64Message(const SimpleSInt64Message& from);
  853. inline SimpleSInt64Message& operator=(const SimpleSInt64Message& from) {
  854. CopyFrom(from);
  855. return *this;
  856. }
  857. #if LANG_CXX11
  858. SimpleSInt64Message(SimpleSInt64Message&& from) noexcept
  859. : SimpleSInt64Message() {
  860. *this = ::std::move(from);
  861. }
  862. inline SimpleSInt64Message& operator=(SimpleSInt64Message&& from) noexcept {
  863. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  864. if (this != &from) InternalSwap(&from);
  865. } else {
  866. CopyFrom(from);
  867. }
  868. return *this;
  869. }
  870. #endif
  871. static const ::google::protobuf::Descriptor* descriptor();
  872. static const SimpleSInt64Message& default_instance();
  873. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  874. static inline const SimpleSInt64Message* internal_default_instance() {
  875. return reinterpret_cast<const SimpleSInt64Message*>(
  876. &_SimpleSInt64Message_default_instance_);
  877. }
  878. static constexpr int kIndexInFileMessages =
  879. 7;
  880. void Swap(SimpleSInt64Message* other);
  881. friend void swap(SimpleSInt64Message& a, SimpleSInt64Message& b) {
  882. a.Swap(&b);
  883. }
  884. // implements Message ----------------------------------------------
  885. inline SimpleSInt64Message* New() const final {
  886. return CreateMaybeMessage<SimpleSInt64Message>(NULL);
  887. }
  888. SimpleSInt64Message* New(::google::protobuf::Arena* arena) const final {
  889. return CreateMaybeMessage<SimpleSInt64Message>(arena);
  890. }
  891. void CopyFrom(const ::google::protobuf::Message& from) final;
  892. void MergeFrom(const ::google::protobuf::Message& from) final;
  893. void CopyFrom(const SimpleSInt64Message& from);
  894. void MergeFrom(const SimpleSInt64Message& from);
  895. void Clear() final;
  896. bool IsInitialized() const final;
  897. size_t ByteSizeLong() const final;
  898. bool MergePartialFromCodedStream(
  899. ::google::protobuf::io::CodedInputStream* input) final;
  900. void SerializeWithCachedSizes(
  901. ::google::protobuf::io::CodedOutputStream* output) const final;
  902. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  903. bool deterministic, ::google::protobuf::uint8* target) const final;
  904. int GetCachedSize() const final { return _cached_size_.Get(); }
  905. private:
  906. void SharedCtor();
  907. void SharedDtor();
  908. void SetCachedSize(int size) const final;
  909. void InternalSwap(SimpleSInt64Message* other);
  910. private:
  911. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  912. return NULL;
  913. }
  914. inline void* MaybeArenaPtr() const {
  915. return NULL;
  916. }
  917. public:
  918. ::google::protobuf::Metadata GetMetadata() const final;
  919. // nested types ----------------------------------------------------
  920. // accessors -------------------------------------------------------
  921. // sint64 testFieldInt = 1;
  922. void clear_testfieldint();
  923. static const int kTestFieldIntFieldNumber = 1;
  924. ::google::protobuf::int64 testfieldint() const;
  925. void set_testfieldint(::google::protobuf::int64 value);
  926. // @@protoc_insertion_point(class_scope:qtprotobufnamespace.tests.SimpleSInt64Message)
  927. private:
  928. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  929. ::google::protobuf::int64 testfieldint_;
  930. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  931. friend struct ::protobuf_simpletest_2eproto::TableStruct;
  932. };
  933. // -------------------------------------------------------------------
  934. class SimpleUInt64Message : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:qtprotobufnamespace.tests.SimpleUInt64Message) */ {
  935. public:
  936. SimpleUInt64Message();
  937. virtual ~SimpleUInt64Message();
  938. SimpleUInt64Message(const SimpleUInt64Message& from);
  939. inline SimpleUInt64Message& operator=(const SimpleUInt64Message& from) {
  940. CopyFrom(from);
  941. return *this;
  942. }
  943. #if LANG_CXX11
  944. SimpleUInt64Message(SimpleUInt64Message&& from) noexcept
  945. : SimpleUInt64Message() {
  946. *this = ::std::move(from);
  947. }
  948. inline SimpleUInt64Message& operator=(SimpleUInt64Message&& from) noexcept {
  949. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  950. if (this != &from) InternalSwap(&from);
  951. } else {
  952. CopyFrom(from);
  953. }
  954. return *this;
  955. }
  956. #endif
  957. static const ::google::protobuf::Descriptor* descriptor();
  958. static const SimpleUInt64Message& default_instance();
  959. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  960. static inline const SimpleUInt64Message* internal_default_instance() {
  961. return reinterpret_cast<const SimpleUInt64Message*>(
  962. &_SimpleUInt64Message_default_instance_);
  963. }
  964. static constexpr int kIndexInFileMessages =
  965. 8;
  966. void Swap(SimpleUInt64Message* other);
  967. friend void swap(SimpleUInt64Message& a, SimpleUInt64Message& b) {
  968. a.Swap(&b);
  969. }
  970. // implements Message ----------------------------------------------
  971. inline SimpleUInt64Message* New() const final {
  972. return CreateMaybeMessage<SimpleUInt64Message>(NULL);
  973. }
  974. SimpleUInt64Message* New(::google::protobuf::Arena* arena) const final {
  975. return CreateMaybeMessage<SimpleUInt64Message>(arena);
  976. }
  977. void CopyFrom(const ::google::protobuf::Message& from) final;
  978. void MergeFrom(const ::google::protobuf::Message& from) final;
  979. void CopyFrom(const SimpleUInt64Message& from);
  980. void MergeFrom(const SimpleUInt64Message& from);
  981. void Clear() final;
  982. bool IsInitialized() const final;
  983. size_t ByteSizeLong() const final;
  984. bool MergePartialFromCodedStream(
  985. ::google::protobuf::io::CodedInputStream* input) final;
  986. void SerializeWithCachedSizes(
  987. ::google::protobuf::io::CodedOutputStream* output) const final;
  988. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  989. bool deterministic, ::google::protobuf::uint8* target) const final;
  990. int GetCachedSize() const final { return _cached_size_.Get(); }
  991. private:
  992. void SharedCtor();
  993. void SharedDtor();
  994. void SetCachedSize(int size) const final;
  995. void InternalSwap(SimpleUInt64Message* other);
  996. private:
  997. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  998. return NULL;
  999. }
  1000. inline void* MaybeArenaPtr() const {
  1001. return NULL;
  1002. }
  1003. public:
  1004. ::google::protobuf::Metadata GetMetadata() const final;
  1005. // nested types ----------------------------------------------------
  1006. // accessors -------------------------------------------------------
  1007. // uint64 testFieldInt = 1;
  1008. void clear_testfieldint();
  1009. static const int kTestFieldIntFieldNumber = 1;
  1010. ::google::protobuf::uint64 testfieldint() const;
  1011. void set_testfieldint(::google::protobuf::uint64 value);
  1012. // @@protoc_insertion_point(class_scope:qtprotobufnamespace.tests.SimpleUInt64Message)
  1013. private:
  1014. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1015. ::google::protobuf::uint64 testfieldint_;
  1016. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1017. friend struct ::protobuf_simpletest_2eproto::TableStruct;
  1018. };
  1019. // -------------------------------------------------------------------
  1020. class SimpleStringMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:qtprotobufnamespace.tests.SimpleStringMessage) */ {
  1021. public:
  1022. SimpleStringMessage();
  1023. virtual ~SimpleStringMessage();
  1024. SimpleStringMessage(const SimpleStringMessage& from);
  1025. inline SimpleStringMessage& operator=(const SimpleStringMessage& from) {
  1026. CopyFrom(from);
  1027. return *this;
  1028. }
  1029. #if LANG_CXX11
  1030. SimpleStringMessage(SimpleStringMessage&& from) noexcept
  1031. : SimpleStringMessage() {
  1032. *this = ::std::move(from);
  1033. }
  1034. inline SimpleStringMessage& operator=(SimpleStringMessage&& from) noexcept {
  1035. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1036. if (this != &from) InternalSwap(&from);
  1037. } else {
  1038. CopyFrom(from);
  1039. }
  1040. return *this;
  1041. }
  1042. #endif
  1043. static const ::google::protobuf::Descriptor* descriptor();
  1044. static const SimpleStringMessage& default_instance();
  1045. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1046. static inline const SimpleStringMessage* internal_default_instance() {
  1047. return reinterpret_cast<const SimpleStringMessage*>(
  1048. &_SimpleStringMessage_default_instance_);
  1049. }
  1050. static constexpr int kIndexInFileMessages =
  1051. 9;
  1052. void Swap(SimpleStringMessage* other);
  1053. friend void swap(SimpleStringMessage& a, SimpleStringMessage& b) {
  1054. a.Swap(&b);
  1055. }
  1056. // implements Message ----------------------------------------------
  1057. inline SimpleStringMessage* New() const final {
  1058. return CreateMaybeMessage<SimpleStringMessage>(NULL);
  1059. }
  1060. SimpleStringMessage* New(::google::protobuf::Arena* arena) const final {
  1061. return CreateMaybeMessage<SimpleStringMessage>(arena);
  1062. }
  1063. void CopyFrom(const ::google::protobuf::Message& from) final;
  1064. void MergeFrom(const ::google::protobuf::Message& from) final;
  1065. void CopyFrom(const SimpleStringMessage& from);
  1066. void MergeFrom(const SimpleStringMessage& from);
  1067. void Clear() final;
  1068. bool IsInitialized() const final;
  1069. size_t ByteSizeLong() const final;
  1070. bool MergePartialFromCodedStream(
  1071. ::google::protobuf::io::CodedInputStream* input) final;
  1072. void SerializeWithCachedSizes(
  1073. ::google::protobuf::io::CodedOutputStream* output) const final;
  1074. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1075. bool deterministic, ::google::protobuf::uint8* target) const final;
  1076. int GetCachedSize() const final { return _cached_size_.Get(); }
  1077. private:
  1078. void SharedCtor();
  1079. void SharedDtor();
  1080. void SetCachedSize(int size) const final;
  1081. void InternalSwap(SimpleStringMessage* other);
  1082. private:
  1083. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1084. return NULL;
  1085. }
  1086. inline void* MaybeArenaPtr() const {
  1087. return NULL;
  1088. }
  1089. public:
  1090. ::google::protobuf::Metadata GetMetadata() const final;
  1091. // nested types ----------------------------------------------------
  1092. // accessors -------------------------------------------------------
  1093. // string testFieldString = 6;
  1094. void clear_testfieldstring();
  1095. static const int kTestFieldStringFieldNumber = 6;
  1096. const ::std::string& testfieldstring() const;
  1097. void set_testfieldstring(const ::std::string& value);
  1098. #if LANG_CXX11
  1099. void set_testfieldstring(::std::string&& value);
  1100. #endif
  1101. void set_testfieldstring(const char* value);
  1102. void set_testfieldstring(const char* value, size_t size);
  1103. ::std::string* mutable_testfieldstring();
  1104. ::std::string* release_testfieldstring();
  1105. void set_allocated_testfieldstring(::std::string* testfieldstring);
  1106. // @@protoc_insertion_point(class_scope:qtprotobufnamespace.tests.SimpleStringMessage)
  1107. private:
  1108. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1109. ::google::protobuf::internal::ArenaStringPtr testfieldstring_;
  1110. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1111. friend struct ::protobuf_simpletest_2eproto::TableStruct;
  1112. };
  1113. // -------------------------------------------------------------------
  1114. class SimpleFloatMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:qtprotobufnamespace.tests.SimpleFloatMessage) */ {
  1115. public:
  1116. SimpleFloatMessage();
  1117. virtual ~SimpleFloatMessage();
  1118. SimpleFloatMessage(const SimpleFloatMessage& from);
  1119. inline SimpleFloatMessage& operator=(const SimpleFloatMessage& from) {
  1120. CopyFrom(from);
  1121. return *this;
  1122. }
  1123. #if LANG_CXX11
  1124. SimpleFloatMessage(SimpleFloatMessage&& from) noexcept
  1125. : SimpleFloatMessage() {
  1126. *this = ::std::move(from);
  1127. }
  1128. inline SimpleFloatMessage& operator=(SimpleFloatMessage&& from) noexcept {
  1129. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1130. if (this != &from) InternalSwap(&from);
  1131. } else {
  1132. CopyFrom(from);
  1133. }
  1134. return *this;
  1135. }
  1136. #endif
  1137. static const ::google::protobuf::Descriptor* descriptor();
  1138. static const SimpleFloatMessage& default_instance();
  1139. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1140. static inline const SimpleFloatMessage* internal_default_instance() {
  1141. return reinterpret_cast<const SimpleFloatMessage*>(
  1142. &_SimpleFloatMessage_default_instance_);
  1143. }
  1144. static constexpr int kIndexInFileMessages =
  1145. 10;
  1146. void Swap(SimpleFloatMessage* other);
  1147. friend void swap(SimpleFloatMessage& a, SimpleFloatMessage& b) {
  1148. a.Swap(&b);
  1149. }
  1150. // implements Message ----------------------------------------------
  1151. inline SimpleFloatMessage* New() const final {
  1152. return CreateMaybeMessage<SimpleFloatMessage>(NULL);
  1153. }
  1154. SimpleFloatMessage* New(::google::protobuf::Arena* arena) const final {
  1155. return CreateMaybeMessage<SimpleFloatMessage>(arena);
  1156. }
  1157. void CopyFrom(const ::google::protobuf::Message& from) final;
  1158. void MergeFrom(const ::google::protobuf::Message& from) final;
  1159. void CopyFrom(const SimpleFloatMessage& from);
  1160. void MergeFrom(const SimpleFloatMessage& from);
  1161. void Clear() final;
  1162. bool IsInitialized() const final;
  1163. size_t ByteSizeLong() const final;
  1164. bool MergePartialFromCodedStream(
  1165. ::google::protobuf::io::CodedInputStream* input) final;
  1166. void SerializeWithCachedSizes(
  1167. ::google::protobuf::io::CodedOutputStream* output) const final;
  1168. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1169. bool deterministic, ::google::protobuf::uint8* target) const final;
  1170. int GetCachedSize() const final { return _cached_size_.Get(); }
  1171. private:
  1172. void SharedCtor();
  1173. void SharedDtor();
  1174. void SetCachedSize(int size) const final;
  1175. void InternalSwap(SimpleFloatMessage* other);
  1176. private:
  1177. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1178. return NULL;
  1179. }
  1180. inline void* MaybeArenaPtr() const {
  1181. return NULL;
  1182. }
  1183. public:
  1184. ::google::protobuf::Metadata GetMetadata() const final;
  1185. // nested types ----------------------------------------------------
  1186. // accessors -------------------------------------------------------
  1187. // float testFieldFloat = 7;
  1188. void clear_testfieldfloat();
  1189. static const int kTestFieldFloatFieldNumber = 7;
  1190. float testfieldfloat() const;
  1191. void set_testfieldfloat(float value);
  1192. // @@protoc_insertion_point(class_scope:qtprotobufnamespace.tests.SimpleFloatMessage)
  1193. private:
  1194. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1195. float testfieldfloat_;
  1196. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1197. friend struct ::protobuf_simpletest_2eproto::TableStruct;
  1198. };
  1199. // -------------------------------------------------------------------
  1200. class SimpleDoubleMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:qtprotobufnamespace.tests.SimpleDoubleMessage) */ {
  1201. public:
  1202. SimpleDoubleMessage();
  1203. virtual ~SimpleDoubleMessage();
  1204. SimpleDoubleMessage(const SimpleDoubleMessage& from);
  1205. inline SimpleDoubleMessage& operator=(const SimpleDoubleMessage& from) {
  1206. CopyFrom(from);
  1207. return *this;
  1208. }
  1209. #if LANG_CXX11
  1210. SimpleDoubleMessage(SimpleDoubleMessage&& from) noexcept
  1211. : SimpleDoubleMessage() {
  1212. *this = ::std::move(from);
  1213. }
  1214. inline SimpleDoubleMessage& operator=(SimpleDoubleMessage&& from) noexcept {
  1215. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1216. if (this != &from) InternalSwap(&from);
  1217. } else {
  1218. CopyFrom(from);
  1219. }
  1220. return *this;
  1221. }
  1222. #endif
  1223. static const ::google::protobuf::Descriptor* descriptor();
  1224. static const SimpleDoubleMessage& default_instance();
  1225. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1226. static inline const SimpleDoubleMessage* internal_default_instance() {
  1227. return reinterpret_cast<const SimpleDoubleMessage*>(
  1228. &_SimpleDoubleMessage_default_instance_);
  1229. }
  1230. static constexpr int kIndexInFileMessages =
  1231. 11;
  1232. void Swap(SimpleDoubleMessage* other);
  1233. friend void swap(SimpleDoubleMessage& a, SimpleDoubleMessage& b) {
  1234. a.Swap(&b);
  1235. }
  1236. // implements Message ----------------------------------------------
  1237. inline SimpleDoubleMessage* New() const final {
  1238. return CreateMaybeMessage<SimpleDoubleMessage>(NULL);
  1239. }
  1240. SimpleDoubleMessage* New(::google::protobuf::Arena* arena) const final {
  1241. return CreateMaybeMessage<SimpleDoubleMessage>(arena);
  1242. }
  1243. void CopyFrom(const ::google::protobuf::Message& from) final;
  1244. void MergeFrom(const ::google::protobuf::Message& from) final;
  1245. void CopyFrom(const SimpleDoubleMessage& from);
  1246. void MergeFrom(const SimpleDoubleMessage& from);
  1247. void Clear() final;
  1248. bool IsInitialized() const final;
  1249. size_t ByteSizeLong() const final;
  1250. bool MergePartialFromCodedStream(
  1251. ::google::protobuf::io::CodedInputStream* input) final;
  1252. void SerializeWithCachedSizes(
  1253. ::google::protobuf::io::CodedOutputStream* output) const final;
  1254. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1255. bool deterministic, ::google::protobuf::uint8* target) const final;
  1256. int GetCachedSize() const final { return _cached_size_.Get(); }
  1257. private:
  1258. void SharedCtor();
  1259. void SharedDtor();
  1260. void SetCachedSize(int size) const final;
  1261. void InternalSwap(SimpleDoubleMessage* other);
  1262. private:
  1263. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1264. return NULL;
  1265. }
  1266. inline void* MaybeArenaPtr() const {
  1267. return NULL;
  1268. }
  1269. public:
  1270. ::google::protobuf::Metadata GetMetadata() const final;
  1271. // nested types ----------------------------------------------------
  1272. // accessors -------------------------------------------------------
  1273. // double testFieldDouble = 8;
  1274. void clear_testfielddouble();
  1275. static const int kTestFieldDoubleFieldNumber = 8;
  1276. double testfielddouble() const;
  1277. void set_testfielddouble(double value);
  1278. // @@protoc_insertion_point(class_scope:qtprotobufnamespace.tests.SimpleDoubleMessage)
  1279. private:
  1280. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1281. double testfielddouble_;
  1282. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1283. friend struct ::protobuf_simpletest_2eproto::TableStruct;
  1284. };
  1285. // -------------------------------------------------------------------
  1286. class SimpleBytesMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:qtprotobufnamespace.tests.SimpleBytesMessage) */ {
  1287. public:
  1288. SimpleBytesMessage();
  1289. virtual ~SimpleBytesMessage();
  1290. SimpleBytesMessage(const SimpleBytesMessage& from);
  1291. inline SimpleBytesMessage& operator=(const SimpleBytesMessage& from) {
  1292. CopyFrom(from);
  1293. return *this;
  1294. }
  1295. #if LANG_CXX11
  1296. SimpleBytesMessage(SimpleBytesMessage&& from) noexcept
  1297. : SimpleBytesMessage() {
  1298. *this = ::std::move(from);
  1299. }
  1300. inline SimpleBytesMessage& operator=(SimpleBytesMessage&& from) noexcept {
  1301. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1302. if (this != &from) InternalSwap(&from);
  1303. } else {
  1304. CopyFrom(from);
  1305. }
  1306. return *this;
  1307. }
  1308. #endif
  1309. static const ::google::protobuf::Descriptor* descriptor();
  1310. static const SimpleBytesMessage& default_instance();
  1311. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1312. static inline const SimpleBytesMessage* internal_default_instance() {
  1313. return reinterpret_cast<const SimpleBytesMessage*>(
  1314. &_SimpleBytesMessage_default_instance_);
  1315. }
  1316. static constexpr int kIndexInFileMessages =
  1317. 12;
  1318. void Swap(SimpleBytesMessage* other);
  1319. friend void swap(SimpleBytesMessage& a, SimpleBytesMessage& b) {
  1320. a.Swap(&b);
  1321. }
  1322. // implements Message ----------------------------------------------
  1323. inline SimpleBytesMessage* New() const final {
  1324. return CreateMaybeMessage<SimpleBytesMessage>(NULL);
  1325. }
  1326. SimpleBytesMessage* New(::google::protobuf::Arena* arena) const final {
  1327. return CreateMaybeMessage<SimpleBytesMessage>(arena);
  1328. }
  1329. void CopyFrom(const ::google::protobuf::Message& from) final;
  1330. void MergeFrom(const ::google::protobuf::Message& from) final;
  1331. void CopyFrom(const SimpleBytesMessage& from);
  1332. void MergeFrom(const SimpleBytesMessage& from);
  1333. void Clear() final;
  1334. bool IsInitialized() const final;
  1335. size_t ByteSizeLong() const final;
  1336. bool MergePartialFromCodedStream(
  1337. ::google::protobuf::io::CodedInputStream* input) final;
  1338. void SerializeWithCachedSizes(
  1339. ::google::protobuf::io::CodedOutputStream* output) const final;
  1340. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1341. bool deterministic, ::google::protobuf::uint8* target) const final;
  1342. int GetCachedSize() const final { return _cached_size_.Get(); }
  1343. private:
  1344. void SharedCtor();
  1345. void SharedDtor();
  1346. void SetCachedSize(int size) const final;
  1347. void InternalSwap(SimpleBytesMessage* other);
  1348. private:
  1349. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1350. return NULL;
  1351. }
  1352. inline void* MaybeArenaPtr() const {
  1353. return NULL;
  1354. }
  1355. public:
  1356. ::google::protobuf::Metadata GetMetadata() const final;
  1357. // nested types ----------------------------------------------------
  1358. // accessors -------------------------------------------------------
  1359. // bytes testFieldBytes = 1;
  1360. void clear_testfieldbytes();
  1361. static const int kTestFieldBytesFieldNumber = 1;
  1362. const ::std::string& testfieldbytes() const;
  1363. void set_testfieldbytes(const ::std::string& value);
  1364. #if LANG_CXX11
  1365. void set_testfieldbytes(::std::string&& value);
  1366. #endif
  1367. void set_testfieldbytes(const char* value);
  1368. void set_testfieldbytes(const void* value, size_t size);
  1369. ::std::string* mutable_testfieldbytes();
  1370. ::std::string* release_testfieldbytes();
  1371. void set_allocated_testfieldbytes(::std::string* testfieldbytes);
  1372. // @@protoc_insertion_point(class_scope:qtprotobufnamespace.tests.SimpleBytesMessage)
  1373. private:
  1374. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1375. ::google::protobuf::internal::ArenaStringPtr testfieldbytes_;
  1376. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1377. friend struct ::protobuf_simpletest_2eproto::TableStruct;
  1378. };
  1379. // -------------------------------------------------------------------
  1380. class SimpleFixedInt32Message : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:qtprotobufnamespace.tests.SimpleFixedInt32Message) */ {
  1381. public:
  1382. SimpleFixedInt32Message();
  1383. virtual ~SimpleFixedInt32Message();
  1384. SimpleFixedInt32Message(const SimpleFixedInt32Message& from);
  1385. inline SimpleFixedInt32Message& operator=(const SimpleFixedInt32Message& from) {
  1386. CopyFrom(from);
  1387. return *this;
  1388. }
  1389. #if LANG_CXX11
  1390. SimpleFixedInt32Message(SimpleFixedInt32Message&& from) noexcept
  1391. : SimpleFixedInt32Message() {
  1392. *this = ::std::move(from);
  1393. }
  1394. inline SimpleFixedInt32Message& operator=(SimpleFixedInt32Message&& from) noexcept {
  1395. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1396. if (this != &from) InternalSwap(&from);
  1397. } else {
  1398. CopyFrom(from);
  1399. }
  1400. return *this;
  1401. }
  1402. #endif
  1403. static const ::google::protobuf::Descriptor* descriptor();
  1404. static const SimpleFixedInt32Message& default_instance();
  1405. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1406. static inline const SimpleFixedInt32Message* internal_default_instance() {
  1407. return reinterpret_cast<const SimpleFixedInt32Message*>(
  1408. &_SimpleFixedInt32Message_default_instance_);
  1409. }
  1410. static constexpr int kIndexInFileMessages =
  1411. 13;
  1412. void Swap(SimpleFixedInt32Message* other);
  1413. friend void swap(SimpleFixedInt32Message& a, SimpleFixedInt32Message& b) {
  1414. a.Swap(&b);
  1415. }
  1416. // implements Message ----------------------------------------------
  1417. inline SimpleFixedInt32Message* New() const final {
  1418. return CreateMaybeMessage<SimpleFixedInt32Message>(NULL);
  1419. }
  1420. SimpleFixedInt32Message* New(::google::protobuf::Arena* arena) const final {
  1421. return CreateMaybeMessage<SimpleFixedInt32Message>(arena);
  1422. }
  1423. void CopyFrom(const ::google::protobuf::Message& from) final;
  1424. void MergeFrom(const ::google::protobuf::Message& from) final;
  1425. void CopyFrom(const SimpleFixedInt32Message& from);
  1426. void MergeFrom(const SimpleFixedInt32Message& from);
  1427. void Clear() final;
  1428. bool IsInitialized() const final;
  1429. size_t ByteSizeLong() const final;
  1430. bool MergePartialFromCodedStream(
  1431. ::google::protobuf::io::CodedInputStream* input) final;
  1432. void SerializeWithCachedSizes(
  1433. ::google::protobuf::io::CodedOutputStream* output) const final;
  1434. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1435. bool deterministic, ::google::protobuf::uint8* target) const final;
  1436. int GetCachedSize() const final { return _cached_size_.Get(); }
  1437. private:
  1438. void SharedCtor();
  1439. void SharedDtor();
  1440. void SetCachedSize(int size) const final;
  1441. void InternalSwap(SimpleFixedInt32Message* other);
  1442. private:
  1443. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1444. return NULL;
  1445. }
  1446. inline void* MaybeArenaPtr() const {
  1447. return NULL;
  1448. }
  1449. public:
  1450. ::google::protobuf::Metadata GetMetadata() const final;
  1451. // nested types ----------------------------------------------------
  1452. // accessors -------------------------------------------------------
  1453. // fixed32 testFieldFixedInt32 = 1;
  1454. void clear_testfieldfixedint32();
  1455. static const int kTestFieldFixedInt32FieldNumber = 1;
  1456. ::google::protobuf::uint32 testfieldfixedint32() const;
  1457. void set_testfieldfixedint32(::google::protobuf::uint32 value);
  1458. // @@protoc_insertion_point(class_scope:qtprotobufnamespace.tests.SimpleFixedInt32Message)
  1459. private:
  1460. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1461. ::google::protobuf::uint32 testfieldfixedint32_;
  1462. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1463. friend struct ::protobuf_simpletest_2eproto::TableStruct;
  1464. };
  1465. // -------------------------------------------------------------------
  1466. class SimpleFixedInt64Message : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:qtprotobufnamespace.tests.SimpleFixedInt64Message) */ {
  1467. public:
  1468. SimpleFixedInt64Message();
  1469. virtual ~SimpleFixedInt64Message();
  1470. SimpleFixedInt64Message(const SimpleFixedInt64Message& from);
  1471. inline SimpleFixedInt64Message& operator=(const SimpleFixedInt64Message& from) {
  1472. CopyFrom(from);
  1473. return *this;
  1474. }
  1475. #if LANG_CXX11
  1476. SimpleFixedInt64Message(SimpleFixedInt64Message&& from) noexcept
  1477. : SimpleFixedInt64Message() {
  1478. *this = ::std::move(from);
  1479. }
  1480. inline SimpleFixedInt64Message& operator=(SimpleFixedInt64Message&& from) noexcept {
  1481. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1482. if (this != &from) InternalSwap(&from);
  1483. } else {
  1484. CopyFrom(from);
  1485. }
  1486. return *this;
  1487. }
  1488. #endif
  1489. static const ::google::protobuf::Descriptor* descriptor();
  1490. static const SimpleFixedInt64Message& default_instance();
  1491. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1492. static inline const SimpleFixedInt64Message* internal_default_instance() {
  1493. return reinterpret_cast<const SimpleFixedInt64Message*>(
  1494. &_SimpleFixedInt64Message_default_instance_);
  1495. }
  1496. static constexpr int kIndexInFileMessages =
  1497. 14;
  1498. void Swap(SimpleFixedInt64Message* other);
  1499. friend void swap(SimpleFixedInt64Message& a, SimpleFixedInt64Message& b) {
  1500. a.Swap(&b);
  1501. }
  1502. // implements Message ----------------------------------------------
  1503. inline SimpleFixedInt64Message* New() const final {
  1504. return CreateMaybeMessage<SimpleFixedInt64Message>(NULL);
  1505. }
  1506. SimpleFixedInt64Message* New(::google::protobuf::Arena* arena) const final {
  1507. return CreateMaybeMessage<SimpleFixedInt64Message>(arena);
  1508. }
  1509. void CopyFrom(const ::google::protobuf::Message& from) final;
  1510. void MergeFrom(const ::google::protobuf::Message& from) final;
  1511. void CopyFrom(const SimpleFixedInt64Message& from);
  1512. void MergeFrom(const SimpleFixedInt64Message& from);
  1513. void Clear() final;
  1514. bool IsInitialized() const final;
  1515. size_t ByteSizeLong() const final;
  1516. bool MergePartialFromCodedStream(
  1517. ::google::protobuf::io::CodedInputStream* input) final;
  1518. void SerializeWithCachedSizes(
  1519. ::google::protobuf::io::CodedOutputStream* output) const final;
  1520. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1521. bool deterministic, ::google::protobuf::uint8* target) const final;
  1522. int GetCachedSize() const final { return _cached_size_.Get(); }
  1523. private:
  1524. void SharedCtor();
  1525. void SharedDtor();
  1526. void SetCachedSize(int size) const final;
  1527. void InternalSwap(SimpleFixedInt64Message* other);
  1528. private:
  1529. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1530. return NULL;
  1531. }
  1532. inline void* MaybeArenaPtr() const {
  1533. return NULL;
  1534. }
  1535. public:
  1536. ::google::protobuf::Metadata GetMetadata() const final;
  1537. // nested types ----------------------------------------------------
  1538. // accessors -------------------------------------------------------
  1539. // fixed64 testFieldFixedInt64 = 1;
  1540. void clear_testfieldfixedint64();
  1541. static const int kTestFieldFixedInt64FieldNumber = 1;
  1542. ::google::protobuf::uint64 testfieldfixedint64() const;
  1543. void set_testfieldfixedint64(::google::protobuf::uint64 value);
  1544. // @@protoc_insertion_point(class_scope:qtprotobufnamespace.tests.SimpleFixedInt64Message)
  1545. private:
  1546. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1547. ::google::protobuf::uint64 testfieldfixedint64_;
  1548. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1549. friend struct ::protobuf_simpletest_2eproto::TableStruct;
  1550. };
  1551. // -------------------------------------------------------------------
  1552. class SimpleSFixedInt32Message : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:qtprotobufnamespace.tests.SimpleSFixedInt32Message) */ {
  1553. public:
  1554. SimpleSFixedInt32Message();
  1555. virtual ~SimpleSFixedInt32Message();
  1556. SimpleSFixedInt32Message(const SimpleSFixedInt32Message& from);
  1557. inline SimpleSFixedInt32Message& operator=(const SimpleSFixedInt32Message& from) {
  1558. CopyFrom(from);
  1559. return *this;
  1560. }
  1561. #if LANG_CXX11
  1562. SimpleSFixedInt32Message(SimpleSFixedInt32Message&& from) noexcept
  1563. : SimpleSFixedInt32Message() {
  1564. *this = ::std::move(from);
  1565. }
  1566. inline SimpleSFixedInt32Message& operator=(SimpleSFixedInt32Message&& from) noexcept {
  1567. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1568. if (this != &from) InternalSwap(&from);
  1569. } else {
  1570. CopyFrom(from);
  1571. }
  1572. return *this;
  1573. }
  1574. #endif
  1575. static const ::google::protobuf::Descriptor* descriptor();
  1576. static const SimpleSFixedInt32Message& default_instance();
  1577. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1578. static inline const SimpleSFixedInt32Message* internal_default_instance() {
  1579. return reinterpret_cast<const SimpleSFixedInt32Message*>(
  1580. &_SimpleSFixedInt32Message_default_instance_);
  1581. }
  1582. static constexpr int kIndexInFileMessages =
  1583. 15;
  1584. void Swap(SimpleSFixedInt32Message* other);
  1585. friend void swap(SimpleSFixedInt32Message& a, SimpleSFixedInt32Message& b) {
  1586. a.Swap(&b);
  1587. }
  1588. // implements Message ----------------------------------------------
  1589. inline SimpleSFixedInt32Message* New() const final {
  1590. return CreateMaybeMessage<SimpleSFixedInt32Message>(NULL);
  1591. }
  1592. SimpleSFixedInt32Message* New(::google::protobuf::Arena* arena) const final {
  1593. return CreateMaybeMessage<SimpleSFixedInt32Message>(arena);
  1594. }
  1595. void CopyFrom(const ::google::protobuf::Message& from) final;
  1596. void MergeFrom(const ::google::protobuf::Message& from) final;
  1597. void CopyFrom(const SimpleSFixedInt32Message& from);
  1598. void MergeFrom(const SimpleSFixedInt32Message& from);
  1599. void Clear() final;
  1600. bool IsInitialized() const final;
  1601. size_t ByteSizeLong() const final;
  1602. bool MergePartialFromCodedStream(
  1603. ::google::protobuf::io::CodedInputStream* input) final;
  1604. void SerializeWithCachedSizes(
  1605. ::google::protobuf::io::CodedOutputStream* output) const final;
  1606. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1607. bool deterministic, ::google::protobuf::uint8* target) const final;
  1608. int GetCachedSize() const final { return _cached_size_.Get(); }
  1609. private:
  1610. void SharedCtor();
  1611. void SharedDtor();
  1612. void SetCachedSize(int size) const final;
  1613. void InternalSwap(SimpleSFixedInt32Message* other);
  1614. private:
  1615. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1616. return NULL;
  1617. }
  1618. inline void* MaybeArenaPtr() const {
  1619. return NULL;
  1620. }
  1621. public:
  1622. ::google::protobuf::Metadata GetMetadata() const final;
  1623. // nested types ----------------------------------------------------
  1624. // accessors -------------------------------------------------------
  1625. // sfixed32 testFieldFixedInt32 = 1;
  1626. void clear_testfieldfixedint32();
  1627. static const int kTestFieldFixedInt32FieldNumber = 1;
  1628. ::google::protobuf::int32 testfieldfixedint32() const;
  1629. void set_testfieldfixedint32(::google::protobuf::int32 value);
  1630. // @@protoc_insertion_point(class_scope:qtprotobufnamespace.tests.SimpleSFixedInt32Message)
  1631. private:
  1632. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1633. ::google::protobuf::int32 testfieldfixedint32_;
  1634. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1635. friend struct ::protobuf_simpletest_2eproto::TableStruct;
  1636. };
  1637. // -------------------------------------------------------------------
  1638. class SimpleSFixedInt64Message : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:qtprotobufnamespace.tests.SimpleSFixedInt64Message) */ {
  1639. public:
  1640. SimpleSFixedInt64Message();
  1641. virtual ~SimpleSFixedInt64Message();
  1642. SimpleSFixedInt64Message(const SimpleSFixedInt64Message& from);
  1643. inline SimpleSFixedInt64Message& operator=(const SimpleSFixedInt64Message& from) {
  1644. CopyFrom(from);
  1645. return *this;
  1646. }
  1647. #if LANG_CXX11
  1648. SimpleSFixedInt64Message(SimpleSFixedInt64Message&& from) noexcept
  1649. : SimpleSFixedInt64Message() {
  1650. *this = ::std::move(from);
  1651. }
  1652. inline SimpleSFixedInt64Message& operator=(SimpleSFixedInt64Message&& from) noexcept {
  1653. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1654. if (this != &from) InternalSwap(&from);
  1655. } else {
  1656. CopyFrom(from);
  1657. }
  1658. return *this;
  1659. }
  1660. #endif
  1661. static const ::google::protobuf::Descriptor* descriptor();
  1662. static const SimpleSFixedInt64Message& default_instance();
  1663. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1664. static inline const SimpleSFixedInt64Message* internal_default_instance() {
  1665. return reinterpret_cast<const SimpleSFixedInt64Message*>(
  1666. &_SimpleSFixedInt64Message_default_instance_);
  1667. }
  1668. static constexpr int kIndexInFileMessages =
  1669. 16;
  1670. void Swap(SimpleSFixedInt64Message* other);
  1671. friend void swap(SimpleSFixedInt64Message& a, SimpleSFixedInt64Message& b) {
  1672. a.Swap(&b);
  1673. }
  1674. // implements Message ----------------------------------------------
  1675. inline SimpleSFixedInt64Message* New() const final {
  1676. return CreateMaybeMessage<SimpleSFixedInt64Message>(NULL);
  1677. }
  1678. SimpleSFixedInt64Message* New(::google::protobuf::Arena* arena) const final {
  1679. return CreateMaybeMessage<SimpleSFixedInt64Message>(arena);
  1680. }
  1681. void CopyFrom(const ::google::protobuf::Message& from) final;
  1682. void MergeFrom(const ::google::protobuf::Message& from) final;
  1683. void CopyFrom(const SimpleSFixedInt64Message& from);
  1684. void MergeFrom(const SimpleSFixedInt64Message& from);
  1685. void Clear() final;
  1686. bool IsInitialized() const final;
  1687. size_t ByteSizeLong() const final;
  1688. bool MergePartialFromCodedStream(
  1689. ::google::protobuf::io::CodedInputStream* input) final;
  1690. void SerializeWithCachedSizes(
  1691. ::google::protobuf::io::CodedOutputStream* output) const final;
  1692. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1693. bool deterministic, ::google::protobuf::uint8* target) const final;
  1694. int GetCachedSize() const final { return _cached_size_.Get(); }
  1695. private:
  1696. void SharedCtor();
  1697. void SharedDtor();
  1698. void SetCachedSize(int size) const final;
  1699. void InternalSwap(SimpleSFixedInt64Message* other);
  1700. private:
  1701. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1702. return NULL;
  1703. }
  1704. inline void* MaybeArenaPtr() const {
  1705. return NULL;
  1706. }
  1707. public:
  1708. ::google::protobuf::Metadata GetMetadata() const final;
  1709. // nested types ----------------------------------------------------
  1710. // accessors -------------------------------------------------------
  1711. // sfixed64 testFieldFixedInt64 = 1;
  1712. void clear_testfieldfixedint64();
  1713. static const int kTestFieldFixedInt64FieldNumber = 1;
  1714. ::google::protobuf::int64 testfieldfixedint64() const;
  1715. void set_testfieldfixedint64(::google::protobuf::int64 value);
  1716. // @@protoc_insertion_point(class_scope:qtprotobufnamespace.tests.SimpleSFixedInt64Message)
  1717. private:
  1718. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1719. ::google::protobuf::int64 testfieldfixedint64_;
  1720. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1721. friend struct ::protobuf_simpletest_2eproto::TableStruct;
  1722. };
  1723. // -------------------------------------------------------------------
  1724. class ComplexMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:qtprotobufnamespace.tests.ComplexMessage) */ {
  1725. public:
  1726. ComplexMessage();
  1727. virtual ~ComplexMessage();
  1728. ComplexMessage(const ComplexMessage& from);
  1729. inline ComplexMessage& operator=(const ComplexMessage& from) {
  1730. CopyFrom(from);
  1731. return *this;
  1732. }
  1733. #if LANG_CXX11
  1734. ComplexMessage(ComplexMessage&& from) noexcept
  1735. : ComplexMessage() {
  1736. *this = ::std::move(from);
  1737. }
  1738. inline ComplexMessage& operator=(ComplexMessage&& from) noexcept {
  1739. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1740. if (this != &from) InternalSwap(&from);
  1741. } else {
  1742. CopyFrom(from);
  1743. }
  1744. return *this;
  1745. }
  1746. #endif
  1747. static const ::google::protobuf::Descriptor* descriptor();
  1748. static const ComplexMessage& default_instance();
  1749. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1750. static inline const ComplexMessage* internal_default_instance() {
  1751. return reinterpret_cast<const ComplexMessage*>(
  1752. &_ComplexMessage_default_instance_);
  1753. }
  1754. static constexpr int kIndexInFileMessages =
  1755. 17;
  1756. void Swap(ComplexMessage* other);
  1757. friend void swap(ComplexMessage& a, ComplexMessage& b) {
  1758. a.Swap(&b);
  1759. }
  1760. // implements Message ----------------------------------------------
  1761. inline ComplexMessage* New() const final {
  1762. return CreateMaybeMessage<ComplexMessage>(NULL);
  1763. }
  1764. ComplexMessage* New(::google::protobuf::Arena* arena) const final {
  1765. return CreateMaybeMessage<ComplexMessage>(arena);
  1766. }
  1767. void CopyFrom(const ::google::protobuf::Message& from) final;
  1768. void MergeFrom(const ::google::protobuf::Message& from) final;
  1769. void CopyFrom(const ComplexMessage& from);
  1770. void MergeFrom(const ComplexMessage& from);
  1771. void Clear() final;
  1772. bool IsInitialized() const final;
  1773. size_t ByteSizeLong() const final;
  1774. bool MergePartialFromCodedStream(
  1775. ::google::protobuf::io::CodedInputStream* input) final;
  1776. void SerializeWithCachedSizes(
  1777. ::google::protobuf::io::CodedOutputStream* output) const final;
  1778. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1779. bool deterministic, ::google::protobuf::uint8* target) const final;
  1780. int GetCachedSize() const final { return _cached_size_.Get(); }
  1781. private:
  1782. void SharedCtor();
  1783. void SharedDtor();
  1784. void SetCachedSize(int size) const final;
  1785. void InternalSwap(ComplexMessage* other);
  1786. private:
  1787. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1788. return NULL;
  1789. }
  1790. inline void* MaybeArenaPtr() const {
  1791. return NULL;
  1792. }
  1793. public:
  1794. ::google::protobuf::Metadata GetMetadata() const final;
  1795. // nested types ----------------------------------------------------
  1796. // accessors -------------------------------------------------------
  1797. // .qtprotobufnamespace.tests.SimpleStringMessage testComplexField = 2;
  1798. bool has_testcomplexfield() const;
  1799. void clear_testcomplexfield();
  1800. static const int kTestComplexFieldFieldNumber = 2;
  1801. private:
  1802. const ::qtprotobufnamespace::tests::SimpleStringMessage& _internal_testcomplexfield() const;
  1803. public:
  1804. const ::qtprotobufnamespace::tests::SimpleStringMessage& testcomplexfield() const;
  1805. ::qtprotobufnamespace::tests::SimpleStringMessage* release_testcomplexfield();
  1806. ::qtprotobufnamespace::tests::SimpleStringMessage* mutable_testcomplexfield();
  1807. void set_allocated_testcomplexfield(::qtprotobufnamespace::tests::SimpleStringMessage* testcomplexfield);
  1808. // int32 testFieldInt = 1;
  1809. void clear_testfieldint();
  1810. static const int kTestFieldIntFieldNumber = 1;
  1811. ::google::protobuf::int32 testfieldint() const;
  1812. void set_testfieldint(::google::protobuf::int32 value);
  1813. // @@protoc_insertion_point(class_scope:qtprotobufnamespace.tests.ComplexMessage)
  1814. private:
  1815. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1816. ::qtprotobufnamespace::tests::SimpleStringMessage* testcomplexfield_;
  1817. ::google::protobuf::int32 testfieldint_;
  1818. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1819. friend struct ::protobuf_simpletest_2eproto::TableStruct;
  1820. };
  1821. // -------------------------------------------------------------------
  1822. class RepeatedIntMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:qtprotobufnamespace.tests.RepeatedIntMessage) */ {
  1823. public:
  1824. RepeatedIntMessage();
  1825. virtual ~RepeatedIntMessage();
  1826. RepeatedIntMessage(const RepeatedIntMessage& from);
  1827. inline RepeatedIntMessage& operator=(const RepeatedIntMessage& from) {
  1828. CopyFrom(from);
  1829. return *this;
  1830. }
  1831. #if LANG_CXX11
  1832. RepeatedIntMessage(RepeatedIntMessage&& from) noexcept
  1833. : RepeatedIntMessage() {
  1834. *this = ::std::move(from);
  1835. }
  1836. inline RepeatedIntMessage& operator=(RepeatedIntMessage&& from) noexcept {
  1837. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1838. if (this != &from) InternalSwap(&from);
  1839. } else {
  1840. CopyFrom(from);
  1841. }
  1842. return *this;
  1843. }
  1844. #endif
  1845. static const ::google::protobuf::Descriptor* descriptor();
  1846. static const RepeatedIntMessage& default_instance();
  1847. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1848. static inline const RepeatedIntMessage* internal_default_instance() {
  1849. return reinterpret_cast<const RepeatedIntMessage*>(
  1850. &_RepeatedIntMessage_default_instance_);
  1851. }
  1852. static constexpr int kIndexInFileMessages =
  1853. 18;
  1854. void Swap(RepeatedIntMessage* other);
  1855. friend void swap(RepeatedIntMessage& a, RepeatedIntMessage& b) {
  1856. a.Swap(&b);
  1857. }
  1858. // implements Message ----------------------------------------------
  1859. inline RepeatedIntMessage* New() const final {
  1860. return CreateMaybeMessage<RepeatedIntMessage>(NULL);
  1861. }
  1862. RepeatedIntMessage* New(::google::protobuf::Arena* arena) const final {
  1863. return CreateMaybeMessage<RepeatedIntMessage>(arena);
  1864. }
  1865. void CopyFrom(const ::google::protobuf::Message& from) final;
  1866. void MergeFrom(const ::google::protobuf::Message& from) final;
  1867. void CopyFrom(const RepeatedIntMessage& from);
  1868. void MergeFrom(const RepeatedIntMessage& from);
  1869. void Clear() final;
  1870. bool IsInitialized() const final;
  1871. size_t ByteSizeLong() const final;
  1872. bool MergePartialFromCodedStream(
  1873. ::google::protobuf::io::CodedInputStream* input) final;
  1874. void SerializeWithCachedSizes(
  1875. ::google::protobuf::io::CodedOutputStream* output) const final;
  1876. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1877. bool deterministic, ::google::protobuf::uint8* target) const final;
  1878. int GetCachedSize() const final { return _cached_size_.Get(); }
  1879. private:
  1880. void SharedCtor();
  1881. void SharedDtor();
  1882. void SetCachedSize(int size) const final;
  1883. void InternalSwap(RepeatedIntMessage* other);
  1884. private:
  1885. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1886. return NULL;
  1887. }
  1888. inline void* MaybeArenaPtr() const {
  1889. return NULL;
  1890. }
  1891. public:
  1892. ::google::protobuf::Metadata GetMetadata() const final;
  1893. // nested types ----------------------------------------------------
  1894. // accessors -------------------------------------------------------
  1895. // repeated sint32 testRepeatedInt = 1;
  1896. int testrepeatedint_size() const;
  1897. void clear_testrepeatedint();
  1898. static const int kTestRepeatedIntFieldNumber = 1;
  1899. ::google::protobuf::int32 testrepeatedint(int index) const;
  1900. void set_testrepeatedint(int index, ::google::protobuf::int32 value);
  1901. void add_testrepeatedint(::google::protobuf::int32 value);
  1902. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  1903. testrepeatedint() const;
  1904. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  1905. mutable_testrepeatedint();
  1906. // @@protoc_insertion_point(class_scope:qtprotobufnamespace.tests.RepeatedIntMessage)
  1907. private:
  1908. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1909. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > testrepeatedint_;
  1910. mutable int _testrepeatedint_cached_byte_size_;
  1911. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1912. friend struct ::protobuf_simpletest_2eproto::TableStruct;
  1913. };
  1914. // -------------------------------------------------------------------
  1915. class RepeatedStringMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:qtprotobufnamespace.tests.RepeatedStringMessage) */ {
  1916. public:
  1917. RepeatedStringMessage();
  1918. virtual ~RepeatedStringMessage();
  1919. RepeatedStringMessage(const RepeatedStringMessage& from);
  1920. inline RepeatedStringMessage& operator=(const RepeatedStringMessage& from) {
  1921. CopyFrom(from);
  1922. return *this;
  1923. }
  1924. #if LANG_CXX11
  1925. RepeatedStringMessage(RepeatedStringMessage&& from) noexcept
  1926. : RepeatedStringMessage() {
  1927. *this = ::std::move(from);
  1928. }
  1929. inline RepeatedStringMessage& operator=(RepeatedStringMessage&& from) noexcept {
  1930. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1931. if (this != &from) InternalSwap(&from);
  1932. } else {
  1933. CopyFrom(from);
  1934. }
  1935. return *this;
  1936. }
  1937. #endif
  1938. static const ::google::protobuf::Descriptor* descriptor();
  1939. static const RepeatedStringMessage& default_instance();
  1940. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1941. static inline const RepeatedStringMessage* internal_default_instance() {
  1942. return reinterpret_cast<const RepeatedStringMessage*>(
  1943. &_RepeatedStringMessage_default_instance_);
  1944. }
  1945. static constexpr int kIndexInFileMessages =
  1946. 19;
  1947. void Swap(RepeatedStringMessage* other);
  1948. friend void swap(RepeatedStringMessage& a, RepeatedStringMessage& b) {
  1949. a.Swap(&b);
  1950. }
  1951. // implements Message ----------------------------------------------
  1952. inline RepeatedStringMessage* New() const final {
  1953. return CreateMaybeMessage<RepeatedStringMessage>(NULL);
  1954. }
  1955. RepeatedStringMessage* New(::google::protobuf::Arena* arena) const final {
  1956. return CreateMaybeMessage<RepeatedStringMessage>(arena);
  1957. }
  1958. void CopyFrom(const ::google::protobuf::Message& from) final;
  1959. void MergeFrom(const ::google::protobuf::Message& from) final;
  1960. void CopyFrom(const RepeatedStringMessage& from);
  1961. void MergeFrom(const RepeatedStringMessage& from);
  1962. void Clear() final;
  1963. bool IsInitialized() const final;
  1964. size_t ByteSizeLong() const final;
  1965. bool MergePartialFromCodedStream(
  1966. ::google::protobuf::io::CodedInputStream* input) final;
  1967. void SerializeWithCachedSizes(
  1968. ::google::protobuf::io::CodedOutputStream* output) const final;
  1969. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1970. bool deterministic, ::google::protobuf::uint8* target) const final;
  1971. int GetCachedSize() const final { return _cached_size_.Get(); }
  1972. private:
  1973. void SharedCtor();
  1974. void SharedDtor();
  1975. void SetCachedSize(int size) const final;
  1976. void InternalSwap(RepeatedStringMessage* other);
  1977. private:
  1978. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1979. return NULL;
  1980. }
  1981. inline void* MaybeArenaPtr() const {
  1982. return NULL;
  1983. }
  1984. public:
  1985. ::google::protobuf::Metadata GetMetadata() const final;
  1986. // nested types ----------------------------------------------------
  1987. // accessors -------------------------------------------------------
  1988. // repeated string testRepeatedString = 1;
  1989. int testrepeatedstring_size() const;
  1990. void clear_testrepeatedstring();
  1991. static const int kTestRepeatedStringFieldNumber = 1;
  1992. const ::std::string& testrepeatedstring(int index) const;
  1993. ::std::string* mutable_testrepeatedstring(int index);
  1994. void set_testrepeatedstring(int index, const ::std::string& value);
  1995. #if LANG_CXX11
  1996. void set_testrepeatedstring(int index, ::std::string&& value);
  1997. #endif
  1998. void set_testrepeatedstring(int index, const char* value);
  1999. void set_testrepeatedstring(int index, const char* value, size_t size);
  2000. ::std::string* add_testrepeatedstring();
  2001. void add_testrepeatedstring(const ::std::string& value);
  2002. #if LANG_CXX11
  2003. void add_testrepeatedstring(::std::string&& value);
  2004. #endif
  2005. void add_testrepeatedstring(const char* value);
  2006. void add_testrepeatedstring(const char* value, size_t size);
  2007. const ::google::protobuf::RepeatedPtrField< ::std::string>& testrepeatedstring() const;
  2008. ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_testrepeatedstring();
  2009. // @@protoc_insertion_point(class_scope:qtprotobufnamespace.tests.RepeatedStringMessage)
  2010. private:
  2011. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2012. ::google::protobuf::RepeatedPtrField< ::std::string> testrepeatedstring_;
  2013. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2014. friend struct ::protobuf_simpletest_2eproto::TableStruct;
  2015. };
  2016. // -------------------------------------------------------------------
  2017. class RepeatedDoubleMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:qtprotobufnamespace.tests.RepeatedDoubleMessage) */ {
  2018. public:
  2019. RepeatedDoubleMessage();
  2020. virtual ~RepeatedDoubleMessage();
  2021. RepeatedDoubleMessage(const RepeatedDoubleMessage& from);
  2022. inline RepeatedDoubleMessage& operator=(const RepeatedDoubleMessage& from) {
  2023. CopyFrom(from);
  2024. return *this;
  2025. }
  2026. #if LANG_CXX11
  2027. RepeatedDoubleMessage(RepeatedDoubleMessage&& from) noexcept
  2028. : RepeatedDoubleMessage() {
  2029. *this = ::std::move(from);
  2030. }
  2031. inline RepeatedDoubleMessage& operator=(RepeatedDoubleMessage&& from) noexcept {
  2032. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2033. if (this != &from) InternalSwap(&from);
  2034. } else {
  2035. CopyFrom(from);
  2036. }
  2037. return *this;
  2038. }
  2039. #endif
  2040. static const ::google::protobuf::Descriptor* descriptor();
  2041. static const RepeatedDoubleMessage& default_instance();
  2042. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2043. static inline const RepeatedDoubleMessage* internal_default_instance() {
  2044. return reinterpret_cast<const RepeatedDoubleMessage*>(
  2045. &_RepeatedDoubleMessage_default_instance_);
  2046. }
  2047. static constexpr int kIndexInFileMessages =
  2048. 20;
  2049. void Swap(RepeatedDoubleMessage* other);
  2050. friend void swap(RepeatedDoubleMessage& a, RepeatedDoubleMessage& b) {
  2051. a.Swap(&b);
  2052. }
  2053. // implements Message ----------------------------------------------
  2054. inline RepeatedDoubleMessage* New() const final {
  2055. return CreateMaybeMessage<RepeatedDoubleMessage>(NULL);
  2056. }
  2057. RepeatedDoubleMessage* New(::google::protobuf::Arena* arena) const final {
  2058. return CreateMaybeMessage<RepeatedDoubleMessage>(arena);
  2059. }
  2060. void CopyFrom(const ::google::protobuf::Message& from) final;
  2061. void MergeFrom(const ::google::protobuf::Message& from) final;
  2062. void CopyFrom(const RepeatedDoubleMessage& from);
  2063. void MergeFrom(const RepeatedDoubleMessage& from);
  2064. void Clear() final;
  2065. bool IsInitialized() const final;
  2066. size_t ByteSizeLong() const final;
  2067. bool MergePartialFromCodedStream(
  2068. ::google::protobuf::io::CodedInputStream* input) final;
  2069. void SerializeWithCachedSizes(
  2070. ::google::protobuf::io::CodedOutputStream* output) const final;
  2071. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  2072. bool deterministic, ::google::protobuf::uint8* target) const final;
  2073. int GetCachedSize() const final { return _cached_size_.Get(); }
  2074. private:
  2075. void SharedCtor();
  2076. void SharedDtor();
  2077. void SetCachedSize(int size) const final;
  2078. void InternalSwap(RepeatedDoubleMessage* other);
  2079. private:
  2080. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2081. return NULL;
  2082. }
  2083. inline void* MaybeArenaPtr() const {
  2084. return NULL;
  2085. }
  2086. public:
  2087. ::google::protobuf::Metadata GetMetadata() const final;
  2088. // nested types ----------------------------------------------------
  2089. // accessors -------------------------------------------------------
  2090. // repeated double testRepeatedDouble = 1;
  2091. int testrepeateddouble_size() const;
  2092. void clear_testrepeateddouble();
  2093. static const int kTestRepeatedDoubleFieldNumber = 1;
  2094. double testrepeateddouble(int index) const;
  2095. void set_testrepeateddouble(int index, double value);
  2096. void add_testrepeateddouble(double value);
  2097. const ::google::protobuf::RepeatedField< double >&
  2098. testrepeateddouble() const;
  2099. ::google::protobuf::RepeatedField< double >*
  2100. mutable_testrepeateddouble();
  2101. // @@protoc_insertion_point(class_scope:qtprotobufnamespace.tests.RepeatedDoubleMessage)
  2102. private:
  2103. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2104. ::google::protobuf::RepeatedField< double > testrepeateddouble_;
  2105. mutable int _testrepeateddouble_cached_byte_size_;
  2106. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2107. friend struct ::protobuf_simpletest_2eproto::TableStruct;
  2108. };
  2109. // -------------------------------------------------------------------
  2110. class RepeatedBytesMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:qtprotobufnamespace.tests.RepeatedBytesMessage) */ {
  2111. public:
  2112. RepeatedBytesMessage();
  2113. virtual ~RepeatedBytesMessage();
  2114. RepeatedBytesMessage(const RepeatedBytesMessage& from);
  2115. inline RepeatedBytesMessage& operator=(const RepeatedBytesMessage& from) {
  2116. CopyFrom(from);
  2117. return *this;
  2118. }
  2119. #if LANG_CXX11
  2120. RepeatedBytesMessage(RepeatedBytesMessage&& from) noexcept
  2121. : RepeatedBytesMessage() {
  2122. *this = ::std::move(from);
  2123. }
  2124. inline RepeatedBytesMessage& operator=(RepeatedBytesMessage&& from) noexcept {
  2125. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2126. if (this != &from) InternalSwap(&from);
  2127. } else {
  2128. CopyFrom(from);
  2129. }
  2130. return *this;
  2131. }
  2132. #endif
  2133. static const ::google::protobuf::Descriptor* descriptor();
  2134. static const RepeatedBytesMessage& default_instance();
  2135. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2136. static inline const RepeatedBytesMessage* internal_default_instance() {
  2137. return reinterpret_cast<const RepeatedBytesMessage*>(
  2138. &_RepeatedBytesMessage_default_instance_);
  2139. }
  2140. static constexpr int kIndexInFileMessages =
  2141. 21;
  2142. void Swap(RepeatedBytesMessage* other);
  2143. friend void swap(RepeatedBytesMessage& a, RepeatedBytesMessage& b) {
  2144. a.Swap(&b);
  2145. }
  2146. // implements Message ----------------------------------------------
  2147. inline RepeatedBytesMessage* New() const final {
  2148. return CreateMaybeMessage<RepeatedBytesMessage>(NULL);
  2149. }
  2150. RepeatedBytesMessage* New(::google::protobuf::Arena* arena) const final {
  2151. return CreateMaybeMessage<RepeatedBytesMessage>(arena);
  2152. }
  2153. void CopyFrom(const ::google::protobuf::Message& from) final;
  2154. void MergeFrom(const ::google::protobuf::Message& from) final;
  2155. void CopyFrom(const RepeatedBytesMessage& from);
  2156. void MergeFrom(const RepeatedBytesMessage& from);
  2157. void Clear() final;
  2158. bool IsInitialized() const final;
  2159. size_t ByteSizeLong() const final;
  2160. bool MergePartialFromCodedStream(
  2161. ::google::protobuf::io::CodedInputStream* input) final;
  2162. void SerializeWithCachedSizes(
  2163. ::google::protobuf::io::CodedOutputStream* output) const final;
  2164. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  2165. bool deterministic, ::google::protobuf::uint8* target) const final;
  2166. int GetCachedSize() const final { return _cached_size_.Get(); }
  2167. private:
  2168. void SharedCtor();
  2169. void SharedDtor();
  2170. void SetCachedSize(int size) const final;
  2171. void InternalSwap(RepeatedBytesMessage* other);
  2172. private:
  2173. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2174. return NULL;
  2175. }
  2176. inline void* MaybeArenaPtr() const {
  2177. return NULL;
  2178. }
  2179. public:
  2180. ::google::protobuf::Metadata GetMetadata() const final;
  2181. // nested types ----------------------------------------------------
  2182. // accessors -------------------------------------------------------
  2183. // repeated bytes testRepeatedBytes = 1;
  2184. int testrepeatedbytes_size() const;
  2185. void clear_testrepeatedbytes();
  2186. static const int kTestRepeatedBytesFieldNumber = 1;
  2187. const ::std::string& testrepeatedbytes(int index) const;
  2188. ::std::string* mutable_testrepeatedbytes(int index);
  2189. void set_testrepeatedbytes(int index, const ::std::string& value);
  2190. #if LANG_CXX11
  2191. void set_testrepeatedbytes(int index, ::std::string&& value);
  2192. #endif
  2193. void set_testrepeatedbytes(int index, const char* value);
  2194. void set_testrepeatedbytes(int index, const void* value, size_t size);
  2195. ::std::string* add_testrepeatedbytes();
  2196. void add_testrepeatedbytes(const ::std::string& value);
  2197. #if LANG_CXX11
  2198. void add_testrepeatedbytes(::std::string&& value);
  2199. #endif
  2200. void add_testrepeatedbytes(const char* value);
  2201. void add_testrepeatedbytes(const void* value, size_t size);
  2202. const ::google::protobuf::RepeatedPtrField< ::std::string>& testrepeatedbytes() const;
  2203. ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_testrepeatedbytes();
  2204. // @@protoc_insertion_point(class_scope:qtprotobufnamespace.tests.RepeatedBytesMessage)
  2205. private:
  2206. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2207. ::google::protobuf::RepeatedPtrField< ::std::string> testrepeatedbytes_;
  2208. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2209. friend struct ::protobuf_simpletest_2eproto::TableStruct;
  2210. };
  2211. // -------------------------------------------------------------------
  2212. class RepeatedFloatMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:qtprotobufnamespace.tests.RepeatedFloatMessage) */ {
  2213. public:
  2214. RepeatedFloatMessage();
  2215. virtual ~RepeatedFloatMessage();
  2216. RepeatedFloatMessage(const RepeatedFloatMessage& from);
  2217. inline RepeatedFloatMessage& operator=(const RepeatedFloatMessage& from) {
  2218. CopyFrom(from);
  2219. return *this;
  2220. }
  2221. #if LANG_CXX11
  2222. RepeatedFloatMessage(RepeatedFloatMessage&& from) noexcept
  2223. : RepeatedFloatMessage() {
  2224. *this = ::std::move(from);
  2225. }
  2226. inline RepeatedFloatMessage& operator=(RepeatedFloatMessage&& from) noexcept {
  2227. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2228. if (this != &from) InternalSwap(&from);
  2229. } else {
  2230. CopyFrom(from);
  2231. }
  2232. return *this;
  2233. }
  2234. #endif
  2235. static const ::google::protobuf::Descriptor* descriptor();
  2236. static const RepeatedFloatMessage& default_instance();
  2237. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2238. static inline const RepeatedFloatMessage* internal_default_instance() {
  2239. return reinterpret_cast<const RepeatedFloatMessage*>(
  2240. &_RepeatedFloatMessage_default_instance_);
  2241. }
  2242. static constexpr int kIndexInFileMessages =
  2243. 22;
  2244. void Swap(RepeatedFloatMessage* other);
  2245. friend void swap(RepeatedFloatMessage& a, RepeatedFloatMessage& b) {
  2246. a.Swap(&b);
  2247. }
  2248. // implements Message ----------------------------------------------
  2249. inline RepeatedFloatMessage* New() const final {
  2250. return CreateMaybeMessage<RepeatedFloatMessage>(NULL);
  2251. }
  2252. RepeatedFloatMessage* New(::google::protobuf::Arena* arena) const final {
  2253. return CreateMaybeMessage<RepeatedFloatMessage>(arena);
  2254. }
  2255. void CopyFrom(const ::google::protobuf::Message& from) final;
  2256. void MergeFrom(const ::google::protobuf::Message& from) final;
  2257. void CopyFrom(const RepeatedFloatMessage& from);
  2258. void MergeFrom(const RepeatedFloatMessage& from);
  2259. void Clear() final;
  2260. bool IsInitialized() const final;
  2261. size_t ByteSizeLong() const final;
  2262. bool MergePartialFromCodedStream(
  2263. ::google::protobuf::io::CodedInputStream* input) final;
  2264. void SerializeWithCachedSizes(
  2265. ::google::protobuf::io::CodedOutputStream* output) const final;
  2266. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  2267. bool deterministic, ::google::protobuf::uint8* target) const final;
  2268. int GetCachedSize() const final { return _cached_size_.Get(); }
  2269. private:
  2270. void SharedCtor();
  2271. void SharedDtor();
  2272. void SetCachedSize(int size) const final;
  2273. void InternalSwap(RepeatedFloatMessage* other);
  2274. private:
  2275. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2276. return NULL;
  2277. }
  2278. inline void* MaybeArenaPtr() const {
  2279. return NULL;
  2280. }
  2281. public:
  2282. ::google::protobuf::Metadata GetMetadata() const final;
  2283. // nested types ----------------------------------------------------
  2284. // accessors -------------------------------------------------------
  2285. // repeated float testRepeatedFloat = 1;
  2286. int testrepeatedfloat_size() const;
  2287. void clear_testrepeatedfloat();
  2288. static const int kTestRepeatedFloatFieldNumber = 1;
  2289. float testrepeatedfloat(int index) const;
  2290. void set_testrepeatedfloat(int index, float value);
  2291. void add_testrepeatedfloat(float value);
  2292. const ::google::protobuf::RepeatedField< float >&
  2293. testrepeatedfloat() const;
  2294. ::google::protobuf::RepeatedField< float >*
  2295. mutable_testrepeatedfloat();
  2296. // @@protoc_insertion_point(class_scope:qtprotobufnamespace.tests.RepeatedFloatMessage)
  2297. private:
  2298. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2299. ::google::protobuf::RepeatedField< float > testrepeatedfloat_;
  2300. mutable int _testrepeatedfloat_cached_byte_size_;
  2301. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2302. friend struct ::protobuf_simpletest_2eproto::TableStruct;
  2303. };
  2304. // -------------------------------------------------------------------
  2305. class RepeatedComplexMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:qtprotobufnamespace.tests.RepeatedComplexMessage) */ {
  2306. public:
  2307. RepeatedComplexMessage();
  2308. virtual ~RepeatedComplexMessage();
  2309. RepeatedComplexMessage(const RepeatedComplexMessage& from);
  2310. inline RepeatedComplexMessage& operator=(const RepeatedComplexMessage& from) {
  2311. CopyFrom(from);
  2312. return *this;
  2313. }
  2314. #if LANG_CXX11
  2315. RepeatedComplexMessage(RepeatedComplexMessage&& from) noexcept
  2316. : RepeatedComplexMessage() {
  2317. *this = ::std::move(from);
  2318. }
  2319. inline RepeatedComplexMessage& operator=(RepeatedComplexMessage&& from) noexcept {
  2320. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2321. if (this != &from) InternalSwap(&from);
  2322. } else {
  2323. CopyFrom(from);
  2324. }
  2325. return *this;
  2326. }
  2327. #endif
  2328. static const ::google::protobuf::Descriptor* descriptor();
  2329. static const RepeatedComplexMessage& default_instance();
  2330. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2331. static inline const RepeatedComplexMessage* internal_default_instance() {
  2332. return reinterpret_cast<const RepeatedComplexMessage*>(
  2333. &_RepeatedComplexMessage_default_instance_);
  2334. }
  2335. static constexpr int kIndexInFileMessages =
  2336. 23;
  2337. void Swap(RepeatedComplexMessage* other);
  2338. friend void swap(RepeatedComplexMessage& a, RepeatedComplexMessage& b) {
  2339. a.Swap(&b);
  2340. }
  2341. // implements Message ----------------------------------------------
  2342. inline RepeatedComplexMessage* New() const final {
  2343. return CreateMaybeMessage<RepeatedComplexMessage>(NULL);
  2344. }
  2345. RepeatedComplexMessage* New(::google::protobuf::Arena* arena) const final {
  2346. return CreateMaybeMessage<RepeatedComplexMessage>(arena);
  2347. }
  2348. void CopyFrom(const ::google::protobuf::Message& from) final;
  2349. void MergeFrom(const ::google::protobuf::Message& from) final;
  2350. void CopyFrom(const RepeatedComplexMessage& from);
  2351. void MergeFrom(const RepeatedComplexMessage& from);
  2352. void Clear() final;
  2353. bool IsInitialized() const final;
  2354. size_t ByteSizeLong() const final;
  2355. bool MergePartialFromCodedStream(
  2356. ::google::protobuf::io::CodedInputStream* input) final;
  2357. void SerializeWithCachedSizes(
  2358. ::google::protobuf::io::CodedOutputStream* output) const final;
  2359. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  2360. bool deterministic, ::google::protobuf::uint8* target) const final;
  2361. int GetCachedSize() const final { return _cached_size_.Get(); }
  2362. private:
  2363. void SharedCtor();
  2364. void SharedDtor();
  2365. void SetCachedSize(int size) const final;
  2366. void InternalSwap(RepeatedComplexMessage* other);
  2367. private:
  2368. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2369. return NULL;
  2370. }
  2371. inline void* MaybeArenaPtr() const {
  2372. return NULL;
  2373. }
  2374. public:
  2375. ::google::protobuf::Metadata GetMetadata() const final;
  2376. // nested types ----------------------------------------------------
  2377. // accessors -------------------------------------------------------
  2378. // repeated .qtprotobufnamespace.tests.ComplexMessage testRepeatedComplex = 1;
  2379. int testrepeatedcomplex_size() const;
  2380. void clear_testrepeatedcomplex();
  2381. static const int kTestRepeatedComplexFieldNumber = 1;
  2382. ::qtprotobufnamespace::tests::ComplexMessage* mutable_testrepeatedcomplex(int index);
  2383. ::google::protobuf::RepeatedPtrField< ::qtprotobufnamespace::tests::ComplexMessage >*
  2384. mutable_testrepeatedcomplex();
  2385. const ::qtprotobufnamespace::tests::ComplexMessage& testrepeatedcomplex(int index) const;
  2386. ::qtprotobufnamespace::tests::ComplexMessage* add_testrepeatedcomplex();
  2387. const ::google::protobuf::RepeatedPtrField< ::qtprotobufnamespace::tests::ComplexMessage >&
  2388. testrepeatedcomplex() const;
  2389. // @@protoc_insertion_point(class_scope:qtprotobufnamespace.tests.RepeatedComplexMessage)
  2390. private:
  2391. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2392. ::google::protobuf::RepeatedPtrField< ::qtprotobufnamespace::tests::ComplexMessage > testrepeatedcomplex_;
  2393. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2394. friend struct ::protobuf_simpletest_2eproto::TableStruct;
  2395. };
  2396. // ===================================================================
  2397. // ===================================================================
  2398. #ifdef __GNUC__
  2399. #pragma GCC diagnostic push
  2400. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  2401. #endif // __GNUC__
  2402. // SimpleEnumMessage
  2403. // .qtprotobufnamespace.tests.SimpleEnumMessage.LocalEnum localEnum = 1;
  2404. inline void SimpleEnumMessage::clear_localenum() {
  2405. localenum_ = 0;
  2406. }
  2407. inline ::qtprotobufnamespace::tests::SimpleEnumMessage_LocalEnum SimpleEnumMessage::localenum() const {
  2408. // @@protoc_insertion_point(field_get:qtprotobufnamespace.tests.SimpleEnumMessage.localEnum)
  2409. return static_cast< ::qtprotobufnamespace::tests::SimpleEnumMessage_LocalEnum >(localenum_);
  2410. }
  2411. inline void SimpleEnumMessage::set_localenum(::qtprotobufnamespace::tests::SimpleEnumMessage_LocalEnum value) {
  2412. localenum_ = value;
  2413. // @@protoc_insertion_point(field_set:qtprotobufnamespace.tests.SimpleEnumMessage.localEnum)
  2414. }
  2415. // repeated .qtprotobufnamespace.tests.SimpleEnumMessage.LocalEnum localEnumList = 2;
  2416. inline int SimpleEnumMessage::localenumlist_size() const {
  2417. return localenumlist_.size();
  2418. }
  2419. inline void SimpleEnumMessage::clear_localenumlist() {
  2420. localenumlist_.Clear();
  2421. }
  2422. inline ::qtprotobufnamespace::tests::SimpleEnumMessage_LocalEnum SimpleEnumMessage::localenumlist(int index) const {
  2423. // @@protoc_insertion_point(field_get:qtprotobufnamespace.tests.SimpleEnumMessage.localEnumList)
  2424. return static_cast< ::qtprotobufnamespace::tests::SimpleEnumMessage_LocalEnum >(localenumlist_.Get(index));
  2425. }
  2426. inline void SimpleEnumMessage::set_localenumlist(int index, ::qtprotobufnamespace::tests::SimpleEnumMessage_LocalEnum value) {
  2427. localenumlist_.Set(index, value);
  2428. // @@protoc_insertion_point(field_set:qtprotobufnamespace.tests.SimpleEnumMessage.localEnumList)
  2429. }
  2430. inline void SimpleEnumMessage::add_localenumlist(::qtprotobufnamespace::tests::SimpleEnumMessage_LocalEnum value) {
  2431. localenumlist_.Add(value);
  2432. // @@protoc_insertion_point(field_add:qtprotobufnamespace.tests.SimpleEnumMessage.localEnumList)
  2433. }
  2434. inline const ::google::protobuf::RepeatedField<int>&
  2435. SimpleEnumMessage::localenumlist() const {
  2436. // @@protoc_insertion_point(field_list:qtprotobufnamespace.tests.SimpleEnumMessage.localEnumList)
  2437. return localenumlist_;
  2438. }
  2439. inline ::google::protobuf::RepeatedField<int>*
  2440. SimpleEnumMessage::mutable_localenumlist() {
  2441. // @@protoc_insertion_point(field_mutable_list:qtprotobufnamespace.tests.SimpleEnumMessage.localEnumList)
  2442. return &localenumlist_;
  2443. }
  2444. // -------------------------------------------------------------------
  2445. // SimpleFileEnumMessage
  2446. // .qtprotobufnamespace.tests.TestEnum globalEnum = 1;
  2447. inline void SimpleFileEnumMessage::clear_globalenum() {
  2448. globalenum_ = 0;
  2449. }
  2450. inline ::qtprotobufnamespace::tests::TestEnum SimpleFileEnumMessage::globalenum() const {
  2451. // @@protoc_insertion_point(field_get:qtprotobufnamespace.tests.SimpleFileEnumMessage.globalEnum)
  2452. return static_cast< ::qtprotobufnamespace::tests::TestEnum >(globalenum_);
  2453. }
  2454. inline void SimpleFileEnumMessage::set_globalenum(::qtprotobufnamespace::tests::TestEnum value) {
  2455. globalenum_ = value;
  2456. // @@protoc_insertion_point(field_set:qtprotobufnamespace.tests.SimpleFileEnumMessage.globalEnum)
  2457. }
  2458. // repeated .qtprotobufnamespace.tests.TestEnum globalEnumList = 2;
  2459. inline int SimpleFileEnumMessage::globalenumlist_size() const {
  2460. return globalenumlist_.size();
  2461. }
  2462. inline void SimpleFileEnumMessage::clear_globalenumlist() {
  2463. globalenumlist_.Clear();
  2464. }
  2465. inline ::qtprotobufnamespace::tests::TestEnum SimpleFileEnumMessage::globalenumlist(int index) const {
  2466. // @@protoc_insertion_point(field_get:qtprotobufnamespace.tests.SimpleFileEnumMessage.globalEnumList)
  2467. return static_cast< ::qtprotobufnamespace::tests::TestEnum >(globalenumlist_.Get(index));
  2468. }
  2469. inline void SimpleFileEnumMessage::set_globalenumlist(int index, ::qtprotobufnamespace::tests::TestEnum value) {
  2470. globalenumlist_.Set(index, value);
  2471. // @@protoc_insertion_point(field_set:qtprotobufnamespace.tests.SimpleFileEnumMessage.globalEnumList)
  2472. }
  2473. inline void SimpleFileEnumMessage::add_globalenumlist(::qtprotobufnamespace::tests::TestEnum value) {
  2474. globalenumlist_.Add(value);
  2475. // @@protoc_insertion_point(field_add:qtprotobufnamespace.tests.SimpleFileEnumMessage.globalEnumList)
  2476. }
  2477. inline const ::google::protobuf::RepeatedField<int>&
  2478. SimpleFileEnumMessage::globalenumlist() const {
  2479. // @@protoc_insertion_point(field_list:qtprotobufnamespace.tests.SimpleFileEnumMessage.globalEnumList)
  2480. return globalenumlist_;
  2481. }
  2482. inline ::google::protobuf::RepeatedField<int>*
  2483. SimpleFileEnumMessage::mutable_globalenumlist() {
  2484. // @@protoc_insertion_point(field_mutable_list:qtprotobufnamespace.tests.SimpleFileEnumMessage.globalEnumList)
  2485. return &globalenumlist_;
  2486. }
  2487. // -------------------------------------------------------------------
  2488. // SimpleBoolMessage
  2489. // bool testFieldBool = 1;
  2490. inline void SimpleBoolMessage::clear_testfieldbool() {
  2491. testfieldbool_ = false;
  2492. }
  2493. inline bool SimpleBoolMessage::testfieldbool() const {
  2494. // @@protoc_insertion_point(field_get:qtprotobufnamespace.tests.SimpleBoolMessage.testFieldBool)
  2495. return testfieldbool_;
  2496. }
  2497. inline void SimpleBoolMessage::set_testfieldbool(bool value) {
  2498. testfieldbool_ = value;
  2499. // @@protoc_insertion_point(field_set:qtprotobufnamespace.tests.SimpleBoolMessage.testFieldBool)
  2500. }
  2501. // -------------------------------------------------------------------
  2502. // SimpleIntMessage
  2503. // int32 testFieldInt = 1;
  2504. inline void SimpleIntMessage::clear_testfieldint() {
  2505. testfieldint_ = 0;
  2506. }
  2507. inline ::google::protobuf::int32 SimpleIntMessage::testfieldint() const {
  2508. // @@protoc_insertion_point(field_get:qtprotobufnamespace.tests.SimpleIntMessage.testFieldInt)
  2509. return testfieldint_;
  2510. }
  2511. inline void SimpleIntMessage::set_testfieldint(::google::protobuf::int32 value) {
  2512. testfieldint_ = value;
  2513. // @@protoc_insertion_point(field_set:qtprotobufnamespace.tests.SimpleIntMessage.testFieldInt)
  2514. }
  2515. // -------------------------------------------------------------------
  2516. // SimpleSIntMessage
  2517. // sint32 testFieldInt = 1;
  2518. inline void SimpleSIntMessage::clear_testfieldint() {
  2519. testfieldint_ = 0;
  2520. }
  2521. inline ::google::protobuf::int32 SimpleSIntMessage::testfieldint() const {
  2522. // @@protoc_insertion_point(field_get:qtprotobufnamespace.tests.SimpleSIntMessage.testFieldInt)
  2523. return testfieldint_;
  2524. }
  2525. inline void SimpleSIntMessage::set_testfieldint(::google::protobuf::int32 value) {
  2526. testfieldint_ = value;
  2527. // @@protoc_insertion_point(field_set:qtprotobufnamespace.tests.SimpleSIntMessage.testFieldInt)
  2528. }
  2529. // -------------------------------------------------------------------
  2530. // SimpleUIntMessage
  2531. // uint32 testFieldInt = 1;
  2532. inline void SimpleUIntMessage::clear_testfieldint() {
  2533. testfieldint_ = 0u;
  2534. }
  2535. inline ::google::protobuf::uint32 SimpleUIntMessage::testfieldint() const {
  2536. // @@protoc_insertion_point(field_get:qtprotobufnamespace.tests.SimpleUIntMessage.testFieldInt)
  2537. return testfieldint_;
  2538. }
  2539. inline void SimpleUIntMessage::set_testfieldint(::google::protobuf::uint32 value) {
  2540. testfieldint_ = value;
  2541. // @@protoc_insertion_point(field_set:qtprotobufnamespace.tests.SimpleUIntMessage.testFieldInt)
  2542. }
  2543. // -------------------------------------------------------------------
  2544. // SimpleInt64Message
  2545. // int64 testFieldInt = 1;
  2546. inline void SimpleInt64Message::clear_testfieldint() {
  2547. testfieldint_ = GOOGLE_LONGLONG(0);
  2548. }
  2549. inline ::google::protobuf::int64 SimpleInt64Message::testfieldint() const {
  2550. // @@protoc_insertion_point(field_get:qtprotobufnamespace.tests.SimpleInt64Message.testFieldInt)
  2551. return testfieldint_;
  2552. }
  2553. inline void SimpleInt64Message::set_testfieldint(::google::protobuf::int64 value) {
  2554. testfieldint_ = value;
  2555. // @@protoc_insertion_point(field_set:qtprotobufnamespace.tests.SimpleInt64Message.testFieldInt)
  2556. }
  2557. // -------------------------------------------------------------------
  2558. // SimpleSInt64Message
  2559. // sint64 testFieldInt = 1;
  2560. inline void SimpleSInt64Message::clear_testfieldint() {
  2561. testfieldint_ = GOOGLE_LONGLONG(0);
  2562. }
  2563. inline ::google::protobuf::int64 SimpleSInt64Message::testfieldint() const {
  2564. // @@protoc_insertion_point(field_get:qtprotobufnamespace.tests.SimpleSInt64Message.testFieldInt)
  2565. return testfieldint_;
  2566. }
  2567. inline void SimpleSInt64Message::set_testfieldint(::google::protobuf::int64 value) {
  2568. testfieldint_ = value;
  2569. // @@protoc_insertion_point(field_set:qtprotobufnamespace.tests.SimpleSInt64Message.testFieldInt)
  2570. }
  2571. // -------------------------------------------------------------------
  2572. // SimpleUInt64Message
  2573. // uint64 testFieldInt = 1;
  2574. inline void SimpleUInt64Message::clear_testfieldint() {
  2575. testfieldint_ = GOOGLE_ULONGLONG(0);
  2576. }
  2577. inline ::google::protobuf::uint64 SimpleUInt64Message::testfieldint() const {
  2578. // @@protoc_insertion_point(field_get:qtprotobufnamespace.tests.SimpleUInt64Message.testFieldInt)
  2579. return testfieldint_;
  2580. }
  2581. inline void SimpleUInt64Message::set_testfieldint(::google::protobuf::uint64 value) {
  2582. testfieldint_ = value;
  2583. // @@protoc_insertion_point(field_set:qtprotobufnamespace.tests.SimpleUInt64Message.testFieldInt)
  2584. }
  2585. // -------------------------------------------------------------------
  2586. // SimpleStringMessage
  2587. // string testFieldString = 6;
  2588. inline void SimpleStringMessage::clear_testfieldstring() {
  2589. testfieldstring_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2590. }
  2591. inline const ::std::string& SimpleStringMessage::testfieldstring() const {
  2592. // @@protoc_insertion_point(field_get:qtprotobufnamespace.tests.SimpleStringMessage.testFieldString)
  2593. return testfieldstring_.GetNoArena();
  2594. }
  2595. inline void SimpleStringMessage::set_testfieldstring(const ::std::string& value) {
  2596. testfieldstring_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  2597. // @@protoc_insertion_point(field_set:qtprotobufnamespace.tests.SimpleStringMessage.testFieldString)
  2598. }
  2599. #if LANG_CXX11
  2600. inline void SimpleStringMessage::set_testfieldstring(::std::string&& value) {
  2601. testfieldstring_.SetNoArena(
  2602. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  2603. // @@protoc_insertion_point(field_set_rvalue:qtprotobufnamespace.tests.SimpleStringMessage.testFieldString)
  2604. }
  2605. #endif
  2606. inline void SimpleStringMessage::set_testfieldstring(const char* value) {
  2607. GOOGLE_DCHECK(value != NULL);
  2608. testfieldstring_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  2609. // @@protoc_insertion_point(field_set_char:qtprotobufnamespace.tests.SimpleStringMessage.testFieldString)
  2610. }
  2611. inline void SimpleStringMessage::set_testfieldstring(const char* value, size_t size) {
  2612. testfieldstring_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  2613. ::std::string(reinterpret_cast<const char*>(value), size));
  2614. // @@protoc_insertion_point(field_set_pointer:qtprotobufnamespace.tests.SimpleStringMessage.testFieldString)
  2615. }
  2616. inline ::std::string* SimpleStringMessage::mutable_testfieldstring() {
  2617. // @@protoc_insertion_point(field_mutable:qtprotobufnamespace.tests.SimpleStringMessage.testFieldString)
  2618. return testfieldstring_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2619. }
  2620. inline ::std::string* SimpleStringMessage::release_testfieldstring() {
  2621. // @@protoc_insertion_point(field_release:qtprotobufnamespace.tests.SimpleStringMessage.testFieldString)
  2622. return testfieldstring_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2623. }
  2624. inline void SimpleStringMessage::set_allocated_testfieldstring(::std::string* testfieldstring) {
  2625. if (testfieldstring != NULL) {
  2626. } else {
  2627. }
  2628. testfieldstring_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), testfieldstring);
  2629. // @@protoc_insertion_point(field_set_allocated:qtprotobufnamespace.tests.SimpleStringMessage.testFieldString)
  2630. }
  2631. // -------------------------------------------------------------------
  2632. // SimpleFloatMessage
  2633. // float testFieldFloat = 7;
  2634. inline void SimpleFloatMessage::clear_testfieldfloat() {
  2635. testfieldfloat_ = 0;
  2636. }
  2637. inline float SimpleFloatMessage::testfieldfloat() const {
  2638. // @@protoc_insertion_point(field_get:qtprotobufnamespace.tests.SimpleFloatMessage.testFieldFloat)
  2639. return testfieldfloat_;
  2640. }
  2641. inline void SimpleFloatMessage::set_testfieldfloat(float value) {
  2642. testfieldfloat_ = value;
  2643. // @@protoc_insertion_point(field_set:qtprotobufnamespace.tests.SimpleFloatMessage.testFieldFloat)
  2644. }
  2645. // -------------------------------------------------------------------
  2646. // SimpleDoubleMessage
  2647. // double testFieldDouble = 8;
  2648. inline void SimpleDoubleMessage::clear_testfielddouble() {
  2649. testfielddouble_ = 0;
  2650. }
  2651. inline double SimpleDoubleMessage::testfielddouble() const {
  2652. // @@protoc_insertion_point(field_get:qtprotobufnamespace.tests.SimpleDoubleMessage.testFieldDouble)
  2653. return testfielddouble_;
  2654. }
  2655. inline void SimpleDoubleMessage::set_testfielddouble(double value) {
  2656. testfielddouble_ = value;
  2657. // @@protoc_insertion_point(field_set:qtprotobufnamespace.tests.SimpleDoubleMessage.testFieldDouble)
  2658. }
  2659. // -------------------------------------------------------------------
  2660. // SimpleBytesMessage
  2661. // bytes testFieldBytes = 1;
  2662. inline void SimpleBytesMessage::clear_testfieldbytes() {
  2663. testfieldbytes_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2664. }
  2665. inline const ::std::string& SimpleBytesMessage::testfieldbytes() const {
  2666. // @@protoc_insertion_point(field_get:qtprotobufnamespace.tests.SimpleBytesMessage.testFieldBytes)
  2667. return testfieldbytes_.GetNoArena();
  2668. }
  2669. inline void SimpleBytesMessage::set_testfieldbytes(const ::std::string& value) {
  2670. testfieldbytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  2671. // @@protoc_insertion_point(field_set:qtprotobufnamespace.tests.SimpleBytesMessage.testFieldBytes)
  2672. }
  2673. #if LANG_CXX11
  2674. inline void SimpleBytesMessage::set_testfieldbytes(::std::string&& value) {
  2675. testfieldbytes_.SetNoArena(
  2676. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  2677. // @@protoc_insertion_point(field_set_rvalue:qtprotobufnamespace.tests.SimpleBytesMessage.testFieldBytes)
  2678. }
  2679. #endif
  2680. inline void SimpleBytesMessage::set_testfieldbytes(const char* value) {
  2681. GOOGLE_DCHECK(value != NULL);
  2682. testfieldbytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  2683. // @@protoc_insertion_point(field_set_char:qtprotobufnamespace.tests.SimpleBytesMessage.testFieldBytes)
  2684. }
  2685. inline void SimpleBytesMessage::set_testfieldbytes(const void* value, size_t size) {
  2686. testfieldbytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  2687. ::std::string(reinterpret_cast<const char*>(value), size));
  2688. // @@protoc_insertion_point(field_set_pointer:qtprotobufnamespace.tests.SimpleBytesMessage.testFieldBytes)
  2689. }
  2690. inline ::std::string* SimpleBytesMessage::mutable_testfieldbytes() {
  2691. // @@protoc_insertion_point(field_mutable:qtprotobufnamespace.tests.SimpleBytesMessage.testFieldBytes)
  2692. return testfieldbytes_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2693. }
  2694. inline ::std::string* SimpleBytesMessage::release_testfieldbytes() {
  2695. // @@protoc_insertion_point(field_release:qtprotobufnamespace.tests.SimpleBytesMessage.testFieldBytes)
  2696. return testfieldbytes_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2697. }
  2698. inline void SimpleBytesMessage::set_allocated_testfieldbytes(::std::string* testfieldbytes) {
  2699. if (testfieldbytes != NULL) {
  2700. } else {
  2701. }
  2702. testfieldbytes_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), testfieldbytes);
  2703. // @@protoc_insertion_point(field_set_allocated:qtprotobufnamespace.tests.SimpleBytesMessage.testFieldBytes)
  2704. }
  2705. // -------------------------------------------------------------------
  2706. // SimpleFixedInt32Message
  2707. // fixed32 testFieldFixedInt32 = 1;
  2708. inline void SimpleFixedInt32Message::clear_testfieldfixedint32() {
  2709. testfieldfixedint32_ = 0u;
  2710. }
  2711. inline ::google::protobuf::uint32 SimpleFixedInt32Message::testfieldfixedint32() const {
  2712. // @@protoc_insertion_point(field_get:qtprotobufnamespace.tests.SimpleFixedInt32Message.testFieldFixedInt32)
  2713. return testfieldfixedint32_;
  2714. }
  2715. inline void SimpleFixedInt32Message::set_testfieldfixedint32(::google::protobuf::uint32 value) {
  2716. testfieldfixedint32_ = value;
  2717. // @@protoc_insertion_point(field_set:qtprotobufnamespace.tests.SimpleFixedInt32Message.testFieldFixedInt32)
  2718. }
  2719. // -------------------------------------------------------------------
  2720. // SimpleFixedInt64Message
  2721. // fixed64 testFieldFixedInt64 = 1;
  2722. inline void SimpleFixedInt64Message::clear_testfieldfixedint64() {
  2723. testfieldfixedint64_ = GOOGLE_ULONGLONG(0);
  2724. }
  2725. inline ::google::protobuf::uint64 SimpleFixedInt64Message::testfieldfixedint64() const {
  2726. // @@protoc_insertion_point(field_get:qtprotobufnamespace.tests.SimpleFixedInt64Message.testFieldFixedInt64)
  2727. return testfieldfixedint64_;
  2728. }
  2729. inline void SimpleFixedInt64Message::set_testfieldfixedint64(::google::protobuf::uint64 value) {
  2730. testfieldfixedint64_ = value;
  2731. // @@protoc_insertion_point(field_set:qtprotobufnamespace.tests.SimpleFixedInt64Message.testFieldFixedInt64)
  2732. }
  2733. // -------------------------------------------------------------------
  2734. // SimpleSFixedInt32Message
  2735. // sfixed32 testFieldFixedInt32 = 1;
  2736. inline void SimpleSFixedInt32Message::clear_testfieldfixedint32() {
  2737. testfieldfixedint32_ = 0;
  2738. }
  2739. inline ::google::protobuf::int32 SimpleSFixedInt32Message::testfieldfixedint32() const {
  2740. // @@protoc_insertion_point(field_get:qtprotobufnamespace.tests.SimpleSFixedInt32Message.testFieldFixedInt32)
  2741. return testfieldfixedint32_;
  2742. }
  2743. inline void SimpleSFixedInt32Message::set_testfieldfixedint32(::google::protobuf::int32 value) {
  2744. testfieldfixedint32_ = value;
  2745. // @@protoc_insertion_point(field_set:qtprotobufnamespace.tests.SimpleSFixedInt32Message.testFieldFixedInt32)
  2746. }
  2747. // -------------------------------------------------------------------
  2748. // SimpleSFixedInt64Message
  2749. // sfixed64 testFieldFixedInt64 = 1;
  2750. inline void SimpleSFixedInt64Message::clear_testfieldfixedint64() {
  2751. testfieldfixedint64_ = GOOGLE_LONGLONG(0);
  2752. }
  2753. inline ::google::protobuf::int64 SimpleSFixedInt64Message::testfieldfixedint64() const {
  2754. // @@protoc_insertion_point(field_get:qtprotobufnamespace.tests.SimpleSFixedInt64Message.testFieldFixedInt64)
  2755. return testfieldfixedint64_;
  2756. }
  2757. inline void SimpleSFixedInt64Message::set_testfieldfixedint64(::google::protobuf::int64 value) {
  2758. testfieldfixedint64_ = value;
  2759. // @@protoc_insertion_point(field_set:qtprotobufnamespace.tests.SimpleSFixedInt64Message.testFieldFixedInt64)
  2760. }
  2761. // -------------------------------------------------------------------
  2762. // ComplexMessage
  2763. // int32 testFieldInt = 1;
  2764. inline void ComplexMessage::clear_testfieldint() {
  2765. testfieldint_ = 0;
  2766. }
  2767. inline ::google::protobuf::int32 ComplexMessage::testfieldint() const {
  2768. // @@protoc_insertion_point(field_get:qtprotobufnamespace.tests.ComplexMessage.testFieldInt)
  2769. return testfieldint_;
  2770. }
  2771. inline void ComplexMessage::set_testfieldint(::google::protobuf::int32 value) {
  2772. testfieldint_ = value;
  2773. // @@protoc_insertion_point(field_set:qtprotobufnamespace.tests.ComplexMessage.testFieldInt)
  2774. }
  2775. // .qtprotobufnamespace.tests.SimpleStringMessage testComplexField = 2;
  2776. inline bool ComplexMessage::has_testcomplexfield() const {
  2777. return this != internal_default_instance() && testcomplexfield_ != NULL;
  2778. }
  2779. inline void ComplexMessage::clear_testcomplexfield() {
  2780. if (GetArenaNoVirtual() == NULL && testcomplexfield_ != NULL) {
  2781. delete testcomplexfield_;
  2782. }
  2783. testcomplexfield_ = NULL;
  2784. }
  2785. inline const ::qtprotobufnamespace::tests::SimpleStringMessage& ComplexMessage::_internal_testcomplexfield() const {
  2786. return *testcomplexfield_;
  2787. }
  2788. inline const ::qtprotobufnamespace::tests::SimpleStringMessage& ComplexMessage::testcomplexfield() const {
  2789. const ::qtprotobufnamespace::tests::SimpleStringMessage* p = testcomplexfield_;
  2790. // @@protoc_insertion_point(field_get:qtprotobufnamespace.tests.ComplexMessage.testComplexField)
  2791. return p != NULL ? *p : *reinterpret_cast<const ::qtprotobufnamespace::tests::SimpleStringMessage*>(
  2792. &::qtprotobufnamespace::tests::_SimpleStringMessage_default_instance_);
  2793. }
  2794. inline ::qtprotobufnamespace::tests::SimpleStringMessage* ComplexMessage::release_testcomplexfield() {
  2795. // @@protoc_insertion_point(field_release:qtprotobufnamespace.tests.ComplexMessage.testComplexField)
  2796. ::qtprotobufnamespace::tests::SimpleStringMessage* temp = testcomplexfield_;
  2797. testcomplexfield_ = NULL;
  2798. return temp;
  2799. }
  2800. inline ::qtprotobufnamespace::tests::SimpleStringMessage* ComplexMessage::mutable_testcomplexfield() {
  2801. if (testcomplexfield_ == NULL) {
  2802. auto* p = CreateMaybeMessage<::qtprotobufnamespace::tests::SimpleStringMessage>(GetArenaNoVirtual());
  2803. testcomplexfield_ = p;
  2804. }
  2805. // @@protoc_insertion_point(field_mutable:qtprotobufnamespace.tests.ComplexMessage.testComplexField)
  2806. return testcomplexfield_;
  2807. }
  2808. inline void ComplexMessage::set_allocated_testcomplexfield(::qtprotobufnamespace::tests::SimpleStringMessage* testcomplexfield) {
  2809. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2810. if (message_arena == NULL) {
  2811. delete testcomplexfield_;
  2812. }
  2813. if (testcomplexfield) {
  2814. ::google::protobuf::Arena* submessage_arena = NULL;
  2815. if (message_arena != submessage_arena) {
  2816. testcomplexfield = ::google::protobuf::internal::GetOwnedMessage(
  2817. message_arena, testcomplexfield, submessage_arena);
  2818. }
  2819. } else {
  2820. }
  2821. testcomplexfield_ = testcomplexfield;
  2822. // @@protoc_insertion_point(field_set_allocated:qtprotobufnamespace.tests.ComplexMessage.testComplexField)
  2823. }
  2824. // -------------------------------------------------------------------
  2825. // RepeatedIntMessage
  2826. // repeated sint32 testRepeatedInt = 1;
  2827. inline int RepeatedIntMessage::testrepeatedint_size() const {
  2828. return testrepeatedint_.size();
  2829. }
  2830. inline void RepeatedIntMessage::clear_testrepeatedint() {
  2831. testrepeatedint_.Clear();
  2832. }
  2833. inline ::google::protobuf::int32 RepeatedIntMessage::testrepeatedint(int index) const {
  2834. // @@protoc_insertion_point(field_get:qtprotobufnamespace.tests.RepeatedIntMessage.testRepeatedInt)
  2835. return testrepeatedint_.Get(index);
  2836. }
  2837. inline void RepeatedIntMessage::set_testrepeatedint(int index, ::google::protobuf::int32 value) {
  2838. testrepeatedint_.Set(index, value);
  2839. // @@protoc_insertion_point(field_set:qtprotobufnamespace.tests.RepeatedIntMessage.testRepeatedInt)
  2840. }
  2841. inline void RepeatedIntMessage::add_testrepeatedint(::google::protobuf::int32 value) {
  2842. testrepeatedint_.Add(value);
  2843. // @@protoc_insertion_point(field_add:qtprotobufnamespace.tests.RepeatedIntMessage.testRepeatedInt)
  2844. }
  2845. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  2846. RepeatedIntMessage::testrepeatedint() const {
  2847. // @@protoc_insertion_point(field_list:qtprotobufnamespace.tests.RepeatedIntMessage.testRepeatedInt)
  2848. return testrepeatedint_;
  2849. }
  2850. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  2851. RepeatedIntMessage::mutable_testrepeatedint() {
  2852. // @@protoc_insertion_point(field_mutable_list:qtprotobufnamespace.tests.RepeatedIntMessage.testRepeatedInt)
  2853. return &testrepeatedint_;
  2854. }
  2855. // -------------------------------------------------------------------
  2856. // RepeatedStringMessage
  2857. // repeated string testRepeatedString = 1;
  2858. inline int RepeatedStringMessage::testrepeatedstring_size() const {
  2859. return testrepeatedstring_.size();
  2860. }
  2861. inline void RepeatedStringMessage::clear_testrepeatedstring() {
  2862. testrepeatedstring_.Clear();
  2863. }
  2864. inline const ::std::string& RepeatedStringMessage::testrepeatedstring(int index) const {
  2865. // @@protoc_insertion_point(field_get:qtprotobufnamespace.tests.RepeatedStringMessage.testRepeatedString)
  2866. return testrepeatedstring_.Get(index);
  2867. }
  2868. inline ::std::string* RepeatedStringMessage::mutable_testrepeatedstring(int index) {
  2869. // @@protoc_insertion_point(field_mutable:qtprotobufnamespace.tests.RepeatedStringMessage.testRepeatedString)
  2870. return testrepeatedstring_.Mutable(index);
  2871. }
  2872. inline void RepeatedStringMessage::set_testrepeatedstring(int index, const ::std::string& value) {
  2873. // @@protoc_insertion_point(field_set:qtprotobufnamespace.tests.RepeatedStringMessage.testRepeatedString)
  2874. testrepeatedstring_.Mutable(index)->assign(value);
  2875. }
  2876. #if LANG_CXX11
  2877. inline void RepeatedStringMessage::set_testrepeatedstring(int index, ::std::string&& value) {
  2878. // @@protoc_insertion_point(field_set:qtprotobufnamespace.tests.RepeatedStringMessage.testRepeatedString)
  2879. testrepeatedstring_.Mutable(index)->assign(std::move(value));
  2880. }
  2881. #endif
  2882. inline void RepeatedStringMessage::set_testrepeatedstring(int index, const char* value) {
  2883. GOOGLE_DCHECK(value != NULL);
  2884. testrepeatedstring_.Mutable(index)->assign(value);
  2885. // @@protoc_insertion_point(field_set_char:qtprotobufnamespace.tests.RepeatedStringMessage.testRepeatedString)
  2886. }
  2887. inline void RepeatedStringMessage::set_testrepeatedstring(int index, const char* value, size_t size) {
  2888. testrepeatedstring_.Mutable(index)->assign(
  2889. reinterpret_cast<const char*>(value), size);
  2890. // @@protoc_insertion_point(field_set_pointer:qtprotobufnamespace.tests.RepeatedStringMessage.testRepeatedString)
  2891. }
  2892. inline ::std::string* RepeatedStringMessage::add_testrepeatedstring() {
  2893. // @@protoc_insertion_point(field_add_mutable:qtprotobufnamespace.tests.RepeatedStringMessage.testRepeatedString)
  2894. return testrepeatedstring_.Add();
  2895. }
  2896. inline void RepeatedStringMessage::add_testrepeatedstring(const ::std::string& value) {
  2897. testrepeatedstring_.Add()->assign(value);
  2898. // @@protoc_insertion_point(field_add:qtprotobufnamespace.tests.RepeatedStringMessage.testRepeatedString)
  2899. }
  2900. #if LANG_CXX11
  2901. inline void RepeatedStringMessage::add_testrepeatedstring(::std::string&& value) {
  2902. testrepeatedstring_.Add(std::move(value));
  2903. // @@protoc_insertion_point(field_add:qtprotobufnamespace.tests.RepeatedStringMessage.testRepeatedString)
  2904. }
  2905. #endif
  2906. inline void RepeatedStringMessage::add_testrepeatedstring(const char* value) {
  2907. GOOGLE_DCHECK(value != NULL);
  2908. testrepeatedstring_.Add()->assign(value);
  2909. // @@protoc_insertion_point(field_add_char:qtprotobufnamespace.tests.RepeatedStringMessage.testRepeatedString)
  2910. }
  2911. inline void RepeatedStringMessage::add_testrepeatedstring(const char* value, size_t size) {
  2912. testrepeatedstring_.Add()->assign(reinterpret_cast<const char*>(value), size);
  2913. // @@protoc_insertion_point(field_add_pointer:qtprotobufnamespace.tests.RepeatedStringMessage.testRepeatedString)
  2914. }
  2915. inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
  2916. RepeatedStringMessage::testrepeatedstring() const {
  2917. // @@protoc_insertion_point(field_list:qtprotobufnamespace.tests.RepeatedStringMessage.testRepeatedString)
  2918. return testrepeatedstring_;
  2919. }
  2920. inline ::google::protobuf::RepeatedPtrField< ::std::string>*
  2921. RepeatedStringMessage::mutable_testrepeatedstring() {
  2922. // @@protoc_insertion_point(field_mutable_list:qtprotobufnamespace.tests.RepeatedStringMessage.testRepeatedString)
  2923. return &testrepeatedstring_;
  2924. }
  2925. // -------------------------------------------------------------------
  2926. // RepeatedDoubleMessage
  2927. // repeated double testRepeatedDouble = 1;
  2928. inline int RepeatedDoubleMessage::testrepeateddouble_size() const {
  2929. return testrepeateddouble_.size();
  2930. }
  2931. inline void RepeatedDoubleMessage::clear_testrepeateddouble() {
  2932. testrepeateddouble_.Clear();
  2933. }
  2934. inline double RepeatedDoubleMessage::testrepeateddouble(int index) const {
  2935. // @@protoc_insertion_point(field_get:qtprotobufnamespace.tests.RepeatedDoubleMessage.testRepeatedDouble)
  2936. return testrepeateddouble_.Get(index);
  2937. }
  2938. inline void RepeatedDoubleMessage::set_testrepeateddouble(int index, double value) {
  2939. testrepeateddouble_.Set(index, value);
  2940. // @@protoc_insertion_point(field_set:qtprotobufnamespace.tests.RepeatedDoubleMessage.testRepeatedDouble)
  2941. }
  2942. inline void RepeatedDoubleMessage::add_testrepeateddouble(double value) {
  2943. testrepeateddouble_.Add(value);
  2944. // @@protoc_insertion_point(field_add:qtprotobufnamespace.tests.RepeatedDoubleMessage.testRepeatedDouble)
  2945. }
  2946. inline const ::google::protobuf::RepeatedField< double >&
  2947. RepeatedDoubleMessage::testrepeateddouble() const {
  2948. // @@protoc_insertion_point(field_list:qtprotobufnamespace.tests.RepeatedDoubleMessage.testRepeatedDouble)
  2949. return testrepeateddouble_;
  2950. }
  2951. inline ::google::protobuf::RepeatedField< double >*
  2952. RepeatedDoubleMessage::mutable_testrepeateddouble() {
  2953. // @@protoc_insertion_point(field_mutable_list:qtprotobufnamespace.tests.RepeatedDoubleMessage.testRepeatedDouble)
  2954. return &testrepeateddouble_;
  2955. }
  2956. // -------------------------------------------------------------------
  2957. // RepeatedBytesMessage
  2958. // repeated bytes testRepeatedBytes = 1;
  2959. inline int RepeatedBytesMessage::testrepeatedbytes_size() const {
  2960. return testrepeatedbytes_.size();
  2961. }
  2962. inline void RepeatedBytesMessage::clear_testrepeatedbytes() {
  2963. testrepeatedbytes_.Clear();
  2964. }
  2965. inline const ::std::string& RepeatedBytesMessage::testrepeatedbytes(int index) const {
  2966. // @@protoc_insertion_point(field_get:qtprotobufnamespace.tests.RepeatedBytesMessage.testRepeatedBytes)
  2967. return testrepeatedbytes_.Get(index);
  2968. }
  2969. inline ::std::string* RepeatedBytesMessage::mutable_testrepeatedbytes(int index) {
  2970. // @@protoc_insertion_point(field_mutable:qtprotobufnamespace.tests.RepeatedBytesMessage.testRepeatedBytes)
  2971. return testrepeatedbytes_.Mutable(index);
  2972. }
  2973. inline void RepeatedBytesMessage::set_testrepeatedbytes(int index, const ::std::string& value) {
  2974. // @@protoc_insertion_point(field_set:qtprotobufnamespace.tests.RepeatedBytesMessage.testRepeatedBytes)
  2975. testrepeatedbytes_.Mutable(index)->assign(value);
  2976. }
  2977. #if LANG_CXX11
  2978. inline void RepeatedBytesMessage::set_testrepeatedbytes(int index, ::std::string&& value) {
  2979. // @@protoc_insertion_point(field_set:qtprotobufnamespace.tests.RepeatedBytesMessage.testRepeatedBytes)
  2980. testrepeatedbytes_.Mutable(index)->assign(std::move(value));
  2981. }
  2982. #endif
  2983. inline void RepeatedBytesMessage::set_testrepeatedbytes(int index, const char* value) {
  2984. GOOGLE_DCHECK(value != NULL);
  2985. testrepeatedbytes_.Mutable(index)->assign(value);
  2986. // @@protoc_insertion_point(field_set_char:qtprotobufnamespace.tests.RepeatedBytesMessage.testRepeatedBytes)
  2987. }
  2988. inline void RepeatedBytesMessage::set_testrepeatedbytes(int index, const void* value, size_t size) {
  2989. testrepeatedbytes_.Mutable(index)->assign(
  2990. reinterpret_cast<const char*>(value), size);
  2991. // @@protoc_insertion_point(field_set_pointer:qtprotobufnamespace.tests.RepeatedBytesMessage.testRepeatedBytes)
  2992. }
  2993. inline ::std::string* RepeatedBytesMessage::add_testrepeatedbytes() {
  2994. // @@protoc_insertion_point(field_add_mutable:qtprotobufnamespace.tests.RepeatedBytesMessage.testRepeatedBytes)
  2995. return testrepeatedbytes_.Add();
  2996. }
  2997. inline void RepeatedBytesMessage::add_testrepeatedbytes(const ::std::string& value) {
  2998. testrepeatedbytes_.Add()->assign(value);
  2999. // @@protoc_insertion_point(field_add:qtprotobufnamespace.tests.RepeatedBytesMessage.testRepeatedBytes)
  3000. }
  3001. #if LANG_CXX11
  3002. inline void RepeatedBytesMessage::add_testrepeatedbytes(::std::string&& value) {
  3003. testrepeatedbytes_.Add(std::move(value));
  3004. // @@protoc_insertion_point(field_add:qtprotobufnamespace.tests.RepeatedBytesMessage.testRepeatedBytes)
  3005. }
  3006. #endif
  3007. inline void RepeatedBytesMessage::add_testrepeatedbytes(const char* value) {
  3008. GOOGLE_DCHECK(value != NULL);
  3009. testrepeatedbytes_.Add()->assign(value);
  3010. // @@protoc_insertion_point(field_add_char:qtprotobufnamespace.tests.RepeatedBytesMessage.testRepeatedBytes)
  3011. }
  3012. inline void RepeatedBytesMessage::add_testrepeatedbytes(const void* value, size_t size) {
  3013. testrepeatedbytes_.Add()->assign(reinterpret_cast<const char*>(value), size);
  3014. // @@protoc_insertion_point(field_add_pointer:qtprotobufnamespace.tests.RepeatedBytesMessage.testRepeatedBytes)
  3015. }
  3016. inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
  3017. RepeatedBytesMessage::testrepeatedbytes() const {
  3018. // @@protoc_insertion_point(field_list:qtprotobufnamespace.tests.RepeatedBytesMessage.testRepeatedBytes)
  3019. return testrepeatedbytes_;
  3020. }
  3021. inline ::google::protobuf::RepeatedPtrField< ::std::string>*
  3022. RepeatedBytesMessage::mutable_testrepeatedbytes() {
  3023. // @@protoc_insertion_point(field_mutable_list:qtprotobufnamespace.tests.RepeatedBytesMessage.testRepeatedBytes)
  3024. return &testrepeatedbytes_;
  3025. }
  3026. // -------------------------------------------------------------------
  3027. // RepeatedFloatMessage
  3028. // repeated float testRepeatedFloat = 1;
  3029. inline int RepeatedFloatMessage::testrepeatedfloat_size() const {
  3030. return testrepeatedfloat_.size();
  3031. }
  3032. inline void RepeatedFloatMessage::clear_testrepeatedfloat() {
  3033. testrepeatedfloat_.Clear();
  3034. }
  3035. inline float RepeatedFloatMessage::testrepeatedfloat(int index) const {
  3036. // @@protoc_insertion_point(field_get:qtprotobufnamespace.tests.RepeatedFloatMessage.testRepeatedFloat)
  3037. return testrepeatedfloat_.Get(index);
  3038. }
  3039. inline void RepeatedFloatMessage::set_testrepeatedfloat(int index, float value) {
  3040. testrepeatedfloat_.Set(index, value);
  3041. // @@protoc_insertion_point(field_set:qtprotobufnamespace.tests.RepeatedFloatMessage.testRepeatedFloat)
  3042. }
  3043. inline void RepeatedFloatMessage::add_testrepeatedfloat(float value) {
  3044. testrepeatedfloat_.Add(value);
  3045. // @@protoc_insertion_point(field_add:qtprotobufnamespace.tests.RepeatedFloatMessage.testRepeatedFloat)
  3046. }
  3047. inline const ::google::protobuf::RepeatedField< float >&
  3048. RepeatedFloatMessage::testrepeatedfloat() const {
  3049. // @@protoc_insertion_point(field_list:qtprotobufnamespace.tests.RepeatedFloatMessage.testRepeatedFloat)
  3050. return testrepeatedfloat_;
  3051. }
  3052. inline ::google::protobuf::RepeatedField< float >*
  3053. RepeatedFloatMessage::mutable_testrepeatedfloat() {
  3054. // @@protoc_insertion_point(field_mutable_list:qtprotobufnamespace.tests.RepeatedFloatMessage.testRepeatedFloat)
  3055. return &testrepeatedfloat_;
  3056. }
  3057. // -------------------------------------------------------------------
  3058. // RepeatedComplexMessage
  3059. // repeated .qtprotobufnamespace.tests.ComplexMessage testRepeatedComplex = 1;
  3060. inline int RepeatedComplexMessage::testrepeatedcomplex_size() const {
  3061. return testrepeatedcomplex_.size();
  3062. }
  3063. inline void RepeatedComplexMessage::clear_testrepeatedcomplex() {
  3064. testrepeatedcomplex_.Clear();
  3065. }
  3066. inline ::qtprotobufnamespace::tests::ComplexMessage* RepeatedComplexMessage::mutable_testrepeatedcomplex(int index) {
  3067. // @@protoc_insertion_point(field_mutable:qtprotobufnamespace.tests.RepeatedComplexMessage.testRepeatedComplex)
  3068. return testrepeatedcomplex_.Mutable(index);
  3069. }
  3070. inline ::google::protobuf::RepeatedPtrField< ::qtprotobufnamespace::tests::ComplexMessage >*
  3071. RepeatedComplexMessage::mutable_testrepeatedcomplex() {
  3072. // @@protoc_insertion_point(field_mutable_list:qtprotobufnamespace.tests.RepeatedComplexMessage.testRepeatedComplex)
  3073. return &testrepeatedcomplex_;
  3074. }
  3075. inline const ::qtprotobufnamespace::tests::ComplexMessage& RepeatedComplexMessage::testrepeatedcomplex(int index) const {
  3076. // @@protoc_insertion_point(field_get:qtprotobufnamespace.tests.RepeatedComplexMessage.testRepeatedComplex)
  3077. return testrepeatedcomplex_.Get(index);
  3078. }
  3079. inline ::qtprotobufnamespace::tests::ComplexMessage* RepeatedComplexMessage::add_testrepeatedcomplex() {
  3080. // @@protoc_insertion_point(field_add:qtprotobufnamespace.tests.RepeatedComplexMessage.testRepeatedComplex)
  3081. return testrepeatedcomplex_.Add();
  3082. }
  3083. inline const ::google::protobuf::RepeatedPtrField< ::qtprotobufnamespace::tests::ComplexMessage >&
  3084. RepeatedComplexMessage::testrepeatedcomplex() const {
  3085. // @@protoc_insertion_point(field_list:qtprotobufnamespace.tests.RepeatedComplexMessage.testRepeatedComplex)
  3086. return testrepeatedcomplex_;
  3087. }
  3088. #ifdef __GNUC__
  3089. #pragma GCC diagnostic pop
  3090. #endif // __GNUC__
  3091. // -------------------------------------------------------------------
  3092. // -------------------------------------------------------------------
  3093. // -------------------------------------------------------------------
  3094. // -------------------------------------------------------------------
  3095. // -------------------------------------------------------------------
  3096. // -------------------------------------------------------------------
  3097. // -------------------------------------------------------------------
  3098. // -------------------------------------------------------------------
  3099. // -------------------------------------------------------------------
  3100. // -------------------------------------------------------------------
  3101. // -------------------------------------------------------------------
  3102. // -------------------------------------------------------------------
  3103. // -------------------------------------------------------------------
  3104. // -------------------------------------------------------------------
  3105. // -------------------------------------------------------------------
  3106. // -------------------------------------------------------------------
  3107. // -------------------------------------------------------------------
  3108. // -------------------------------------------------------------------
  3109. // -------------------------------------------------------------------
  3110. // -------------------------------------------------------------------
  3111. // -------------------------------------------------------------------
  3112. // -------------------------------------------------------------------
  3113. // -------------------------------------------------------------------
  3114. // @@protoc_insertion_point(namespace_scope)
  3115. } // namespace tests
  3116. } // namespace qtprotobufnamespace
  3117. namespace google {
  3118. namespace protobuf {
  3119. template <> struct is_proto_enum< ::qtprotobufnamespace::tests::SimpleEnumMessage_LocalEnum> : ::std::true_type {};
  3120. template <>
  3121. inline const EnumDescriptor* GetEnumDescriptor< ::qtprotobufnamespace::tests::SimpleEnumMessage_LocalEnum>() {
  3122. return ::qtprotobufnamespace::tests::SimpleEnumMessage_LocalEnum_descriptor();
  3123. }
  3124. template <> struct is_proto_enum< ::qtprotobufnamespace::tests::TestEnum> : ::std::true_type {};
  3125. template <>
  3126. inline const EnumDescriptor* GetEnumDescriptor< ::qtprotobufnamespace::tests::TestEnum>() {
  3127. return ::qtprotobufnamespace::tests::TestEnum_descriptor();
  3128. }
  3129. } // namespace protobuf
  3130. } // namespace google
  3131. // @@protoc_insertion_point(global_scope)
  3132. #endif // PROTOBUF_INCLUDED_simpletest_2eproto