table.pb.cc 112 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: table.proto
  3. #include "table.pb.h"
  4. #include <algorithm>
  5. #include <google/protobuf/stubs/common.h>
  6. #include <google/protobuf/stubs/port.h>
  7. #include <google/protobuf/io/coded_stream.h>
  8. #include <google/protobuf/wire_format_lite_inl.h>
  9. #include <google/protobuf/descriptor.h>
  10. #include <google/protobuf/generated_message_reflection.h>
  11. #include <google/protobuf/reflection_ops.h>
  12. #include <google/protobuf/wire_format.h>
  13. // This is a temporary google only hack
  14. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  15. #include "third_party/protobuf/version.h"
  16. #endif
  17. // @@protoc_insertion_point(includes)
  18. namespace protobuf_table_2eproto {
  19. extern PROTOBUF_INTERNAL_EXPORT_protobuf_table_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_tb_customer;
  20. extern PROTOBUF_INTERNAL_EXPORT_protobuf_table_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_tb_reply;
  21. extern PROTOBUF_INTERNAL_EXPORT_protobuf_table_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_tb_type;
  22. extern PROTOBUF_INTERNAL_EXPORT_protobuf_table_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_rec_reply;
  23. extern PROTOBUF_INTERNAL_EXPORT_protobuf_table_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_rec_type;
  24. } // namespace protobuf_table_2eproto
  25. class tb_customerDefaultTypeInternal {
  26. public:
  27. ::google::protobuf::internal::ExplicitlyConstructed<tb_customer>
  28. _instance;
  29. } _tb_customer_default_instance_;
  30. class tb_typeDefaultTypeInternal {
  31. public:
  32. ::google::protobuf::internal::ExplicitlyConstructed<tb_type>
  33. _instance;
  34. } _tb_type_default_instance_;
  35. class tb_replyDefaultTypeInternal {
  36. public:
  37. ::google::protobuf::internal::ExplicitlyConstructed<tb_reply>
  38. _instance;
  39. } _tb_reply_default_instance_;
  40. class rec_customerDefaultTypeInternal {
  41. public:
  42. ::google::protobuf::internal::ExplicitlyConstructed<rec_customer>
  43. _instance;
  44. } _rec_customer_default_instance_;
  45. class rec_typeDefaultTypeInternal {
  46. public:
  47. ::google::protobuf::internal::ExplicitlyConstructed<rec_type>
  48. _instance;
  49. } _rec_type_default_instance_;
  50. class rec_replyDefaultTypeInternal {
  51. public:
  52. ::google::protobuf::internal::ExplicitlyConstructed<rec_reply>
  53. _instance;
  54. } _rec_reply_default_instance_;
  55. class viewDefaultTypeInternal {
  56. public:
  57. ::google::protobuf::internal::ExplicitlyConstructed<view>
  58. _instance;
  59. } _view_default_instance_;
  60. namespace protobuf_table_2eproto {
  61. static void InitDefaultstb_customer() {
  62. GOOGLE_PROTOBUF_VERIFY_VERSION;
  63. {
  64. void* ptr = &::_tb_customer_default_instance_;
  65. new (ptr) ::tb_customer();
  66. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  67. }
  68. ::tb_customer::InitAsDefaultInstance();
  69. }
  70. ::google::protobuf::internal::SCCInfo<0> scc_info_tb_customer =
  71. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultstb_customer}, {}};
  72. static void InitDefaultstb_type() {
  73. GOOGLE_PROTOBUF_VERIFY_VERSION;
  74. {
  75. void* ptr = &::_tb_type_default_instance_;
  76. new (ptr) ::tb_type();
  77. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  78. }
  79. ::tb_type::InitAsDefaultInstance();
  80. }
  81. ::google::protobuf::internal::SCCInfo<0> scc_info_tb_type =
  82. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultstb_type}, {}};
  83. static void InitDefaultstb_reply() {
  84. GOOGLE_PROTOBUF_VERIFY_VERSION;
  85. {
  86. void* ptr = &::_tb_reply_default_instance_;
  87. new (ptr) ::tb_reply();
  88. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  89. }
  90. ::tb_reply::InitAsDefaultInstance();
  91. }
  92. ::google::protobuf::internal::SCCInfo<0> scc_info_tb_reply =
  93. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultstb_reply}, {}};
  94. static void InitDefaultsrec_customer() {
  95. GOOGLE_PROTOBUF_VERIFY_VERSION;
  96. {
  97. void* ptr = &::_rec_customer_default_instance_;
  98. new (ptr) ::rec_customer();
  99. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  100. }
  101. ::rec_customer::InitAsDefaultInstance();
  102. }
  103. ::google::protobuf::internal::SCCInfo<1> scc_info_rec_customer =
  104. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsrec_customer}, {
  105. &protobuf_table_2eproto::scc_info_tb_customer.base,}};
  106. static void InitDefaultsrec_type() {
  107. GOOGLE_PROTOBUF_VERIFY_VERSION;
  108. {
  109. void* ptr = &::_rec_type_default_instance_;
  110. new (ptr) ::rec_type();
  111. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  112. }
  113. ::rec_type::InitAsDefaultInstance();
  114. }
  115. ::google::protobuf::internal::SCCInfo<1> scc_info_rec_type =
  116. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsrec_type}, {
  117. &protobuf_table_2eproto::scc_info_tb_type.base,}};
  118. static void InitDefaultsrec_reply() {
  119. GOOGLE_PROTOBUF_VERIFY_VERSION;
  120. {
  121. void* ptr = &::_rec_reply_default_instance_;
  122. new (ptr) ::rec_reply();
  123. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  124. }
  125. ::rec_reply::InitAsDefaultInstance();
  126. }
  127. ::google::protobuf::internal::SCCInfo<1> scc_info_rec_reply =
  128. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsrec_reply}, {
  129. &protobuf_table_2eproto::scc_info_tb_reply.base,}};
  130. static void InitDefaultsview() {
  131. GOOGLE_PROTOBUF_VERIFY_VERSION;
  132. {
  133. void* ptr = &::_view_default_instance_;
  134. new (ptr) ::view();
  135. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  136. }
  137. ::view::InitAsDefaultInstance();
  138. }
  139. ::google::protobuf::internal::SCCInfo<3> scc_info_view =
  140. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsview}, {
  141. &protobuf_table_2eproto::scc_info_tb_customer.base,
  142. &protobuf_table_2eproto::scc_info_rec_type.base,
  143. &protobuf_table_2eproto::scc_info_rec_reply.base,}};
  144. void InitDefaults() {
  145. ::google::protobuf::internal::InitSCC(&scc_info_tb_customer.base);
  146. ::google::protobuf::internal::InitSCC(&scc_info_tb_type.base);
  147. ::google::protobuf::internal::InitSCC(&scc_info_tb_reply.base);
  148. ::google::protobuf::internal::InitSCC(&scc_info_rec_customer.base);
  149. ::google::protobuf::internal::InitSCC(&scc_info_rec_type.base);
  150. ::google::protobuf::internal::InitSCC(&scc_info_rec_reply.base);
  151. ::google::protobuf::internal::InitSCC(&scc_info_view.base);
  152. }
  153. ::google::protobuf::Metadata file_level_metadata[7];
  154. const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  155. ~0u, // no _has_bits_
  156. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tb_customer, _internal_metadata_),
  157. ~0u, // no _extensions_
  158. ~0u, // no _oneof_case_
  159. ~0u, // no _weak_field_map_
  160. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tb_customer, customer_id_),
  161. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tb_customer, customer_name_),
  162. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tb_customer, customer_gender_),
  163. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tb_customer, customer_phone_),
  164. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tb_customer, customer_password_),
  165. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tb_customer, customer_old_phone_),
  166. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tb_customer, customer_vcode_),
  167. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tb_customer, customer_vcode_expiry_time_),
  168. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tb_customer, customer_enable_),
  169. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tb_customer, customer_gen_time_),
  170. ~0u, // no _has_bits_
  171. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tb_type, _internal_metadata_),
  172. ~0u, // no _extensions_
  173. ~0u, // no _oneof_case_
  174. ~0u, // no _weak_field_map_
  175. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tb_type, customer_id_),
  176. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tb_type, type_id_),
  177. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tb_type, type_name_),
  178. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tb_type, type_gen_time_),
  179. ~0u, // no _has_bits_
  180. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tb_reply, _internal_metadata_),
  181. ~0u, // no _extensions_
  182. ~0u, // no _oneof_case_
  183. ~0u, // no _weak_field_map_
  184. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tb_reply, type_id_),
  185. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tb_reply, reply_name_),
  186. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tb_reply, reply_content_),
  187. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tb_reply, reply_gen_time_),
  188. ~0u, // no _has_bits_
  189. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::rec_customer, _internal_metadata_),
  190. ~0u, // no _extensions_
  191. ~0u, // no _oneof_case_
  192. ~0u, // no _weak_field_map_
  193. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::rec_customer, customers_),
  194. ~0u, // no _has_bits_
  195. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::rec_type, _internal_metadata_),
  196. ~0u, // no _extensions_
  197. ~0u, // no _oneof_case_
  198. ~0u, // no _weak_field_map_
  199. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::rec_type, types_),
  200. ~0u, // no _has_bits_
  201. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::rec_reply, _internal_metadata_),
  202. ~0u, // no _extensions_
  203. ~0u, // no _oneof_case_
  204. ~0u, // no _weak_field_map_
  205. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::rec_reply, replys_),
  206. ~0u, // no _has_bits_
  207. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::view, _internal_metadata_),
  208. ~0u, // no _extensions_
  209. ~0u, // no _oneof_case_
  210. ~0u, // no _weak_field_map_
  211. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::view, customer_),
  212. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::view, types_),
  213. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::view, replys_),
  214. };
  215. static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  216. { 0, -1, sizeof(::tb_customer)},
  217. { 15, -1, sizeof(::tb_type)},
  218. { 24, -1, sizeof(::tb_reply)},
  219. { 33, -1, sizeof(::rec_customer)},
  220. { 39, -1, sizeof(::rec_type)},
  221. { 45, -1, sizeof(::rec_reply)},
  222. { 51, -1, sizeof(::view)},
  223. };
  224. static ::google::protobuf::Message const * const file_default_instances[] = {
  225. reinterpret_cast<const ::google::protobuf::Message*>(&::_tb_customer_default_instance_),
  226. reinterpret_cast<const ::google::protobuf::Message*>(&::_tb_type_default_instance_),
  227. reinterpret_cast<const ::google::protobuf::Message*>(&::_tb_reply_default_instance_),
  228. reinterpret_cast<const ::google::protobuf::Message*>(&::_rec_customer_default_instance_),
  229. reinterpret_cast<const ::google::protobuf::Message*>(&::_rec_type_default_instance_),
  230. reinterpret_cast<const ::google::protobuf::Message*>(&::_rec_reply_default_instance_),
  231. reinterpret_cast<const ::google::protobuf::Message*>(&::_view_default_instance_),
  232. };
  233. void protobuf_AssignDescriptors() {
  234. AddDescriptors();
  235. AssignDescriptors(
  236. "table.proto", schemas, file_default_instances, TableStruct::offsets,
  237. file_level_metadata, NULL, NULL);
  238. }
  239. void protobuf_AssignDescriptorsOnce() {
  240. static ::google::protobuf::internal::once_flag once;
  241. ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
  242. }
  243. void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
  244. void protobuf_RegisterTypes(const ::std::string&) {
  245. protobuf_AssignDescriptorsOnce();
  246. ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 7);
  247. }
  248. void AddDescriptorsImpl() {
  249. InitDefaults();
  250. static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  251. "\n\013table.proto\"\221\002\n\013tb_customer\022\023\n\013custome"
  252. "r_id\030\001 \001(\t\022\025\n\rcustomer_name\030\002 \001(\t\022\027\n\017cus"
  253. "tomer_gender\030\003 \001(\010\022\026\n\016customer_phone\030\004 \001"
  254. "(\t\022\031\n\021customer_password\030\005 \001(\t\022\032\n\022custome"
  255. "r_old_phone\030\006 \001(\t\022\026\n\016customer_vcode\030\007 \001("
  256. "\t\022\"\n\032customer_vcode_expiry_time\030\010 \001(\t\022\027\n"
  257. "\017customer_enable\030\t \001(\010\022\031\n\021customer_gen_t"
  258. "ime\030\n \001(\t\"Y\n\007tb_type\022\023\n\013customer_id\030\001 \001("
  259. "\t\022\017\n\007type_id\030\002 \001(\t\022\021\n\ttype_name\030\003 \001(\t\022\025\n"
  260. "\rtype_gen_time\030\004 \001(\t\"^\n\010tb_reply\022\017\n\007type"
  261. "_id\030\001 \001(\t\022\022\n\nreply_name\030\002 \001(\t\022\025\n\rreply_c"
  262. "ontent\030\003 \001(\t\022\026\n\016reply_gen_time\030\004 \001(\t\"/\n\014"
  263. "rec_customer\022\037\n\tcustomers\030\001 \003(\0132\014.tb_cus"
  264. "tomer\"#\n\010rec_type\022\027\n\005types\030\001 \003(\0132\010.tb_ty"
  265. "pe\"&\n\trec_reply\022\031\n\006replys\030\001 \003(\0132\t.tb_rep"
  266. "ly\"\\\n\004view\022\036\n\010customer\030\001 \001(\0132\014.tb_custom"
  267. "er\022\030\n\005types\030\002 \001(\0132\t.rec_type\022\032\n\006replys\030\003"
  268. " \001(\0132\n.rec_replyb\006proto3"
  269. };
  270. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  271. descriptor, 704);
  272. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  273. "table.proto", &protobuf_RegisterTypes);
  274. }
  275. void AddDescriptors() {
  276. static ::google::protobuf::internal::once_flag once;
  277. ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
  278. }
  279. // Force AddDescriptors() to be called at dynamic initialization time.
  280. struct StaticDescriptorInitializer {
  281. StaticDescriptorInitializer() {
  282. AddDescriptors();
  283. }
  284. } static_descriptor_initializer;
  285. } // namespace protobuf_table_2eproto
  286. // ===================================================================
  287. void tb_customer::InitAsDefaultInstance() {
  288. }
  289. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  290. const int tb_customer::kCustomerIdFieldNumber;
  291. const int tb_customer::kCustomerNameFieldNumber;
  292. const int tb_customer::kCustomerGenderFieldNumber;
  293. const int tb_customer::kCustomerPhoneFieldNumber;
  294. const int tb_customer::kCustomerPasswordFieldNumber;
  295. const int tb_customer::kCustomerOldPhoneFieldNumber;
  296. const int tb_customer::kCustomerVcodeFieldNumber;
  297. const int tb_customer::kCustomerVcodeExpiryTimeFieldNumber;
  298. const int tb_customer::kCustomerEnableFieldNumber;
  299. const int tb_customer::kCustomerGenTimeFieldNumber;
  300. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  301. tb_customer::tb_customer()
  302. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  303. ::google::protobuf::internal::InitSCC(
  304. &protobuf_table_2eproto::scc_info_tb_customer.base);
  305. SharedCtor();
  306. // @@protoc_insertion_point(constructor:tb_customer)
  307. }
  308. tb_customer::tb_customer(const tb_customer& from)
  309. : ::google::protobuf::Message(),
  310. _internal_metadata_(NULL) {
  311. _internal_metadata_.MergeFrom(from._internal_metadata_);
  312. customer_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  313. if (from.customer_id().size() > 0) {
  314. customer_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.customer_id_);
  315. }
  316. customer_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  317. if (from.customer_name().size() > 0) {
  318. customer_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.customer_name_);
  319. }
  320. customer_phone_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  321. if (from.customer_phone().size() > 0) {
  322. customer_phone_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.customer_phone_);
  323. }
  324. customer_password_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  325. if (from.customer_password().size() > 0) {
  326. customer_password_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.customer_password_);
  327. }
  328. customer_old_phone_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  329. if (from.customer_old_phone().size() > 0) {
  330. customer_old_phone_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.customer_old_phone_);
  331. }
  332. customer_vcode_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  333. if (from.customer_vcode().size() > 0) {
  334. customer_vcode_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.customer_vcode_);
  335. }
  336. customer_vcode_expiry_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  337. if (from.customer_vcode_expiry_time().size() > 0) {
  338. customer_vcode_expiry_time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.customer_vcode_expiry_time_);
  339. }
  340. customer_gen_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  341. if (from.customer_gen_time().size() > 0) {
  342. customer_gen_time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.customer_gen_time_);
  343. }
  344. ::memcpy(&customer_gender_, &from.customer_gender_,
  345. static_cast<size_t>(reinterpret_cast<char*>(&customer_enable_) -
  346. reinterpret_cast<char*>(&customer_gender_)) + sizeof(customer_enable_));
  347. // @@protoc_insertion_point(copy_constructor:tb_customer)
  348. }
  349. void tb_customer::SharedCtor() {
  350. customer_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  351. customer_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  352. customer_phone_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  353. customer_password_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  354. customer_old_phone_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  355. customer_vcode_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  356. customer_vcode_expiry_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  357. customer_gen_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  358. ::memset(&customer_gender_, 0, static_cast<size_t>(
  359. reinterpret_cast<char*>(&customer_enable_) -
  360. reinterpret_cast<char*>(&customer_gender_)) + sizeof(customer_enable_));
  361. }
  362. tb_customer::~tb_customer() {
  363. // @@protoc_insertion_point(destructor:tb_customer)
  364. SharedDtor();
  365. }
  366. void tb_customer::SharedDtor() {
  367. customer_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  368. customer_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  369. customer_phone_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  370. customer_password_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  371. customer_old_phone_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  372. customer_vcode_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  373. customer_vcode_expiry_time_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  374. customer_gen_time_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  375. }
  376. void tb_customer::SetCachedSize(int size) const {
  377. _cached_size_.Set(size);
  378. }
  379. const ::google::protobuf::Descriptor* tb_customer::descriptor() {
  380. ::protobuf_table_2eproto::protobuf_AssignDescriptorsOnce();
  381. return ::protobuf_table_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  382. }
  383. const tb_customer& tb_customer::default_instance() {
  384. ::google::protobuf::internal::InitSCC(&protobuf_table_2eproto::scc_info_tb_customer.base);
  385. return *internal_default_instance();
  386. }
  387. void tb_customer::Clear() {
  388. // @@protoc_insertion_point(message_clear_start:tb_customer)
  389. ::google::protobuf::uint32 cached_has_bits = 0;
  390. // Prevent compiler warnings about cached_has_bits being unused
  391. (void) cached_has_bits;
  392. customer_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  393. customer_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  394. customer_phone_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  395. customer_password_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  396. customer_old_phone_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  397. customer_vcode_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  398. customer_vcode_expiry_time_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  399. customer_gen_time_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  400. ::memset(&customer_gender_, 0, static_cast<size_t>(
  401. reinterpret_cast<char*>(&customer_enable_) -
  402. reinterpret_cast<char*>(&customer_gender_)) + sizeof(customer_enable_));
  403. _internal_metadata_.Clear();
  404. }
  405. bool tb_customer::MergePartialFromCodedStream(
  406. ::google::protobuf::io::CodedInputStream* input) {
  407. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  408. ::google::protobuf::uint32 tag;
  409. // @@protoc_insertion_point(parse_start:tb_customer)
  410. for (;;) {
  411. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  412. tag = p.first;
  413. if (!p.second) goto handle_unusual;
  414. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  415. // string customer_id = 1;
  416. case 1: {
  417. if (static_cast< ::google::protobuf::uint8>(tag) ==
  418. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  419. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  420. input, this->mutable_customer_id()));
  421. DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  422. this->customer_id().data(), static_cast<int>(this->customer_id().length()),
  423. ::google::protobuf::internal::WireFormatLite::PARSE,
  424. "tb_customer.customer_id"));
  425. } else {
  426. goto handle_unusual;
  427. }
  428. break;
  429. }
  430. // string customer_name = 2;
  431. case 2: {
  432. if (static_cast< ::google::protobuf::uint8>(tag) ==
  433. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  434. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  435. input, this->mutable_customer_name()));
  436. DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  437. this->customer_name().data(), static_cast<int>(this->customer_name().length()),
  438. ::google::protobuf::internal::WireFormatLite::PARSE,
  439. "tb_customer.customer_name"));
  440. } else {
  441. goto handle_unusual;
  442. }
  443. break;
  444. }
  445. // bool customer_gender = 3;
  446. case 3: {
  447. if (static_cast< ::google::protobuf::uint8>(tag) ==
  448. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  449. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  450. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  451. input, &customer_gender_)));
  452. } else {
  453. goto handle_unusual;
  454. }
  455. break;
  456. }
  457. // string customer_phone = 4;
  458. case 4: {
  459. if (static_cast< ::google::protobuf::uint8>(tag) ==
  460. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  461. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  462. input, this->mutable_customer_phone()));
  463. DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  464. this->customer_phone().data(), static_cast<int>(this->customer_phone().length()),
  465. ::google::protobuf::internal::WireFormatLite::PARSE,
  466. "tb_customer.customer_phone"));
  467. } else {
  468. goto handle_unusual;
  469. }
  470. break;
  471. }
  472. // string customer_password = 5;
  473. case 5: {
  474. if (static_cast< ::google::protobuf::uint8>(tag) ==
  475. static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
  476. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  477. input, this->mutable_customer_password()));
  478. DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  479. this->customer_password().data(), static_cast<int>(this->customer_password().length()),
  480. ::google::protobuf::internal::WireFormatLite::PARSE,
  481. "tb_customer.customer_password"));
  482. } else {
  483. goto handle_unusual;
  484. }
  485. break;
  486. }
  487. // string customer_old_phone = 6;
  488. case 6: {
  489. if (static_cast< ::google::protobuf::uint8>(tag) ==
  490. static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
  491. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  492. input, this->mutable_customer_old_phone()));
  493. DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  494. this->customer_old_phone().data(), static_cast<int>(this->customer_old_phone().length()),
  495. ::google::protobuf::internal::WireFormatLite::PARSE,
  496. "tb_customer.customer_old_phone"));
  497. } else {
  498. goto handle_unusual;
  499. }
  500. break;
  501. }
  502. // string customer_vcode = 7;
  503. case 7: {
  504. if (static_cast< ::google::protobuf::uint8>(tag) ==
  505. static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
  506. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  507. input, this->mutable_customer_vcode()));
  508. DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  509. this->customer_vcode().data(), static_cast<int>(this->customer_vcode().length()),
  510. ::google::protobuf::internal::WireFormatLite::PARSE,
  511. "tb_customer.customer_vcode"));
  512. } else {
  513. goto handle_unusual;
  514. }
  515. break;
  516. }
  517. // string customer_vcode_expiry_time = 8;
  518. case 8: {
  519. if (static_cast< ::google::protobuf::uint8>(tag) ==
  520. static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
  521. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  522. input, this->mutable_customer_vcode_expiry_time()));
  523. DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  524. this->customer_vcode_expiry_time().data(), static_cast<int>(this->customer_vcode_expiry_time().length()),
  525. ::google::protobuf::internal::WireFormatLite::PARSE,
  526. "tb_customer.customer_vcode_expiry_time"));
  527. } else {
  528. goto handle_unusual;
  529. }
  530. break;
  531. }
  532. // bool customer_enable = 9;
  533. case 9: {
  534. if (static_cast< ::google::protobuf::uint8>(tag) ==
  535. static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
  536. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  537. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  538. input, &customer_enable_)));
  539. } else {
  540. goto handle_unusual;
  541. }
  542. break;
  543. }
  544. // string customer_gen_time = 10;
  545. case 10: {
  546. if (static_cast< ::google::protobuf::uint8>(tag) ==
  547. static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) {
  548. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  549. input, this->mutable_customer_gen_time()));
  550. DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  551. this->customer_gen_time().data(), static_cast<int>(this->customer_gen_time().length()),
  552. ::google::protobuf::internal::WireFormatLite::PARSE,
  553. "tb_customer.customer_gen_time"));
  554. } else {
  555. goto handle_unusual;
  556. }
  557. break;
  558. }
  559. default: {
  560. handle_unusual:
  561. if (tag == 0) {
  562. goto success;
  563. }
  564. DO_(::google::protobuf::internal::WireFormat::SkipField(
  565. input, tag, _internal_metadata_.mutable_unknown_fields()));
  566. break;
  567. }
  568. }
  569. }
  570. success:
  571. // @@protoc_insertion_point(parse_success:tb_customer)
  572. return true;
  573. failure:
  574. // @@protoc_insertion_point(parse_failure:tb_customer)
  575. return false;
  576. #undef DO_
  577. }
  578. void tb_customer::SerializeWithCachedSizes(
  579. ::google::protobuf::io::CodedOutputStream* output) const {
  580. // @@protoc_insertion_point(serialize_start:tb_customer)
  581. ::google::protobuf::uint32 cached_has_bits = 0;
  582. (void) cached_has_bits;
  583. // string customer_id = 1;
  584. if (this->customer_id().size() > 0) {
  585. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  586. this->customer_id().data(), static_cast<int>(this->customer_id().length()),
  587. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  588. "tb_customer.customer_id");
  589. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  590. 1, this->customer_id(), output);
  591. }
  592. // string customer_name = 2;
  593. if (this->customer_name().size() > 0) {
  594. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  595. this->customer_name().data(), static_cast<int>(this->customer_name().length()),
  596. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  597. "tb_customer.customer_name");
  598. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  599. 2, this->customer_name(), output);
  600. }
  601. // bool customer_gender = 3;
  602. if (this->customer_gender() != 0) {
  603. ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->customer_gender(), output);
  604. }
  605. // string customer_phone = 4;
  606. if (this->customer_phone().size() > 0) {
  607. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  608. this->customer_phone().data(), static_cast<int>(this->customer_phone().length()),
  609. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  610. "tb_customer.customer_phone");
  611. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  612. 4, this->customer_phone(), output);
  613. }
  614. // string customer_password = 5;
  615. if (this->customer_password().size() > 0) {
  616. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  617. this->customer_password().data(), static_cast<int>(this->customer_password().length()),
  618. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  619. "tb_customer.customer_password");
  620. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  621. 5, this->customer_password(), output);
  622. }
  623. // string customer_old_phone = 6;
  624. if (this->customer_old_phone().size() > 0) {
  625. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  626. this->customer_old_phone().data(), static_cast<int>(this->customer_old_phone().length()),
  627. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  628. "tb_customer.customer_old_phone");
  629. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  630. 6, this->customer_old_phone(), output);
  631. }
  632. // string customer_vcode = 7;
  633. if (this->customer_vcode().size() > 0) {
  634. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  635. this->customer_vcode().data(), static_cast<int>(this->customer_vcode().length()),
  636. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  637. "tb_customer.customer_vcode");
  638. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  639. 7, this->customer_vcode(), output);
  640. }
  641. // string customer_vcode_expiry_time = 8;
  642. if (this->customer_vcode_expiry_time().size() > 0) {
  643. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  644. this->customer_vcode_expiry_time().data(), static_cast<int>(this->customer_vcode_expiry_time().length()),
  645. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  646. "tb_customer.customer_vcode_expiry_time");
  647. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  648. 8, this->customer_vcode_expiry_time(), output);
  649. }
  650. // bool customer_enable = 9;
  651. if (this->customer_enable() != 0) {
  652. ::google::protobuf::internal::WireFormatLite::WriteBool(9, this->customer_enable(), output);
  653. }
  654. // string customer_gen_time = 10;
  655. if (this->customer_gen_time().size() > 0) {
  656. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  657. this->customer_gen_time().data(), static_cast<int>(this->customer_gen_time().length()),
  658. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  659. "tb_customer.customer_gen_time");
  660. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  661. 10, this->customer_gen_time(), output);
  662. }
  663. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  664. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  665. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
  666. }
  667. // @@protoc_insertion_point(serialize_end:tb_customer)
  668. }
  669. ::google::protobuf::uint8* tb_customer::InternalSerializeWithCachedSizesToArray(
  670. bool deterministic, ::google::protobuf::uint8* target) const {
  671. (void)deterministic; // Unused
  672. // @@protoc_insertion_point(serialize_to_array_start:tb_customer)
  673. ::google::protobuf::uint32 cached_has_bits = 0;
  674. (void) cached_has_bits;
  675. // string customer_id = 1;
  676. if (this->customer_id().size() > 0) {
  677. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  678. this->customer_id().data(), static_cast<int>(this->customer_id().length()),
  679. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  680. "tb_customer.customer_id");
  681. target =
  682. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  683. 1, this->customer_id(), target);
  684. }
  685. // string customer_name = 2;
  686. if (this->customer_name().size() > 0) {
  687. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  688. this->customer_name().data(), static_cast<int>(this->customer_name().length()),
  689. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  690. "tb_customer.customer_name");
  691. target =
  692. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  693. 2, this->customer_name(), target);
  694. }
  695. // bool customer_gender = 3;
  696. if (this->customer_gender() != 0) {
  697. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->customer_gender(), target);
  698. }
  699. // string customer_phone = 4;
  700. if (this->customer_phone().size() > 0) {
  701. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  702. this->customer_phone().data(), static_cast<int>(this->customer_phone().length()),
  703. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  704. "tb_customer.customer_phone");
  705. target =
  706. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  707. 4, this->customer_phone(), target);
  708. }
  709. // string customer_password = 5;
  710. if (this->customer_password().size() > 0) {
  711. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  712. this->customer_password().data(), static_cast<int>(this->customer_password().length()),
  713. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  714. "tb_customer.customer_password");
  715. target =
  716. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  717. 5, this->customer_password(), target);
  718. }
  719. // string customer_old_phone = 6;
  720. if (this->customer_old_phone().size() > 0) {
  721. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  722. this->customer_old_phone().data(), static_cast<int>(this->customer_old_phone().length()),
  723. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  724. "tb_customer.customer_old_phone");
  725. target =
  726. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  727. 6, this->customer_old_phone(), target);
  728. }
  729. // string customer_vcode = 7;
  730. if (this->customer_vcode().size() > 0) {
  731. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  732. this->customer_vcode().data(), static_cast<int>(this->customer_vcode().length()),
  733. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  734. "tb_customer.customer_vcode");
  735. target =
  736. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  737. 7, this->customer_vcode(), target);
  738. }
  739. // string customer_vcode_expiry_time = 8;
  740. if (this->customer_vcode_expiry_time().size() > 0) {
  741. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  742. this->customer_vcode_expiry_time().data(), static_cast<int>(this->customer_vcode_expiry_time().length()),
  743. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  744. "tb_customer.customer_vcode_expiry_time");
  745. target =
  746. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  747. 8, this->customer_vcode_expiry_time(), target);
  748. }
  749. // bool customer_enable = 9;
  750. if (this->customer_enable() != 0) {
  751. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(9, this->customer_enable(), target);
  752. }
  753. // string customer_gen_time = 10;
  754. if (this->customer_gen_time().size() > 0) {
  755. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  756. this->customer_gen_time().data(), static_cast<int>(this->customer_gen_time().length()),
  757. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  758. "tb_customer.customer_gen_time");
  759. target =
  760. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  761. 10, this->customer_gen_time(), target);
  762. }
  763. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  764. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  765. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
  766. }
  767. // @@protoc_insertion_point(serialize_to_array_end:tb_customer)
  768. return target;
  769. }
  770. size_t tb_customer::ByteSizeLong() const {
  771. // @@protoc_insertion_point(message_byte_size_start:tb_customer)
  772. size_t total_size = 0;
  773. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  774. total_size +=
  775. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  776. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
  777. }
  778. // string customer_id = 1;
  779. if (this->customer_id().size() > 0) {
  780. total_size += 1 +
  781. ::google::protobuf::internal::WireFormatLite::StringSize(
  782. this->customer_id());
  783. }
  784. // string customer_name = 2;
  785. if (this->customer_name().size() > 0) {
  786. total_size += 1 +
  787. ::google::protobuf::internal::WireFormatLite::StringSize(
  788. this->customer_name());
  789. }
  790. // string customer_phone = 4;
  791. if (this->customer_phone().size() > 0) {
  792. total_size += 1 +
  793. ::google::protobuf::internal::WireFormatLite::StringSize(
  794. this->customer_phone());
  795. }
  796. // string customer_password = 5;
  797. if (this->customer_password().size() > 0) {
  798. total_size += 1 +
  799. ::google::protobuf::internal::WireFormatLite::StringSize(
  800. this->customer_password());
  801. }
  802. // string customer_old_phone = 6;
  803. if (this->customer_old_phone().size() > 0) {
  804. total_size += 1 +
  805. ::google::protobuf::internal::WireFormatLite::StringSize(
  806. this->customer_old_phone());
  807. }
  808. // string customer_vcode = 7;
  809. if (this->customer_vcode().size() > 0) {
  810. total_size += 1 +
  811. ::google::protobuf::internal::WireFormatLite::StringSize(
  812. this->customer_vcode());
  813. }
  814. // string customer_vcode_expiry_time = 8;
  815. if (this->customer_vcode_expiry_time().size() > 0) {
  816. total_size += 1 +
  817. ::google::protobuf::internal::WireFormatLite::StringSize(
  818. this->customer_vcode_expiry_time());
  819. }
  820. // string customer_gen_time = 10;
  821. if (this->customer_gen_time().size() > 0) {
  822. total_size += 1 +
  823. ::google::protobuf::internal::WireFormatLite::StringSize(
  824. this->customer_gen_time());
  825. }
  826. // bool customer_gender = 3;
  827. if (this->customer_gender() != 0) {
  828. total_size += 1 + 1;
  829. }
  830. // bool customer_enable = 9;
  831. if (this->customer_enable() != 0) {
  832. total_size += 1 + 1;
  833. }
  834. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  835. SetCachedSize(cached_size);
  836. return total_size;
  837. }
  838. void tb_customer::MergeFrom(const ::google::protobuf::Message& from) {
  839. // @@protoc_insertion_point(generalized_merge_from_start:tb_customer)
  840. GOOGLE_DCHECK_NE(&from, this);
  841. const tb_customer* source =
  842. ::google::protobuf::internal::DynamicCastToGenerated<const tb_customer>(
  843. &from);
  844. if (source == NULL) {
  845. // @@protoc_insertion_point(generalized_merge_from_cast_fail:tb_customer)
  846. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  847. } else {
  848. // @@protoc_insertion_point(generalized_merge_from_cast_success:tb_customer)
  849. MergeFrom(*source);
  850. }
  851. }
  852. void tb_customer::MergeFrom(const tb_customer& from) {
  853. // @@protoc_insertion_point(class_specific_merge_from_start:tb_customer)
  854. GOOGLE_DCHECK_NE(&from, this);
  855. _internal_metadata_.MergeFrom(from._internal_metadata_);
  856. ::google::protobuf::uint32 cached_has_bits = 0;
  857. (void) cached_has_bits;
  858. if (from.customer_id().size() > 0) {
  859. customer_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.customer_id_);
  860. }
  861. if (from.customer_name().size() > 0) {
  862. customer_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.customer_name_);
  863. }
  864. if (from.customer_phone().size() > 0) {
  865. customer_phone_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.customer_phone_);
  866. }
  867. if (from.customer_password().size() > 0) {
  868. customer_password_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.customer_password_);
  869. }
  870. if (from.customer_old_phone().size() > 0) {
  871. customer_old_phone_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.customer_old_phone_);
  872. }
  873. if (from.customer_vcode().size() > 0) {
  874. customer_vcode_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.customer_vcode_);
  875. }
  876. if (from.customer_vcode_expiry_time().size() > 0) {
  877. customer_vcode_expiry_time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.customer_vcode_expiry_time_);
  878. }
  879. if (from.customer_gen_time().size() > 0) {
  880. customer_gen_time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.customer_gen_time_);
  881. }
  882. if (from.customer_gender() != 0) {
  883. set_customer_gender(from.customer_gender());
  884. }
  885. if (from.customer_enable() != 0) {
  886. set_customer_enable(from.customer_enable());
  887. }
  888. }
  889. void tb_customer::CopyFrom(const ::google::protobuf::Message& from) {
  890. // @@protoc_insertion_point(generalized_copy_from_start:tb_customer)
  891. if (&from == this) return;
  892. Clear();
  893. MergeFrom(from);
  894. }
  895. void tb_customer::CopyFrom(const tb_customer& from) {
  896. // @@protoc_insertion_point(class_specific_copy_from_start:tb_customer)
  897. if (&from == this) return;
  898. Clear();
  899. MergeFrom(from);
  900. }
  901. bool tb_customer::IsInitialized() const {
  902. return true;
  903. }
  904. void tb_customer::Swap(tb_customer* other) {
  905. if (other == this) return;
  906. InternalSwap(other);
  907. }
  908. void tb_customer::InternalSwap(tb_customer* other) {
  909. using std::swap;
  910. customer_id_.Swap(&other->customer_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  911. GetArenaNoVirtual());
  912. customer_name_.Swap(&other->customer_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  913. GetArenaNoVirtual());
  914. customer_phone_.Swap(&other->customer_phone_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  915. GetArenaNoVirtual());
  916. customer_password_.Swap(&other->customer_password_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  917. GetArenaNoVirtual());
  918. customer_old_phone_.Swap(&other->customer_old_phone_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  919. GetArenaNoVirtual());
  920. customer_vcode_.Swap(&other->customer_vcode_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  921. GetArenaNoVirtual());
  922. customer_vcode_expiry_time_.Swap(&other->customer_vcode_expiry_time_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  923. GetArenaNoVirtual());
  924. customer_gen_time_.Swap(&other->customer_gen_time_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  925. GetArenaNoVirtual());
  926. swap(customer_gender_, other->customer_gender_);
  927. swap(customer_enable_, other->customer_enable_);
  928. _internal_metadata_.Swap(&other->_internal_metadata_);
  929. }
  930. ::google::protobuf::Metadata tb_customer::GetMetadata() const {
  931. protobuf_table_2eproto::protobuf_AssignDescriptorsOnce();
  932. return ::protobuf_table_2eproto::file_level_metadata[kIndexInFileMessages];
  933. }
  934. // ===================================================================
  935. void tb_type::InitAsDefaultInstance() {
  936. }
  937. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  938. const int tb_type::kCustomerIdFieldNumber;
  939. const int tb_type::kTypeIdFieldNumber;
  940. const int tb_type::kTypeNameFieldNumber;
  941. const int tb_type::kTypeGenTimeFieldNumber;
  942. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  943. tb_type::tb_type()
  944. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  945. ::google::protobuf::internal::InitSCC(
  946. &protobuf_table_2eproto::scc_info_tb_type.base);
  947. SharedCtor();
  948. // @@protoc_insertion_point(constructor:tb_type)
  949. }
  950. tb_type::tb_type(const tb_type& from)
  951. : ::google::protobuf::Message(),
  952. _internal_metadata_(NULL) {
  953. _internal_metadata_.MergeFrom(from._internal_metadata_);
  954. customer_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  955. if (from.customer_id().size() > 0) {
  956. customer_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.customer_id_);
  957. }
  958. type_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  959. if (from.type_id().size() > 0) {
  960. type_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_id_);
  961. }
  962. type_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  963. if (from.type_name().size() > 0) {
  964. type_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_name_);
  965. }
  966. type_gen_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  967. if (from.type_gen_time().size() > 0) {
  968. type_gen_time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_gen_time_);
  969. }
  970. // @@protoc_insertion_point(copy_constructor:tb_type)
  971. }
  972. void tb_type::SharedCtor() {
  973. customer_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  974. type_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  975. type_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  976. type_gen_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  977. }
  978. tb_type::~tb_type() {
  979. // @@protoc_insertion_point(destructor:tb_type)
  980. SharedDtor();
  981. }
  982. void tb_type::SharedDtor() {
  983. customer_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  984. type_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  985. type_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  986. type_gen_time_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  987. }
  988. void tb_type::SetCachedSize(int size) const {
  989. _cached_size_.Set(size);
  990. }
  991. const ::google::protobuf::Descriptor* tb_type::descriptor() {
  992. ::protobuf_table_2eproto::protobuf_AssignDescriptorsOnce();
  993. return ::protobuf_table_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  994. }
  995. const tb_type& tb_type::default_instance() {
  996. ::google::protobuf::internal::InitSCC(&protobuf_table_2eproto::scc_info_tb_type.base);
  997. return *internal_default_instance();
  998. }
  999. void tb_type::Clear() {
  1000. // @@protoc_insertion_point(message_clear_start:tb_type)
  1001. ::google::protobuf::uint32 cached_has_bits = 0;
  1002. // Prevent compiler warnings about cached_has_bits being unused
  1003. (void) cached_has_bits;
  1004. customer_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1005. type_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1006. type_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1007. type_gen_time_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1008. _internal_metadata_.Clear();
  1009. }
  1010. bool tb_type::MergePartialFromCodedStream(
  1011. ::google::protobuf::io::CodedInputStream* input) {
  1012. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1013. ::google::protobuf::uint32 tag;
  1014. // @@protoc_insertion_point(parse_start:tb_type)
  1015. for (;;) {
  1016. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1017. tag = p.first;
  1018. if (!p.second) goto handle_unusual;
  1019. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1020. // string customer_id = 1;
  1021. case 1: {
  1022. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1023. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  1024. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1025. input, this->mutable_customer_id()));
  1026. DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1027. this->customer_id().data(), static_cast<int>(this->customer_id().length()),
  1028. ::google::protobuf::internal::WireFormatLite::PARSE,
  1029. "tb_type.customer_id"));
  1030. } else {
  1031. goto handle_unusual;
  1032. }
  1033. break;
  1034. }
  1035. // string type_id = 2;
  1036. case 2: {
  1037. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1038. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  1039. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1040. input, this->mutable_type_id()));
  1041. DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1042. this->type_id().data(), static_cast<int>(this->type_id().length()),
  1043. ::google::protobuf::internal::WireFormatLite::PARSE,
  1044. "tb_type.type_id"));
  1045. } else {
  1046. goto handle_unusual;
  1047. }
  1048. break;
  1049. }
  1050. // string type_name = 3;
  1051. case 3: {
  1052. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1053. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  1054. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1055. input, this->mutable_type_name()));
  1056. DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1057. this->type_name().data(), static_cast<int>(this->type_name().length()),
  1058. ::google::protobuf::internal::WireFormatLite::PARSE,
  1059. "tb_type.type_name"));
  1060. } else {
  1061. goto handle_unusual;
  1062. }
  1063. break;
  1064. }
  1065. // string type_gen_time = 4;
  1066. case 4: {
  1067. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1068. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  1069. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1070. input, this->mutable_type_gen_time()));
  1071. DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1072. this->type_gen_time().data(), static_cast<int>(this->type_gen_time().length()),
  1073. ::google::protobuf::internal::WireFormatLite::PARSE,
  1074. "tb_type.type_gen_time"));
  1075. } else {
  1076. goto handle_unusual;
  1077. }
  1078. break;
  1079. }
  1080. default: {
  1081. handle_unusual:
  1082. if (tag == 0) {
  1083. goto success;
  1084. }
  1085. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1086. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1087. break;
  1088. }
  1089. }
  1090. }
  1091. success:
  1092. // @@protoc_insertion_point(parse_success:tb_type)
  1093. return true;
  1094. failure:
  1095. // @@protoc_insertion_point(parse_failure:tb_type)
  1096. return false;
  1097. #undef DO_
  1098. }
  1099. void tb_type::SerializeWithCachedSizes(
  1100. ::google::protobuf::io::CodedOutputStream* output) const {
  1101. // @@protoc_insertion_point(serialize_start:tb_type)
  1102. ::google::protobuf::uint32 cached_has_bits = 0;
  1103. (void) cached_has_bits;
  1104. // string customer_id = 1;
  1105. if (this->customer_id().size() > 0) {
  1106. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1107. this->customer_id().data(), static_cast<int>(this->customer_id().length()),
  1108. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  1109. "tb_type.customer_id");
  1110. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1111. 1, this->customer_id(), output);
  1112. }
  1113. // string type_id = 2;
  1114. if (this->type_id().size() > 0) {
  1115. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1116. this->type_id().data(), static_cast<int>(this->type_id().length()),
  1117. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  1118. "tb_type.type_id");
  1119. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1120. 2, this->type_id(), output);
  1121. }
  1122. // string type_name = 3;
  1123. if (this->type_name().size() > 0) {
  1124. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1125. this->type_name().data(), static_cast<int>(this->type_name().length()),
  1126. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  1127. "tb_type.type_name");
  1128. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1129. 3, this->type_name(), output);
  1130. }
  1131. // string type_gen_time = 4;
  1132. if (this->type_gen_time().size() > 0) {
  1133. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1134. this->type_gen_time().data(), static_cast<int>(this->type_gen_time().length()),
  1135. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  1136. "tb_type.type_gen_time");
  1137. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1138. 4, this->type_gen_time(), output);
  1139. }
  1140. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  1141. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1142. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
  1143. }
  1144. // @@protoc_insertion_point(serialize_end:tb_type)
  1145. }
  1146. ::google::protobuf::uint8* tb_type::InternalSerializeWithCachedSizesToArray(
  1147. bool deterministic, ::google::protobuf::uint8* target) const {
  1148. (void)deterministic; // Unused
  1149. // @@protoc_insertion_point(serialize_to_array_start:tb_type)
  1150. ::google::protobuf::uint32 cached_has_bits = 0;
  1151. (void) cached_has_bits;
  1152. // string customer_id = 1;
  1153. if (this->customer_id().size() > 0) {
  1154. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1155. this->customer_id().data(), static_cast<int>(this->customer_id().length()),
  1156. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  1157. "tb_type.customer_id");
  1158. target =
  1159. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1160. 1, this->customer_id(), target);
  1161. }
  1162. // string type_id = 2;
  1163. if (this->type_id().size() > 0) {
  1164. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1165. this->type_id().data(), static_cast<int>(this->type_id().length()),
  1166. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  1167. "tb_type.type_id");
  1168. target =
  1169. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1170. 2, this->type_id(), target);
  1171. }
  1172. // string type_name = 3;
  1173. if (this->type_name().size() > 0) {
  1174. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1175. this->type_name().data(), static_cast<int>(this->type_name().length()),
  1176. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  1177. "tb_type.type_name");
  1178. target =
  1179. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1180. 3, this->type_name(), target);
  1181. }
  1182. // string type_gen_time = 4;
  1183. if (this->type_gen_time().size() > 0) {
  1184. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1185. this->type_gen_time().data(), static_cast<int>(this->type_gen_time().length()),
  1186. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  1187. "tb_type.type_gen_time");
  1188. target =
  1189. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1190. 4, this->type_gen_time(), target);
  1191. }
  1192. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  1193. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1194. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
  1195. }
  1196. // @@protoc_insertion_point(serialize_to_array_end:tb_type)
  1197. return target;
  1198. }
  1199. size_t tb_type::ByteSizeLong() const {
  1200. // @@protoc_insertion_point(message_byte_size_start:tb_type)
  1201. size_t total_size = 0;
  1202. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  1203. total_size +=
  1204. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1205. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
  1206. }
  1207. // string customer_id = 1;
  1208. if (this->customer_id().size() > 0) {
  1209. total_size += 1 +
  1210. ::google::protobuf::internal::WireFormatLite::StringSize(
  1211. this->customer_id());
  1212. }
  1213. // string type_id = 2;
  1214. if (this->type_id().size() > 0) {
  1215. total_size += 1 +
  1216. ::google::protobuf::internal::WireFormatLite::StringSize(
  1217. this->type_id());
  1218. }
  1219. // string type_name = 3;
  1220. if (this->type_name().size() > 0) {
  1221. total_size += 1 +
  1222. ::google::protobuf::internal::WireFormatLite::StringSize(
  1223. this->type_name());
  1224. }
  1225. // string type_gen_time = 4;
  1226. if (this->type_gen_time().size() > 0) {
  1227. total_size += 1 +
  1228. ::google::protobuf::internal::WireFormatLite::StringSize(
  1229. this->type_gen_time());
  1230. }
  1231. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1232. SetCachedSize(cached_size);
  1233. return total_size;
  1234. }
  1235. void tb_type::MergeFrom(const ::google::protobuf::Message& from) {
  1236. // @@protoc_insertion_point(generalized_merge_from_start:tb_type)
  1237. GOOGLE_DCHECK_NE(&from, this);
  1238. const tb_type* source =
  1239. ::google::protobuf::internal::DynamicCastToGenerated<const tb_type>(
  1240. &from);
  1241. if (source == NULL) {
  1242. // @@protoc_insertion_point(generalized_merge_from_cast_fail:tb_type)
  1243. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1244. } else {
  1245. // @@protoc_insertion_point(generalized_merge_from_cast_success:tb_type)
  1246. MergeFrom(*source);
  1247. }
  1248. }
  1249. void tb_type::MergeFrom(const tb_type& from) {
  1250. // @@protoc_insertion_point(class_specific_merge_from_start:tb_type)
  1251. GOOGLE_DCHECK_NE(&from, this);
  1252. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1253. ::google::protobuf::uint32 cached_has_bits = 0;
  1254. (void) cached_has_bits;
  1255. if (from.customer_id().size() > 0) {
  1256. customer_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.customer_id_);
  1257. }
  1258. if (from.type_id().size() > 0) {
  1259. type_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_id_);
  1260. }
  1261. if (from.type_name().size() > 0) {
  1262. type_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_name_);
  1263. }
  1264. if (from.type_gen_time().size() > 0) {
  1265. type_gen_time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_gen_time_);
  1266. }
  1267. }
  1268. void tb_type::CopyFrom(const ::google::protobuf::Message& from) {
  1269. // @@protoc_insertion_point(generalized_copy_from_start:tb_type)
  1270. if (&from == this) return;
  1271. Clear();
  1272. MergeFrom(from);
  1273. }
  1274. void tb_type::CopyFrom(const tb_type& from) {
  1275. // @@protoc_insertion_point(class_specific_copy_from_start:tb_type)
  1276. if (&from == this) return;
  1277. Clear();
  1278. MergeFrom(from);
  1279. }
  1280. bool tb_type::IsInitialized() const {
  1281. return true;
  1282. }
  1283. void tb_type::Swap(tb_type* other) {
  1284. if (other == this) return;
  1285. InternalSwap(other);
  1286. }
  1287. void tb_type::InternalSwap(tb_type* other) {
  1288. using std::swap;
  1289. customer_id_.Swap(&other->customer_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1290. GetArenaNoVirtual());
  1291. type_id_.Swap(&other->type_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1292. GetArenaNoVirtual());
  1293. type_name_.Swap(&other->type_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1294. GetArenaNoVirtual());
  1295. type_gen_time_.Swap(&other->type_gen_time_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1296. GetArenaNoVirtual());
  1297. _internal_metadata_.Swap(&other->_internal_metadata_);
  1298. }
  1299. ::google::protobuf::Metadata tb_type::GetMetadata() const {
  1300. protobuf_table_2eproto::protobuf_AssignDescriptorsOnce();
  1301. return ::protobuf_table_2eproto::file_level_metadata[kIndexInFileMessages];
  1302. }
  1303. // ===================================================================
  1304. void tb_reply::InitAsDefaultInstance() {
  1305. }
  1306. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1307. const int tb_reply::kTypeIdFieldNumber;
  1308. const int tb_reply::kReplyNameFieldNumber;
  1309. const int tb_reply::kReplyContentFieldNumber;
  1310. const int tb_reply::kReplyGenTimeFieldNumber;
  1311. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1312. tb_reply::tb_reply()
  1313. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1314. ::google::protobuf::internal::InitSCC(
  1315. &protobuf_table_2eproto::scc_info_tb_reply.base);
  1316. SharedCtor();
  1317. // @@protoc_insertion_point(constructor:tb_reply)
  1318. }
  1319. tb_reply::tb_reply(const tb_reply& from)
  1320. : ::google::protobuf::Message(),
  1321. _internal_metadata_(NULL) {
  1322. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1323. type_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1324. if (from.type_id().size() > 0) {
  1325. type_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_id_);
  1326. }
  1327. reply_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1328. if (from.reply_name().size() > 0) {
  1329. reply_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reply_name_);
  1330. }
  1331. reply_content_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1332. if (from.reply_content().size() > 0) {
  1333. reply_content_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reply_content_);
  1334. }
  1335. reply_gen_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1336. if (from.reply_gen_time().size() > 0) {
  1337. reply_gen_time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reply_gen_time_);
  1338. }
  1339. // @@protoc_insertion_point(copy_constructor:tb_reply)
  1340. }
  1341. void tb_reply::SharedCtor() {
  1342. type_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1343. reply_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1344. reply_content_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1345. reply_gen_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1346. }
  1347. tb_reply::~tb_reply() {
  1348. // @@protoc_insertion_point(destructor:tb_reply)
  1349. SharedDtor();
  1350. }
  1351. void tb_reply::SharedDtor() {
  1352. type_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1353. reply_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1354. reply_content_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1355. reply_gen_time_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1356. }
  1357. void tb_reply::SetCachedSize(int size) const {
  1358. _cached_size_.Set(size);
  1359. }
  1360. const ::google::protobuf::Descriptor* tb_reply::descriptor() {
  1361. ::protobuf_table_2eproto::protobuf_AssignDescriptorsOnce();
  1362. return ::protobuf_table_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1363. }
  1364. const tb_reply& tb_reply::default_instance() {
  1365. ::google::protobuf::internal::InitSCC(&protobuf_table_2eproto::scc_info_tb_reply.base);
  1366. return *internal_default_instance();
  1367. }
  1368. void tb_reply::Clear() {
  1369. // @@protoc_insertion_point(message_clear_start:tb_reply)
  1370. ::google::protobuf::uint32 cached_has_bits = 0;
  1371. // Prevent compiler warnings about cached_has_bits being unused
  1372. (void) cached_has_bits;
  1373. type_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1374. reply_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1375. reply_content_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1376. reply_gen_time_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1377. _internal_metadata_.Clear();
  1378. }
  1379. bool tb_reply::MergePartialFromCodedStream(
  1380. ::google::protobuf::io::CodedInputStream* input) {
  1381. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1382. ::google::protobuf::uint32 tag;
  1383. // @@protoc_insertion_point(parse_start:tb_reply)
  1384. for (;;) {
  1385. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1386. tag = p.first;
  1387. if (!p.second) goto handle_unusual;
  1388. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1389. // string type_id = 1;
  1390. case 1: {
  1391. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1392. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  1393. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1394. input, this->mutable_type_id()));
  1395. DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1396. this->type_id().data(), static_cast<int>(this->type_id().length()),
  1397. ::google::protobuf::internal::WireFormatLite::PARSE,
  1398. "tb_reply.type_id"));
  1399. } else {
  1400. goto handle_unusual;
  1401. }
  1402. break;
  1403. }
  1404. // string reply_name = 2;
  1405. case 2: {
  1406. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1407. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  1408. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1409. input, this->mutable_reply_name()));
  1410. DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1411. this->reply_name().data(), static_cast<int>(this->reply_name().length()),
  1412. ::google::protobuf::internal::WireFormatLite::PARSE,
  1413. "tb_reply.reply_name"));
  1414. } else {
  1415. goto handle_unusual;
  1416. }
  1417. break;
  1418. }
  1419. // string reply_content = 3;
  1420. case 3: {
  1421. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1422. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  1423. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1424. input, this->mutable_reply_content()));
  1425. DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1426. this->reply_content().data(), static_cast<int>(this->reply_content().length()),
  1427. ::google::protobuf::internal::WireFormatLite::PARSE,
  1428. "tb_reply.reply_content"));
  1429. } else {
  1430. goto handle_unusual;
  1431. }
  1432. break;
  1433. }
  1434. // string reply_gen_time = 4;
  1435. case 4: {
  1436. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1437. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  1438. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1439. input, this->mutable_reply_gen_time()));
  1440. DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1441. this->reply_gen_time().data(), static_cast<int>(this->reply_gen_time().length()),
  1442. ::google::protobuf::internal::WireFormatLite::PARSE,
  1443. "tb_reply.reply_gen_time"));
  1444. } else {
  1445. goto handle_unusual;
  1446. }
  1447. break;
  1448. }
  1449. default: {
  1450. handle_unusual:
  1451. if (tag == 0) {
  1452. goto success;
  1453. }
  1454. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1455. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1456. break;
  1457. }
  1458. }
  1459. }
  1460. success:
  1461. // @@protoc_insertion_point(parse_success:tb_reply)
  1462. return true;
  1463. failure:
  1464. // @@protoc_insertion_point(parse_failure:tb_reply)
  1465. return false;
  1466. #undef DO_
  1467. }
  1468. void tb_reply::SerializeWithCachedSizes(
  1469. ::google::protobuf::io::CodedOutputStream* output) const {
  1470. // @@protoc_insertion_point(serialize_start:tb_reply)
  1471. ::google::protobuf::uint32 cached_has_bits = 0;
  1472. (void) cached_has_bits;
  1473. // string type_id = 1;
  1474. if (this->type_id().size() > 0) {
  1475. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1476. this->type_id().data(), static_cast<int>(this->type_id().length()),
  1477. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  1478. "tb_reply.type_id");
  1479. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1480. 1, this->type_id(), output);
  1481. }
  1482. // string reply_name = 2;
  1483. if (this->reply_name().size() > 0) {
  1484. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1485. this->reply_name().data(), static_cast<int>(this->reply_name().length()),
  1486. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  1487. "tb_reply.reply_name");
  1488. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1489. 2, this->reply_name(), output);
  1490. }
  1491. // string reply_content = 3;
  1492. if (this->reply_content().size() > 0) {
  1493. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1494. this->reply_content().data(), static_cast<int>(this->reply_content().length()),
  1495. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  1496. "tb_reply.reply_content");
  1497. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1498. 3, this->reply_content(), output);
  1499. }
  1500. // string reply_gen_time = 4;
  1501. if (this->reply_gen_time().size() > 0) {
  1502. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1503. this->reply_gen_time().data(), static_cast<int>(this->reply_gen_time().length()),
  1504. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  1505. "tb_reply.reply_gen_time");
  1506. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1507. 4, this->reply_gen_time(), output);
  1508. }
  1509. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  1510. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1511. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
  1512. }
  1513. // @@protoc_insertion_point(serialize_end:tb_reply)
  1514. }
  1515. ::google::protobuf::uint8* tb_reply::InternalSerializeWithCachedSizesToArray(
  1516. bool deterministic, ::google::protobuf::uint8* target) const {
  1517. (void)deterministic; // Unused
  1518. // @@protoc_insertion_point(serialize_to_array_start:tb_reply)
  1519. ::google::protobuf::uint32 cached_has_bits = 0;
  1520. (void) cached_has_bits;
  1521. // string type_id = 1;
  1522. if (this->type_id().size() > 0) {
  1523. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1524. this->type_id().data(), static_cast<int>(this->type_id().length()),
  1525. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  1526. "tb_reply.type_id");
  1527. target =
  1528. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1529. 1, this->type_id(), target);
  1530. }
  1531. // string reply_name = 2;
  1532. if (this->reply_name().size() > 0) {
  1533. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1534. this->reply_name().data(), static_cast<int>(this->reply_name().length()),
  1535. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  1536. "tb_reply.reply_name");
  1537. target =
  1538. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1539. 2, this->reply_name(), target);
  1540. }
  1541. // string reply_content = 3;
  1542. if (this->reply_content().size() > 0) {
  1543. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1544. this->reply_content().data(), static_cast<int>(this->reply_content().length()),
  1545. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  1546. "tb_reply.reply_content");
  1547. target =
  1548. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1549. 3, this->reply_content(), target);
  1550. }
  1551. // string reply_gen_time = 4;
  1552. if (this->reply_gen_time().size() > 0) {
  1553. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1554. this->reply_gen_time().data(), static_cast<int>(this->reply_gen_time().length()),
  1555. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  1556. "tb_reply.reply_gen_time");
  1557. target =
  1558. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1559. 4, this->reply_gen_time(), target);
  1560. }
  1561. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  1562. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1563. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
  1564. }
  1565. // @@protoc_insertion_point(serialize_to_array_end:tb_reply)
  1566. return target;
  1567. }
  1568. size_t tb_reply::ByteSizeLong() const {
  1569. // @@protoc_insertion_point(message_byte_size_start:tb_reply)
  1570. size_t total_size = 0;
  1571. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  1572. total_size +=
  1573. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1574. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
  1575. }
  1576. // string type_id = 1;
  1577. if (this->type_id().size() > 0) {
  1578. total_size += 1 +
  1579. ::google::protobuf::internal::WireFormatLite::StringSize(
  1580. this->type_id());
  1581. }
  1582. // string reply_name = 2;
  1583. if (this->reply_name().size() > 0) {
  1584. total_size += 1 +
  1585. ::google::protobuf::internal::WireFormatLite::StringSize(
  1586. this->reply_name());
  1587. }
  1588. // string reply_content = 3;
  1589. if (this->reply_content().size() > 0) {
  1590. total_size += 1 +
  1591. ::google::protobuf::internal::WireFormatLite::StringSize(
  1592. this->reply_content());
  1593. }
  1594. // string reply_gen_time = 4;
  1595. if (this->reply_gen_time().size() > 0) {
  1596. total_size += 1 +
  1597. ::google::protobuf::internal::WireFormatLite::StringSize(
  1598. this->reply_gen_time());
  1599. }
  1600. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1601. SetCachedSize(cached_size);
  1602. return total_size;
  1603. }
  1604. void tb_reply::MergeFrom(const ::google::protobuf::Message& from) {
  1605. // @@protoc_insertion_point(generalized_merge_from_start:tb_reply)
  1606. GOOGLE_DCHECK_NE(&from, this);
  1607. const tb_reply* source =
  1608. ::google::protobuf::internal::DynamicCastToGenerated<const tb_reply>(
  1609. &from);
  1610. if (source == NULL) {
  1611. // @@protoc_insertion_point(generalized_merge_from_cast_fail:tb_reply)
  1612. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1613. } else {
  1614. // @@protoc_insertion_point(generalized_merge_from_cast_success:tb_reply)
  1615. MergeFrom(*source);
  1616. }
  1617. }
  1618. void tb_reply::MergeFrom(const tb_reply& from) {
  1619. // @@protoc_insertion_point(class_specific_merge_from_start:tb_reply)
  1620. GOOGLE_DCHECK_NE(&from, this);
  1621. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1622. ::google::protobuf::uint32 cached_has_bits = 0;
  1623. (void) cached_has_bits;
  1624. if (from.type_id().size() > 0) {
  1625. type_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_id_);
  1626. }
  1627. if (from.reply_name().size() > 0) {
  1628. reply_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reply_name_);
  1629. }
  1630. if (from.reply_content().size() > 0) {
  1631. reply_content_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reply_content_);
  1632. }
  1633. if (from.reply_gen_time().size() > 0) {
  1634. reply_gen_time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reply_gen_time_);
  1635. }
  1636. }
  1637. void tb_reply::CopyFrom(const ::google::protobuf::Message& from) {
  1638. // @@protoc_insertion_point(generalized_copy_from_start:tb_reply)
  1639. if (&from == this) return;
  1640. Clear();
  1641. MergeFrom(from);
  1642. }
  1643. void tb_reply::CopyFrom(const tb_reply& from) {
  1644. // @@protoc_insertion_point(class_specific_copy_from_start:tb_reply)
  1645. if (&from == this) return;
  1646. Clear();
  1647. MergeFrom(from);
  1648. }
  1649. bool tb_reply::IsInitialized() const {
  1650. return true;
  1651. }
  1652. void tb_reply::Swap(tb_reply* other) {
  1653. if (other == this) return;
  1654. InternalSwap(other);
  1655. }
  1656. void tb_reply::InternalSwap(tb_reply* other) {
  1657. using std::swap;
  1658. type_id_.Swap(&other->type_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1659. GetArenaNoVirtual());
  1660. reply_name_.Swap(&other->reply_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1661. GetArenaNoVirtual());
  1662. reply_content_.Swap(&other->reply_content_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1663. GetArenaNoVirtual());
  1664. reply_gen_time_.Swap(&other->reply_gen_time_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1665. GetArenaNoVirtual());
  1666. _internal_metadata_.Swap(&other->_internal_metadata_);
  1667. }
  1668. ::google::protobuf::Metadata tb_reply::GetMetadata() const {
  1669. protobuf_table_2eproto::protobuf_AssignDescriptorsOnce();
  1670. return ::protobuf_table_2eproto::file_level_metadata[kIndexInFileMessages];
  1671. }
  1672. // ===================================================================
  1673. void rec_customer::InitAsDefaultInstance() {
  1674. }
  1675. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1676. const int rec_customer::kCustomersFieldNumber;
  1677. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1678. rec_customer::rec_customer()
  1679. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1680. ::google::protobuf::internal::InitSCC(
  1681. &protobuf_table_2eproto::scc_info_rec_customer.base);
  1682. SharedCtor();
  1683. // @@protoc_insertion_point(constructor:rec_customer)
  1684. }
  1685. rec_customer::rec_customer(const rec_customer& from)
  1686. : ::google::protobuf::Message(),
  1687. _internal_metadata_(NULL),
  1688. customers_(from.customers_) {
  1689. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1690. // @@protoc_insertion_point(copy_constructor:rec_customer)
  1691. }
  1692. void rec_customer::SharedCtor() {
  1693. }
  1694. rec_customer::~rec_customer() {
  1695. // @@protoc_insertion_point(destructor:rec_customer)
  1696. SharedDtor();
  1697. }
  1698. void rec_customer::SharedDtor() {
  1699. }
  1700. void rec_customer::SetCachedSize(int size) const {
  1701. _cached_size_.Set(size);
  1702. }
  1703. const ::google::protobuf::Descriptor* rec_customer::descriptor() {
  1704. ::protobuf_table_2eproto::protobuf_AssignDescriptorsOnce();
  1705. return ::protobuf_table_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1706. }
  1707. const rec_customer& rec_customer::default_instance() {
  1708. ::google::protobuf::internal::InitSCC(&protobuf_table_2eproto::scc_info_rec_customer.base);
  1709. return *internal_default_instance();
  1710. }
  1711. void rec_customer::Clear() {
  1712. // @@protoc_insertion_point(message_clear_start:rec_customer)
  1713. ::google::protobuf::uint32 cached_has_bits = 0;
  1714. // Prevent compiler warnings about cached_has_bits being unused
  1715. (void) cached_has_bits;
  1716. customers_.Clear();
  1717. _internal_metadata_.Clear();
  1718. }
  1719. bool rec_customer::MergePartialFromCodedStream(
  1720. ::google::protobuf::io::CodedInputStream* input) {
  1721. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1722. ::google::protobuf::uint32 tag;
  1723. // @@protoc_insertion_point(parse_start:rec_customer)
  1724. for (;;) {
  1725. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1726. tag = p.first;
  1727. if (!p.second) goto handle_unusual;
  1728. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1729. // repeated .tb_customer customers = 1;
  1730. case 1: {
  1731. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1732. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  1733. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1734. input, add_customers()));
  1735. } else {
  1736. goto handle_unusual;
  1737. }
  1738. break;
  1739. }
  1740. default: {
  1741. handle_unusual:
  1742. if (tag == 0) {
  1743. goto success;
  1744. }
  1745. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1746. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1747. break;
  1748. }
  1749. }
  1750. }
  1751. success:
  1752. // @@protoc_insertion_point(parse_success:rec_customer)
  1753. return true;
  1754. failure:
  1755. // @@protoc_insertion_point(parse_failure:rec_customer)
  1756. return false;
  1757. #undef DO_
  1758. }
  1759. void rec_customer::SerializeWithCachedSizes(
  1760. ::google::protobuf::io::CodedOutputStream* output) const {
  1761. // @@protoc_insertion_point(serialize_start:rec_customer)
  1762. ::google::protobuf::uint32 cached_has_bits = 0;
  1763. (void) cached_has_bits;
  1764. // repeated .tb_customer customers = 1;
  1765. for (unsigned int i = 0,
  1766. n = static_cast<unsigned int>(this->customers_size()); i < n; i++) {
  1767. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1768. 1,
  1769. this->customers(static_cast<int>(i)),
  1770. output);
  1771. }
  1772. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  1773. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1774. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
  1775. }
  1776. // @@protoc_insertion_point(serialize_end:rec_customer)
  1777. }
  1778. ::google::protobuf::uint8* rec_customer::InternalSerializeWithCachedSizesToArray(
  1779. bool deterministic, ::google::protobuf::uint8* target) const {
  1780. (void)deterministic; // Unused
  1781. // @@protoc_insertion_point(serialize_to_array_start:rec_customer)
  1782. ::google::protobuf::uint32 cached_has_bits = 0;
  1783. (void) cached_has_bits;
  1784. // repeated .tb_customer customers = 1;
  1785. for (unsigned int i = 0,
  1786. n = static_cast<unsigned int>(this->customers_size()); i < n; i++) {
  1787. target = ::google::protobuf::internal::WireFormatLite::
  1788. InternalWriteMessageToArray(
  1789. 1, this->customers(static_cast<int>(i)), deterministic, target);
  1790. }
  1791. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  1792. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1793. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
  1794. }
  1795. // @@protoc_insertion_point(serialize_to_array_end:rec_customer)
  1796. return target;
  1797. }
  1798. size_t rec_customer::ByteSizeLong() const {
  1799. // @@protoc_insertion_point(message_byte_size_start:rec_customer)
  1800. size_t total_size = 0;
  1801. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  1802. total_size +=
  1803. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1804. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
  1805. }
  1806. // repeated .tb_customer customers = 1;
  1807. {
  1808. unsigned int count = static_cast<unsigned int>(this->customers_size());
  1809. total_size += 1UL * count;
  1810. for (unsigned int i = 0; i < count; i++) {
  1811. total_size +=
  1812. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1813. this->customers(static_cast<int>(i)));
  1814. }
  1815. }
  1816. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1817. SetCachedSize(cached_size);
  1818. return total_size;
  1819. }
  1820. void rec_customer::MergeFrom(const ::google::protobuf::Message& from) {
  1821. // @@protoc_insertion_point(generalized_merge_from_start:rec_customer)
  1822. GOOGLE_DCHECK_NE(&from, this);
  1823. const rec_customer* source =
  1824. ::google::protobuf::internal::DynamicCastToGenerated<const rec_customer>(
  1825. &from);
  1826. if (source == NULL) {
  1827. // @@protoc_insertion_point(generalized_merge_from_cast_fail:rec_customer)
  1828. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1829. } else {
  1830. // @@protoc_insertion_point(generalized_merge_from_cast_success:rec_customer)
  1831. MergeFrom(*source);
  1832. }
  1833. }
  1834. void rec_customer::MergeFrom(const rec_customer& from) {
  1835. // @@protoc_insertion_point(class_specific_merge_from_start:rec_customer)
  1836. GOOGLE_DCHECK_NE(&from, this);
  1837. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1838. ::google::protobuf::uint32 cached_has_bits = 0;
  1839. (void) cached_has_bits;
  1840. customers_.MergeFrom(from.customers_);
  1841. }
  1842. void rec_customer::CopyFrom(const ::google::protobuf::Message& from) {
  1843. // @@protoc_insertion_point(generalized_copy_from_start:rec_customer)
  1844. if (&from == this) return;
  1845. Clear();
  1846. MergeFrom(from);
  1847. }
  1848. void rec_customer::CopyFrom(const rec_customer& from) {
  1849. // @@protoc_insertion_point(class_specific_copy_from_start:rec_customer)
  1850. if (&from == this) return;
  1851. Clear();
  1852. MergeFrom(from);
  1853. }
  1854. bool rec_customer::IsInitialized() const {
  1855. return true;
  1856. }
  1857. void rec_customer::Swap(rec_customer* other) {
  1858. if (other == this) return;
  1859. InternalSwap(other);
  1860. }
  1861. void rec_customer::InternalSwap(rec_customer* other) {
  1862. using std::swap;
  1863. CastToBase(&customers_)->InternalSwap(CastToBase(&other->customers_));
  1864. _internal_metadata_.Swap(&other->_internal_metadata_);
  1865. }
  1866. ::google::protobuf::Metadata rec_customer::GetMetadata() const {
  1867. protobuf_table_2eproto::protobuf_AssignDescriptorsOnce();
  1868. return ::protobuf_table_2eproto::file_level_metadata[kIndexInFileMessages];
  1869. }
  1870. // ===================================================================
  1871. void rec_type::InitAsDefaultInstance() {
  1872. }
  1873. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1874. const int rec_type::kTypesFieldNumber;
  1875. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1876. rec_type::rec_type()
  1877. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1878. ::google::protobuf::internal::InitSCC(
  1879. &protobuf_table_2eproto::scc_info_rec_type.base);
  1880. SharedCtor();
  1881. // @@protoc_insertion_point(constructor:rec_type)
  1882. }
  1883. rec_type::rec_type(const rec_type& from)
  1884. : ::google::protobuf::Message(),
  1885. _internal_metadata_(NULL),
  1886. types_(from.types_) {
  1887. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1888. // @@protoc_insertion_point(copy_constructor:rec_type)
  1889. }
  1890. void rec_type::SharedCtor() {
  1891. }
  1892. rec_type::~rec_type() {
  1893. // @@protoc_insertion_point(destructor:rec_type)
  1894. SharedDtor();
  1895. }
  1896. void rec_type::SharedDtor() {
  1897. }
  1898. void rec_type::SetCachedSize(int size) const {
  1899. _cached_size_.Set(size);
  1900. }
  1901. const ::google::protobuf::Descriptor* rec_type::descriptor() {
  1902. ::protobuf_table_2eproto::protobuf_AssignDescriptorsOnce();
  1903. return ::protobuf_table_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1904. }
  1905. const rec_type& rec_type::default_instance() {
  1906. ::google::protobuf::internal::InitSCC(&protobuf_table_2eproto::scc_info_rec_type.base);
  1907. return *internal_default_instance();
  1908. }
  1909. void rec_type::Clear() {
  1910. // @@protoc_insertion_point(message_clear_start:rec_type)
  1911. ::google::protobuf::uint32 cached_has_bits = 0;
  1912. // Prevent compiler warnings about cached_has_bits being unused
  1913. (void) cached_has_bits;
  1914. types_.Clear();
  1915. _internal_metadata_.Clear();
  1916. }
  1917. bool rec_type::MergePartialFromCodedStream(
  1918. ::google::protobuf::io::CodedInputStream* input) {
  1919. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1920. ::google::protobuf::uint32 tag;
  1921. // @@protoc_insertion_point(parse_start:rec_type)
  1922. for (;;) {
  1923. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1924. tag = p.first;
  1925. if (!p.second) goto handle_unusual;
  1926. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1927. // repeated .tb_type types = 1;
  1928. case 1: {
  1929. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1930. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  1931. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1932. input, add_types()));
  1933. } else {
  1934. goto handle_unusual;
  1935. }
  1936. break;
  1937. }
  1938. default: {
  1939. handle_unusual:
  1940. if (tag == 0) {
  1941. goto success;
  1942. }
  1943. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1944. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1945. break;
  1946. }
  1947. }
  1948. }
  1949. success:
  1950. // @@protoc_insertion_point(parse_success:rec_type)
  1951. return true;
  1952. failure:
  1953. // @@protoc_insertion_point(parse_failure:rec_type)
  1954. return false;
  1955. #undef DO_
  1956. }
  1957. void rec_type::SerializeWithCachedSizes(
  1958. ::google::protobuf::io::CodedOutputStream* output) const {
  1959. // @@protoc_insertion_point(serialize_start:rec_type)
  1960. ::google::protobuf::uint32 cached_has_bits = 0;
  1961. (void) cached_has_bits;
  1962. // repeated .tb_type types = 1;
  1963. for (unsigned int i = 0,
  1964. n = static_cast<unsigned int>(this->types_size()); i < n; i++) {
  1965. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1966. 1,
  1967. this->types(static_cast<int>(i)),
  1968. output);
  1969. }
  1970. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  1971. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1972. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
  1973. }
  1974. // @@protoc_insertion_point(serialize_end:rec_type)
  1975. }
  1976. ::google::protobuf::uint8* rec_type::InternalSerializeWithCachedSizesToArray(
  1977. bool deterministic, ::google::protobuf::uint8* target) const {
  1978. (void)deterministic; // Unused
  1979. // @@protoc_insertion_point(serialize_to_array_start:rec_type)
  1980. ::google::protobuf::uint32 cached_has_bits = 0;
  1981. (void) cached_has_bits;
  1982. // repeated .tb_type types = 1;
  1983. for (unsigned int i = 0,
  1984. n = static_cast<unsigned int>(this->types_size()); i < n; i++) {
  1985. target = ::google::protobuf::internal::WireFormatLite::
  1986. InternalWriteMessageToArray(
  1987. 1, this->types(static_cast<int>(i)), deterministic, target);
  1988. }
  1989. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  1990. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1991. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
  1992. }
  1993. // @@protoc_insertion_point(serialize_to_array_end:rec_type)
  1994. return target;
  1995. }
  1996. size_t rec_type::ByteSizeLong() const {
  1997. // @@protoc_insertion_point(message_byte_size_start:rec_type)
  1998. size_t total_size = 0;
  1999. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  2000. total_size +=
  2001. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2002. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
  2003. }
  2004. // repeated .tb_type types = 1;
  2005. {
  2006. unsigned int count = static_cast<unsigned int>(this->types_size());
  2007. total_size += 1UL * count;
  2008. for (unsigned int i = 0; i < count; i++) {
  2009. total_size +=
  2010. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2011. this->types(static_cast<int>(i)));
  2012. }
  2013. }
  2014. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  2015. SetCachedSize(cached_size);
  2016. return total_size;
  2017. }
  2018. void rec_type::MergeFrom(const ::google::protobuf::Message& from) {
  2019. // @@protoc_insertion_point(generalized_merge_from_start:rec_type)
  2020. GOOGLE_DCHECK_NE(&from, this);
  2021. const rec_type* source =
  2022. ::google::protobuf::internal::DynamicCastToGenerated<const rec_type>(
  2023. &from);
  2024. if (source == NULL) {
  2025. // @@protoc_insertion_point(generalized_merge_from_cast_fail:rec_type)
  2026. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2027. } else {
  2028. // @@protoc_insertion_point(generalized_merge_from_cast_success:rec_type)
  2029. MergeFrom(*source);
  2030. }
  2031. }
  2032. void rec_type::MergeFrom(const rec_type& from) {
  2033. // @@protoc_insertion_point(class_specific_merge_from_start:rec_type)
  2034. GOOGLE_DCHECK_NE(&from, this);
  2035. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2036. ::google::protobuf::uint32 cached_has_bits = 0;
  2037. (void) cached_has_bits;
  2038. types_.MergeFrom(from.types_);
  2039. }
  2040. void rec_type::CopyFrom(const ::google::protobuf::Message& from) {
  2041. // @@protoc_insertion_point(generalized_copy_from_start:rec_type)
  2042. if (&from == this) return;
  2043. Clear();
  2044. MergeFrom(from);
  2045. }
  2046. void rec_type::CopyFrom(const rec_type& from) {
  2047. // @@protoc_insertion_point(class_specific_copy_from_start:rec_type)
  2048. if (&from == this) return;
  2049. Clear();
  2050. MergeFrom(from);
  2051. }
  2052. bool rec_type::IsInitialized() const {
  2053. return true;
  2054. }
  2055. void rec_type::Swap(rec_type* other) {
  2056. if (other == this) return;
  2057. InternalSwap(other);
  2058. }
  2059. void rec_type::InternalSwap(rec_type* other) {
  2060. using std::swap;
  2061. CastToBase(&types_)->InternalSwap(CastToBase(&other->types_));
  2062. _internal_metadata_.Swap(&other->_internal_metadata_);
  2063. }
  2064. ::google::protobuf::Metadata rec_type::GetMetadata() const {
  2065. protobuf_table_2eproto::protobuf_AssignDescriptorsOnce();
  2066. return ::protobuf_table_2eproto::file_level_metadata[kIndexInFileMessages];
  2067. }
  2068. // ===================================================================
  2069. void rec_reply::InitAsDefaultInstance() {
  2070. }
  2071. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  2072. const int rec_reply::kReplysFieldNumber;
  2073. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  2074. rec_reply::rec_reply()
  2075. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  2076. ::google::protobuf::internal::InitSCC(
  2077. &protobuf_table_2eproto::scc_info_rec_reply.base);
  2078. SharedCtor();
  2079. // @@protoc_insertion_point(constructor:rec_reply)
  2080. }
  2081. rec_reply::rec_reply(const rec_reply& from)
  2082. : ::google::protobuf::Message(),
  2083. _internal_metadata_(NULL),
  2084. replys_(from.replys_) {
  2085. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2086. // @@protoc_insertion_point(copy_constructor:rec_reply)
  2087. }
  2088. void rec_reply::SharedCtor() {
  2089. }
  2090. rec_reply::~rec_reply() {
  2091. // @@protoc_insertion_point(destructor:rec_reply)
  2092. SharedDtor();
  2093. }
  2094. void rec_reply::SharedDtor() {
  2095. }
  2096. void rec_reply::SetCachedSize(int size) const {
  2097. _cached_size_.Set(size);
  2098. }
  2099. const ::google::protobuf::Descriptor* rec_reply::descriptor() {
  2100. ::protobuf_table_2eproto::protobuf_AssignDescriptorsOnce();
  2101. return ::protobuf_table_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  2102. }
  2103. const rec_reply& rec_reply::default_instance() {
  2104. ::google::protobuf::internal::InitSCC(&protobuf_table_2eproto::scc_info_rec_reply.base);
  2105. return *internal_default_instance();
  2106. }
  2107. void rec_reply::Clear() {
  2108. // @@protoc_insertion_point(message_clear_start:rec_reply)
  2109. ::google::protobuf::uint32 cached_has_bits = 0;
  2110. // Prevent compiler warnings about cached_has_bits being unused
  2111. (void) cached_has_bits;
  2112. replys_.Clear();
  2113. _internal_metadata_.Clear();
  2114. }
  2115. bool rec_reply::MergePartialFromCodedStream(
  2116. ::google::protobuf::io::CodedInputStream* input) {
  2117. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  2118. ::google::protobuf::uint32 tag;
  2119. // @@protoc_insertion_point(parse_start:rec_reply)
  2120. for (;;) {
  2121. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  2122. tag = p.first;
  2123. if (!p.second) goto handle_unusual;
  2124. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2125. // repeated .tb_reply replys = 1;
  2126. case 1: {
  2127. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2128. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  2129. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  2130. input, add_replys()));
  2131. } else {
  2132. goto handle_unusual;
  2133. }
  2134. break;
  2135. }
  2136. default: {
  2137. handle_unusual:
  2138. if (tag == 0) {
  2139. goto success;
  2140. }
  2141. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2142. input, tag, _internal_metadata_.mutable_unknown_fields()));
  2143. break;
  2144. }
  2145. }
  2146. }
  2147. success:
  2148. // @@protoc_insertion_point(parse_success:rec_reply)
  2149. return true;
  2150. failure:
  2151. // @@protoc_insertion_point(parse_failure:rec_reply)
  2152. return false;
  2153. #undef DO_
  2154. }
  2155. void rec_reply::SerializeWithCachedSizes(
  2156. ::google::protobuf::io::CodedOutputStream* output) const {
  2157. // @@protoc_insertion_point(serialize_start:rec_reply)
  2158. ::google::protobuf::uint32 cached_has_bits = 0;
  2159. (void) cached_has_bits;
  2160. // repeated .tb_reply replys = 1;
  2161. for (unsigned int i = 0,
  2162. n = static_cast<unsigned int>(this->replys_size()); i < n; i++) {
  2163. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2164. 1,
  2165. this->replys(static_cast<int>(i)),
  2166. output);
  2167. }
  2168. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  2169. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2170. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
  2171. }
  2172. // @@protoc_insertion_point(serialize_end:rec_reply)
  2173. }
  2174. ::google::protobuf::uint8* rec_reply::InternalSerializeWithCachedSizesToArray(
  2175. bool deterministic, ::google::protobuf::uint8* target) const {
  2176. (void)deterministic; // Unused
  2177. // @@protoc_insertion_point(serialize_to_array_start:rec_reply)
  2178. ::google::protobuf::uint32 cached_has_bits = 0;
  2179. (void) cached_has_bits;
  2180. // repeated .tb_reply replys = 1;
  2181. for (unsigned int i = 0,
  2182. n = static_cast<unsigned int>(this->replys_size()); i < n; i++) {
  2183. target = ::google::protobuf::internal::WireFormatLite::
  2184. InternalWriteMessageToArray(
  2185. 1, this->replys(static_cast<int>(i)), deterministic, target);
  2186. }
  2187. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  2188. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2189. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
  2190. }
  2191. // @@protoc_insertion_point(serialize_to_array_end:rec_reply)
  2192. return target;
  2193. }
  2194. size_t rec_reply::ByteSizeLong() const {
  2195. // @@protoc_insertion_point(message_byte_size_start:rec_reply)
  2196. size_t total_size = 0;
  2197. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  2198. total_size +=
  2199. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2200. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
  2201. }
  2202. // repeated .tb_reply replys = 1;
  2203. {
  2204. unsigned int count = static_cast<unsigned int>(this->replys_size());
  2205. total_size += 1UL * count;
  2206. for (unsigned int i = 0; i < count; i++) {
  2207. total_size +=
  2208. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2209. this->replys(static_cast<int>(i)));
  2210. }
  2211. }
  2212. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  2213. SetCachedSize(cached_size);
  2214. return total_size;
  2215. }
  2216. void rec_reply::MergeFrom(const ::google::protobuf::Message& from) {
  2217. // @@protoc_insertion_point(generalized_merge_from_start:rec_reply)
  2218. GOOGLE_DCHECK_NE(&from, this);
  2219. const rec_reply* source =
  2220. ::google::protobuf::internal::DynamicCastToGenerated<const rec_reply>(
  2221. &from);
  2222. if (source == NULL) {
  2223. // @@protoc_insertion_point(generalized_merge_from_cast_fail:rec_reply)
  2224. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2225. } else {
  2226. // @@protoc_insertion_point(generalized_merge_from_cast_success:rec_reply)
  2227. MergeFrom(*source);
  2228. }
  2229. }
  2230. void rec_reply::MergeFrom(const rec_reply& from) {
  2231. // @@protoc_insertion_point(class_specific_merge_from_start:rec_reply)
  2232. GOOGLE_DCHECK_NE(&from, this);
  2233. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2234. ::google::protobuf::uint32 cached_has_bits = 0;
  2235. (void) cached_has_bits;
  2236. replys_.MergeFrom(from.replys_);
  2237. }
  2238. void rec_reply::CopyFrom(const ::google::protobuf::Message& from) {
  2239. // @@protoc_insertion_point(generalized_copy_from_start:rec_reply)
  2240. if (&from == this) return;
  2241. Clear();
  2242. MergeFrom(from);
  2243. }
  2244. void rec_reply::CopyFrom(const rec_reply& from) {
  2245. // @@protoc_insertion_point(class_specific_copy_from_start:rec_reply)
  2246. if (&from == this) return;
  2247. Clear();
  2248. MergeFrom(from);
  2249. }
  2250. bool rec_reply::IsInitialized() const {
  2251. return true;
  2252. }
  2253. void rec_reply::Swap(rec_reply* other) {
  2254. if (other == this) return;
  2255. InternalSwap(other);
  2256. }
  2257. void rec_reply::InternalSwap(rec_reply* other) {
  2258. using std::swap;
  2259. CastToBase(&replys_)->InternalSwap(CastToBase(&other->replys_));
  2260. _internal_metadata_.Swap(&other->_internal_metadata_);
  2261. }
  2262. ::google::protobuf::Metadata rec_reply::GetMetadata() const {
  2263. protobuf_table_2eproto::protobuf_AssignDescriptorsOnce();
  2264. return ::protobuf_table_2eproto::file_level_metadata[kIndexInFileMessages];
  2265. }
  2266. // ===================================================================
  2267. void view::InitAsDefaultInstance() {
  2268. ::_view_default_instance_._instance.get_mutable()->customer_ = const_cast< ::tb_customer*>(
  2269. ::tb_customer::internal_default_instance());
  2270. ::_view_default_instance_._instance.get_mutable()->types_ = const_cast< ::rec_type*>(
  2271. ::rec_type::internal_default_instance());
  2272. ::_view_default_instance_._instance.get_mutable()->replys_ = const_cast< ::rec_reply*>(
  2273. ::rec_reply::internal_default_instance());
  2274. }
  2275. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  2276. const int view::kCustomerFieldNumber;
  2277. const int view::kTypesFieldNumber;
  2278. const int view::kReplysFieldNumber;
  2279. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  2280. view::view()
  2281. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  2282. ::google::protobuf::internal::InitSCC(
  2283. &protobuf_table_2eproto::scc_info_view.base);
  2284. SharedCtor();
  2285. // @@protoc_insertion_point(constructor:view)
  2286. }
  2287. view::view(const view& from)
  2288. : ::google::protobuf::Message(),
  2289. _internal_metadata_(NULL) {
  2290. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2291. if (from.has_customer()) {
  2292. customer_ = new ::tb_customer(*from.customer_);
  2293. } else {
  2294. customer_ = NULL;
  2295. }
  2296. if (from.has_types()) {
  2297. types_ = new ::rec_type(*from.types_);
  2298. } else {
  2299. types_ = NULL;
  2300. }
  2301. if (from.has_replys()) {
  2302. replys_ = new ::rec_reply(*from.replys_);
  2303. } else {
  2304. replys_ = NULL;
  2305. }
  2306. // @@protoc_insertion_point(copy_constructor:view)
  2307. }
  2308. void view::SharedCtor() {
  2309. ::memset(&customer_, 0, static_cast<size_t>(
  2310. reinterpret_cast<char*>(&replys_) -
  2311. reinterpret_cast<char*>(&customer_)) + sizeof(replys_));
  2312. }
  2313. view::~view() {
  2314. // @@protoc_insertion_point(destructor:view)
  2315. SharedDtor();
  2316. }
  2317. void view::SharedDtor() {
  2318. if (this != internal_default_instance()) delete customer_;
  2319. if (this != internal_default_instance()) delete types_;
  2320. if (this != internal_default_instance()) delete replys_;
  2321. }
  2322. void view::SetCachedSize(int size) const {
  2323. _cached_size_.Set(size);
  2324. }
  2325. const ::google::protobuf::Descriptor* view::descriptor() {
  2326. ::protobuf_table_2eproto::protobuf_AssignDescriptorsOnce();
  2327. return ::protobuf_table_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  2328. }
  2329. const view& view::default_instance() {
  2330. ::google::protobuf::internal::InitSCC(&protobuf_table_2eproto::scc_info_view.base);
  2331. return *internal_default_instance();
  2332. }
  2333. void view::Clear() {
  2334. // @@protoc_insertion_point(message_clear_start:view)
  2335. ::google::protobuf::uint32 cached_has_bits = 0;
  2336. // Prevent compiler warnings about cached_has_bits being unused
  2337. (void) cached_has_bits;
  2338. if (GetArenaNoVirtual() == NULL && customer_ != NULL) {
  2339. delete customer_;
  2340. }
  2341. customer_ = NULL;
  2342. if (GetArenaNoVirtual() == NULL && types_ != NULL) {
  2343. delete types_;
  2344. }
  2345. types_ = NULL;
  2346. if (GetArenaNoVirtual() == NULL && replys_ != NULL) {
  2347. delete replys_;
  2348. }
  2349. replys_ = NULL;
  2350. _internal_metadata_.Clear();
  2351. }
  2352. bool view::MergePartialFromCodedStream(
  2353. ::google::protobuf::io::CodedInputStream* input) {
  2354. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  2355. ::google::protobuf::uint32 tag;
  2356. // @@protoc_insertion_point(parse_start:view)
  2357. for (;;) {
  2358. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  2359. tag = p.first;
  2360. if (!p.second) goto handle_unusual;
  2361. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2362. // .tb_customer customer = 1;
  2363. case 1: {
  2364. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2365. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  2366. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  2367. input, mutable_customer()));
  2368. } else {
  2369. goto handle_unusual;
  2370. }
  2371. break;
  2372. }
  2373. // .rec_type types = 2;
  2374. case 2: {
  2375. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2376. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  2377. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  2378. input, mutable_types()));
  2379. } else {
  2380. goto handle_unusual;
  2381. }
  2382. break;
  2383. }
  2384. // .rec_reply replys = 3;
  2385. case 3: {
  2386. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2387. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  2388. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  2389. input, mutable_replys()));
  2390. } else {
  2391. goto handle_unusual;
  2392. }
  2393. break;
  2394. }
  2395. default: {
  2396. handle_unusual:
  2397. if (tag == 0) {
  2398. goto success;
  2399. }
  2400. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2401. input, tag, _internal_metadata_.mutable_unknown_fields()));
  2402. break;
  2403. }
  2404. }
  2405. }
  2406. success:
  2407. // @@protoc_insertion_point(parse_success:view)
  2408. return true;
  2409. failure:
  2410. // @@protoc_insertion_point(parse_failure:view)
  2411. return false;
  2412. #undef DO_
  2413. }
  2414. void view::SerializeWithCachedSizes(
  2415. ::google::protobuf::io::CodedOutputStream* output) const {
  2416. // @@protoc_insertion_point(serialize_start:view)
  2417. ::google::protobuf::uint32 cached_has_bits = 0;
  2418. (void) cached_has_bits;
  2419. // .tb_customer customer = 1;
  2420. if (this->has_customer()) {
  2421. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2422. 1, this->_internal_customer(), output);
  2423. }
  2424. // .rec_type types = 2;
  2425. if (this->has_types()) {
  2426. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2427. 2, this->_internal_types(), output);
  2428. }
  2429. // .rec_reply replys = 3;
  2430. if (this->has_replys()) {
  2431. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2432. 3, this->_internal_replys(), output);
  2433. }
  2434. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  2435. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2436. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
  2437. }
  2438. // @@protoc_insertion_point(serialize_end:view)
  2439. }
  2440. ::google::protobuf::uint8* view::InternalSerializeWithCachedSizesToArray(
  2441. bool deterministic, ::google::protobuf::uint8* target) const {
  2442. (void)deterministic; // Unused
  2443. // @@protoc_insertion_point(serialize_to_array_start:view)
  2444. ::google::protobuf::uint32 cached_has_bits = 0;
  2445. (void) cached_has_bits;
  2446. // .tb_customer customer = 1;
  2447. if (this->has_customer()) {
  2448. target = ::google::protobuf::internal::WireFormatLite::
  2449. InternalWriteMessageToArray(
  2450. 1, this->_internal_customer(), deterministic, target);
  2451. }
  2452. // .rec_type types = 2;
  2453. if (this->has_types()) {
  2454. target = ::google::protobuf::internal::WireFormatLite::
  2455. InternalWriteMessageToArray(
  2456. 2, this->_internal_types(), deterministic, target);
  2457. }
  2458. // .rec_reply replys = 3;
  2459. if (this->has_replys()) {
  2460. target = ::google::protobuf::internal::WireFormatLite::
  2461. InternalWriteMessageToArray(
  2462. 3, this->_internal_replys(), deterministic, target);
  2463. }
  2464. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  2465. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2466. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
  2467. }
  2468. // @@protoc_insertion_point(serialize_to_array_end:view)
  2469. return target;
  2470. }
  2471. size_t view::ByteSizeLong() const {
  2472. // @@protoc_insertion_point(message_byte_size_start:view)
  2473. size_t total_size = 0;
  2474. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  2475. total_size +=
  2476. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2477. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
  2478. }
  2479. // .tb_customer customer = 1;
  2480. if (this->has_customer()) {
  2481. total_size += 1 +
  2482. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2483. *customer_);
  2484. }
  2485. // .rec_type types = 2;
  2486. if (this->has_types()) {
  2487. total_size += 1 +
  2488. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2489. *types_);
  2490. }
  2491. // .rec_reply replys = 3;
  2492. if (this->has_replys()) {
  2493. total_size += 1 +
  2494. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2495. *replys_);
  2496. }
  2497. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  2498. SetCachedSize(cached_size);
  2499. return total_size;
  2500. }
  2501. void view::MergeFrom(const ::google::protobuf::Message& from) {
  2502. // @@protoc_insertion_point(generalized_merge_from_start:view)
  2503. GOOGLE_DCHECK_NE(&from, this);
  2504. const view* source =
  2505. ::google::protobuf::internal::DynamicCastToGenerated<const view>(
  2506. &from);
  2507. if (source == NULL) {
  2508. // @@protoc_insertion_point(generalized_merge_from_cast_fail:view)
  2509. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2510. } else {
  2511. // @@protoc_insertion_point(generalized_merge_from_cast_success:view)
  2512. MergeFrom(*source);
  2513. }
  2514. }
  2515. void view::MergeFrom(const view& from) {
  2516. // @@protoc_insertion_point(class_specific_merge_from_start:view)
  2517. GOOGLE_DCHECK_NE(&from, this);
  2518. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2519. ::google::protobuf::uint32 cached_has_bits = 0;
  2520. (void) cached_has_bits;
  2521. if (from.has_customer()) {
  2522. mutable_customer()->::tb_customer::MergeFrom(from.customer());
  2523. }
  2524. if (from.has_types()) {
  2525. mutable_types()->::rec_type::MergeFrom(from.types());
  2526. }
  2527. if (from.has_replys()) {
  2528. mutable_replys()->::rec_reply::MergeFrom(from.replys());
  2529. }
  2530. }
  2531. void view::CopyFrom(const ::google::protobuf::Message& from) {
  2532. // @@protoc_insertion_point(generalized_copy_from_start:view)
  2533. if (&from == this) return;
  2534. Clear();
  2535. MergeFrom(from);
  2536. }
  2537. void view::CopyFrom(const view& from) {
  2538. // @@protoc_insertion_point(class_specific_copy_from_start:view)
  2539. if (&from == this) return;
  2540. Clear();
  2541. MergeFrom(from);
  2542. }
  2543. bool view::IsInitialized() const {
  2544. return true;
  2545. }
  2546. void view::Swap(view* other) {
  2547. if (other == this) return;
  2548. InternalSwap(other);
  2549. }
  2550. void view::InternalSwap(view* other) {
  2551. using std::swap;
  2552. swap(customer_, other->customer_);
  2553. swap(types_, other->types_);
  2554. swap(replys_, other->replys_);
  2555. _internal_metadata_.Swap(&other->_internal_metadata_);
  2556. }
  2557. ::google::protobuf::Metadata view::GetMetadata() const {
  2558. protobuf_table_2eproto::protobuf_AssignDescriptorsOnce();
  2559. return ::protobuf_table_2eproto::file_level_metadata[kIndexInFileMessages];
  2560. }
  2561. // @@protoc_insertion_point(namespace_scope)
  2562. namespace google {
  2563. namespace protobuf {
  2564. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::tb_customer* Arena::CreateMaybeMessage< ::tb_customer >(Arena* arena) {
  2565. return Arena::CreateInternal< ::tb_customer >(arena);
  2566. }
  2567. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::tb_type* Arena::CreateMaybeMessage< ::tb_type >(Arena* arena) {
  2568. return Arena::CreateInternal< ::tb_type >(arena);
  2569. }
  2570. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::tb_reply* Arena::CreateMaybeMessage< ::tb_reply >(Arena* arena) {
  2571. return Arena::CreateInternal< ::tb_reply >(arena);
  2572. }
  2573. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::rec_customer* Arena::CreateMaybeMessage< ::rec_customer >(Arena* arena) {
  2574. return Arena::CreateInternal< ::rec_customer >(arena);
  2575. }
  2576. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::rec_type* Arena::CreateMaybeMessage< ::rec_type >(Arena* arena) {
  2577. return Arena::CreateInternal< ::rec_type >(arena);
  2578. }
  2579. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::rec_reply* Arena::CreateMaybeMessage< ::rec_reply >(Arena* arena) {
  2580. return Arena::CreateInternal< ::rec_reply >(arena);
  2581. }
  2582. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::view* Arena::CreateMaybeMessage< ::view >(Arena* arena) {
  2583. return Arena::CreateInternal< ::view >(arena);
  2584. }
  2585. } // namespace protobuf
  2586. } // namespace google
  2587. // @@protoc_insertion_point(global_scope)