login.pb.cc 63 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: login.proto
  3. #include "login.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_login_2eproto {
  19. extern PROTOBUF_INTERNAL_EXPORT_protobuf_login_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_rdetail;
  20. extern PROTOBUF_INTERNAL_EXPORT_protobuf_login_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_rtype;
  21. } // namespace protobuf_login_2eproto
  22. class loginDefaultTypeInternal {
  23. public:
  24. ::google::protobuf::internal::ExplicitlyConstructed<login>
  25. _instance;
  26. } _login_default_instance_;
  27. class userInfoDefaultTypeInternal {
  28. public:
  29. ::google::protobuf::internal::ExplicitlyConstructed<userInfo>
  30. _instance;
  31. } _userInfo_default_instance_;
  32. class rtypeDefaultTypeInternal {
  33. public:
  34. ::google::protobuf::internal::ExplicitlyConstructed<rtype>
  35. _instance;
  36. } _rtype_default_instance_;
  37. class rdetailDefaultTypeInternal {
  38. public:
  39. ::google::protobuf::internal::ExplicitlyConstructed<rdetail>
  40. _instance;
  41. } _rdetail_default_instance_;
  42. namespace protobuf_login_2eproto {
  43. static void InitDefaultslogin() {
  44. GOOGLE_PROTOBUF_VERIFY_VERSION;
  45. {
  46. void* ptr = &::_login_default_instance_;
  47. new (ptr) ::login();
  48. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  49. }
  50. ::login::InitAsDefaultInstance();
  51. }
  52. ::google::protobuf::internal::SCCInfo<0> scc_info_login =
  53. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultslogin}, {}};
  54. static void InitDefaultsuserInfo() {
  55. GOOGLE_PROTOBUF_VERIFY_VERSION;
  56. {
  57. void* ptr = &::_userInfo_default_instance_;
  58. new (ptr) ::userInfo();
  59. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  60. }
  61. ::userInfo::InitAsDefaultInstance();
  62. }
  63. ::google::protobuf::internal::SCCInfo<1> scc_info_userInfo =
  64. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsuserInfo}, {
  65. &protobuf_login_2eproto::scc_info_rtype.base,}};
  66. static void InitDefaultsrtype() {
  67. GOOGLE_PROTOBUF_VERIFY_VERSION;
  68. {
  69. void* ptr = &::_rtype_default_instance_;
  70. new (ptr) ::rtype();
  71. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  72. }
  73. ::rtype::InitAsDefaultInstance();
  74. }
  75. ::google::protobuf::internal::SCCInfo<1> scc_info_rtype =
  76. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsrtype}, {
  77. &protobuf_login_2eproto::scc_info_rdetail.base,}};
  78. static void InitDefaultsrdetail() {
  79. GOOGLE_PROTOBUF_VERIFY_VERSION;
  80. {
  81. void* ptr = &::_rdetail_default_instance_;
  82. new (ptr) ::rdetail();
  83. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  84. }
  85. ::rdetail::InitAsDefaultInstance();
  86. }
  87. ::google::protobuf::internal::SCCInfo<0> scc_info_rdetail =
  88. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsrdetail}, {}};
  89. void InitDefaults() {
  90. ::google::protobuf::internal::InitSCC(&scc_info_login.base);
  91. ::google::protobuf::internal::InitSCC(&scc_info_userInfo.base);
  92. ::google::protobuf::internal::InitSCC(&scc_info_rtype.base);
  93. ::google::protobuf::internal::InitSCC(&scc_info_rdetail.base);
  94. }
  95. ::google::protobuf::Metadata file_level_metadata[4];
  96. const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  97. ~0u, // no _has_bits_
  98. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::login, _internal_metadata_),
  99. ~0u, // no _extensions_
  100. ~0u, // no _oneof_case_
  101. ~0u, // no _weak_field_map_
  102. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::login, phone_),
  103. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::login, passwrod_),
  104. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::login, macaddr_),
  105. ~0u, // no _has_bits_
  106. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::userInfo, _internal_metadata_),
  107. ~0u, // no _extensions_
  108. ~0u, // no _oneof_case_
  109. ~0u, // no _weak_field_map_
  110. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::userInfo, id_),
  111. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::userInfo, name_),
  112. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::userInfo, gender_),
  113. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::userInfo, phone_),
  114. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::userInfo, reply_),
  115. ~0u, // no _has_bits_
  116. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::rtype, _internal_metadata_),
  117. ~0u, // no _extensions_
  118. ~0u, // no _oneof_case_
  119. ~0u, // no _weak_field_map_
  120. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::rtype, id_),
  121. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::rtype, name_),
  122. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::rtype, detail_),
  123. ~0u, // no _has_bits_
  124. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::rdetail, _internal_metadata_),
  125. ~0u, // no _extensions_
  126. ~0u, // no _oneof_case_
  127. ~0u, // no _weak_field_map_
  128. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::rdetail, id_),
  129. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::rdetail, name_),
  130. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::rdetail, content_),
  131. };
  132. static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  133. { 0, -1, sizeof(::login)},
  134. { 8, -1, sizeof(::userInfo)},
  135. { 18, -1, sizeof(::rtype)},
  136. { 26, -1, sizeof(::rdetail)},
  137. };
  138. static ::google::protobuf::Message const * const file_default_instances[] = {
  139. reinterpret_cast<const ::google::protobuf::Message*>(&::_login_default_instance_),
  140. reinterpret_cast<const ::google::protobuf::Message*>(&::_userInfo_default_instance_),
  141. reinterpret_cast<const ::google::protobuf::Message*>(&::_rtype_default_instance_),
  142. reinterpret_cast<const ::google::protobuf::Message*>(&::_rdetail_default_instance_),
  143. };
  144. void protobuf_AssignDescriptors() {
  145. AddDescriptors();
  146. AssignDescriptors(
  147. "login.proto", schemas, file_default_instances, TableStruct::offsets,
  148. file_level_metadata, NULL, NULL);
  149. }
  150. void protobuf_AssignDescriptorsOnce() {
  151. static ::google::protobuf::internal::once_flag once;
  152. ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
  153. }
  154. void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
  155. void protobuf_RegisterTypes(const ::std::string&) {
  156. protobuf_AssignDescriptorsOnce();
  157. ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 4);
  158. }
  159. void AddDescriptorsImpl() {
  160. InitDefaults();
  161. static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  162. "\n\013login.proto\"9\n\005login\022\r\n\005phone\030\001 \001(\t\022\020\n"
  163. "\010passwrod\030\002 \001(\t\022\017\n\007macAddr\030\003 \001(\t\"Z\n\010user"
  164. "Info\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\016\n\006gender"
  165. "\030\003 \001(\010\022\r\n\005phone\030\004 \001(\t\022\025\n\005reply\030\005 \003(\0132\006.r"
  166. "type\";\n\005rtype\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022"
  167. "\030\n\006detail\030\003 \003(\0132\010.rdetail\"4\n\007rdetail\022\n\n\002"
  168. "id\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\017\n\007content\030\003 \001(\tb"
  169. "\006proto3"
  170. };
  171. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  172. descriptor, 287);
  173. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  174. "login.proto", &protobuf_RegisterTypes);
  175. }
  176. void AddDescriptors() {
  177. static ::google::protobuf::internal::once_flag once;
  178. ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
  179. }
  180. // Force AddDescriptors() to be called at dynamic initialization time.
  181. struct StaticDescriptorInitializer {
  182. StaticDescriptorInitializer() {
  183. AddDescriptors();
  184. }
  185. } static_descriptor_initializer;
  186. } // namespace protobuf_login_2eproto
  187. // ===================================================================
  188. void login::InitAsDefaultInstance() {
  189. }
  190. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  191. const int login::kPhoneFieldNumber;
  192. const int login::kPasswrodFieldNumber;
  193. const int login::kMacAddrFieldNumber;
  194. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  195. login::login()
  196. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  197. ::google::protobuf::internal::InitSCC(
  198. &protobuf_login_2eproto::scc_info_login.base);
  199. SharedCtor();
  200. // @@protoc_insertion_point(constructor:login)
  201. }
  202. login::login(const login& from)
  203. : ::google::protobuf::Message(),
  204. _internal_metadata_(NULL) {
  205. _internal_metadata_.MergeFrom(from._internal_metadata_);
  206. phone_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  207. if (from.phone().size() > 0) {
  208. phone_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.phone_);
  209. }
  210. passwrod_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  211. if (from.passwrod().size() > 0) {
  212. passwrod_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.passwrod_);
  213. }
  214. macaddr_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  215. if (from.macaddr().size() > 0) {
  216. macaddr_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.macaddr_);
  217. }
  218. // @@protoc_insertion_point(copy_constructor:login)
  219. }
  220. void login::SharedCtor() {
  221. phone_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  222. passwrod_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  223. macaddr_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  224. }
  225. login::~login() {
  226. // @@protoc_insertion_point(destructor:login)
  227. SharedDtor();
  228. }
  229. void login::SharedDtor() {
  230. phone_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  231. passwrod_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  232. macaddr_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  233. }
  234. void login::SetCachedSize(int size) const {
  235. _cached_size_.Set(size);
  236. }
  237. const ::google::protobuf::Descriptor* login::descriptor() {
  238. ::protobuf_login_2eproto::protobuf_AssignDescriptorsOnce();
  239. return ::protobuf_login_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  240. }
  241. const login& login::default_instance() {
  242. ::google::protobuf::internal::InitSCC(&protobuf_login_2eproto::scc_info_login.base);
  243. return *internal_default_instance();
  244. }
  245. void login::Clear() {
  246. // @@protoc_insertion_point(message_clear_start:login)
  247. ::google::protobuf::uint32 cached_has_bits = 0;
  248. // Prevent compiler warnings about cached_has_bits being unused
  249. (void) cached_has_bits;
  250. phone_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  251. passwrod_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  252. macaddr_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  253. _internal_metadata_.Clear();
  254. }
  255. bool login::MergePartialFromCodedStream(
  256. ::google::protobuf::io::CodedInputStream* input) {
  257. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  258. ::google::protobuf::uint32 tag;
  259. // @@protoc_insertion_point(parse_start:login)
  260. for (;;) {
  261. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  262. tag = p.first;
  263. if (!p.second) goto handle_unusual;
  264. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  265. // string phone = 1;
  266. case 1: {
  267. if (static_cast< ::google::protobuf::uint8>(tag) ==
  268. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  269. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  270. input, this->mutable_phone()));
  271. DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  272. this->phone().data(), static_cast<int>(this->phone().length()),
  273. ::google::protobuf::internal::WireFormatLite::PARSE,
  274. "login.phone"));
  275. } else {
  276. goto handle_unusual;
  277. }
  278. break;
  279. }
  280. // string passwrod = 2;
  281. case 2: {
  282. if (static_cast< ::google::protobuf::uint8>(tag) ==
  283. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  284. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  285. input, this->mutable_passwrod()));
  286. DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  287. this->passwrod().data(), static_cast<int>(this->passwrod().length()),
  288. ::google::protobuf::internal::WireFormatLite::PARSE,
  289. "login.passwrod"));
  290. } else {
  291. goto handle_unusual;
  292. }
  293. break;
  294. }
  295. // string macAddr = 3;
  296. case 3: {
  297. if (static_cast< ::google::protobuf::uint8>(tag) ==
  298. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  299. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  300. input, this->mutable_macaddr()));
  301. DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  302. this->macaddr().data(), static_cast<int>(this->macaddr().length()),
  303. ::google::protobuf::internal::WireFormatLite::PARSE,
  304. "login.macAddr"));
  305. } else {
  306. goto handle_unusual;
  307. }
  308. break;
  309. }
  310. default: {
  311. handle_unusual:
  312. if (tag == 0) {
  313. goto success;
  314. }
  315. DO_(::google::protobuf::internal::WireFormat::SkipField(
  316. input, tag, _internal_metadata_.mutable_unknown_fields()));
  317. break;
  318. }
  319. }
  320. }
  321. success:
  322. // @@protoc_insertion_point(parse_success:login)
  323. return true;
  324. failure:
  325. // @@protoc_insertion_point(parse_failure:login)
  326. return false;
  327. #undef DO_
  328. }
  329. void login::SerializeWithCachedSizes(
  330. ::google::protobuf::io::CodedOutputStream* output) const {
  331. // @@protoc_insertion_point(serialize_start:login)
  332. ::google::protobuf::uint32 cached_has_bits = 0;
  333. (void) cached_has_bits;
  334. // string phone = 1;
  335. if (this->phone().size() > 0) {
  336. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  337. this->phone().data(), static_cast<int>(this->phone().length()),
  338. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  339. "login.phone");
  340. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  341. 1, this->phone(), output);
  342. }
  343. // string passwrod = 2;
  344. if (this->passwrod().size() > 0) {
  345. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  346. this->passwrod().data(), static_cast<int>(this->passwrod().length()),
  347. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  348. "login.passwrod");
  349. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  350. 2, this->passwrod(), output);
  351. }
  352. // string macAddr = 3;
  353. if (this->macaddr().size() > 0) {
  354. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  355. this->macaddr().data(), static_cast<int>(this->macaddr().length()),
  356. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  357. "login.macAddr");
  358. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  359. 3, this->macaddr(), output);
  360. }
  361. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  362. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  363. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
  364. }
  365. // @@protoc_insertion_point(serialize_end:login)
  366. }
  367. ::google::protobuf::uint8* login::InternalSerializeWithCachedSizesToArray(
  368. bool deterministic, ::google::protobuf::uint8* target) const {
  369. (void)deterministic; // Unused
  370. // @@protoc_insertion_point(serialize_to_array_start:login)
  371. ::google::protobuf::uint32 cached_has_bits = 0;
  372. (void) cached_has_bits;
  373. // string phone = 1;
  374. if (this->phone().size() > 0) {
  375. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  376. this->phone().data(), static_cast<int>(this->phone().length()),
  377. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  378. "login.phone");
  379. target =
  380. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  381. 1, this->phone(), target);
  382. }
  383. // string passwrod = 2;
  384. if (this->passwrod().size() > 0) {
  385. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  386. this->passwrod().data(), static_cast<int>(this->passwrod().length()),
  387. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  388. "login.passwrod");
  389. target =
  390. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  391. 2, this->passwrod(), target);
  392. }
  393. // string macAddr = 3;
  394. if (this->macaddr().size() > 0) {
  395. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  396. this->macaddr().data(), static_cast<int>(this->macaddr().length()),
  397. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  398. "login.macAddr");
  399. target =
  400. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  401. 3, this->macaddr(), target);
  402. }
  403. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  404. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  405. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
  406. }
  407. // @@protoc_insertion_point(serialize_to_array_end:login)
  408. return target;
  409. }
  410. size_t login::ByteSizeLong() const {
  411. // @@protoc_insertion_point(message_byte_size_start:login)
  412. size_t total_size = 0;
  413. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  414. total_size +=
  415. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  416. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
  417. }
  418. // string phone = 1;
  419. if (this->phone().size() > 0) {
  420. total_size += 1 +
  421. ::google::protobuf::internal::WireFormatLite::StringSize(
  422. this->phone());
  423. }
  424. // string passwrod = 2;
  425. if (this->passwrod().size() > 0) {
  426. total_size += 1 +
  427. ::google::protobuf::internal::WireFormatLite::StringSize(
  428. this->passwrod());
  429. }
  430. // string macAddr = 3;
  431. if (this->macaddr().size() > 0) {
  432. total_size += 1 +
  433. ::google::protobuf::internal::WireFormatLite::StringSize(
  434. this->macaddr());
  435. }
  436. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  437. SetCachedSize(cached_size);
  438. return total_size;
  439. }
  440. void login::MergeFrom(const ::google::protobuf::Message& from) {
  441. // @@protoc_insertion_point(generalized_merge_from_start:login)
  442. GOOGLE_DCHECK_NE(&from, this);
  443. const login* source =
  444. ::google::protobuf::internal::DynamicCastToGenerated<const login>(
  445. &from);
  446. if (source == NULL) {
  447. // @@protoc_insertion_point(generalized_merge_from_cast_fail:login)
  448. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  449. } else {
  450. // @@protoc_insertion_point(generalized_merge_from_cast_success:login)
  451. MergeFrom(*source);
  452. }
  453. }
  454. void login::MergeFrom(const login& from) {
  455. // @@protoc_insertion_point(class_specific_merge_from_start:login)
  456. GOOGLE_DCHECK_NE(&from, this);
  457. _internal_metadata_.MergeFrom(from._internal_metadata_);
  458. ::google::protobuf::uint32 cached_has_bits = 0;
  459. (void) cached_has_bits;
  460. if (from.phone().size() > 0) {
  461. phone_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.phone_);
  462. }
  463. if (from.passwrod().size() > 0) {
  464. passwrod_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.passwrod_);
  465. }
  466. if (from.macaddr().size() > 0) {
  467. macaddr_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.macaddr_);
  468. }
  469. }
  470. void login::CopyFrom(const ::google::protobuf::Message& from) {
  471. // @@protoc_insertion_point(generalized_copy_from_start:login)
  472. if (&from == this) return;
  473. Clear();
  474. MergeFrom(from);
  475. }
  476. void login::CopyFrom(const login& from) {
  477. // @@protoc_insertion_point(class_specific_copy_from_start:login)
  478. if (&from == this) return;
  479. Clear();
  480. MergeFrom(from);
  481. }
  482. bool login::IsInitialized() const {
  483. return true;
  484. }
  485. void login::Swap(login* other) {
  486. if (other == this) return;
  487. InternalSwap(other);
  488. }
  489. void login::InternalSwap(login* other) {
  490. using std::swap;
  491. phone_.Swap(&other->phone_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  492. GetArenaNoVirtual());
  493. passwrod_.Swap(&other->passwrod_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  494. GetArenaNoVirtual());
  495. macaddr_.Swap(&other->macaddr_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  496. GetArenaNoVirtual());
  497. _internal_metadata_.Swap(&other->_internal_metadata_);
  498. }
  499. ::google::protobuf::Metadata login::GetMetadata() const {
  500. protobuf_login_2eproto::protobuf_AssignDescriptorsOnce();
  501. return ::protobuf_login_2eproto::file_level_metadata[kIndexInFileMessages];
  502. }
  503. // ===================================================================
  504. void userInfo::InitAsDefaultInstance() {
  505. }
  506. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  507. const int userInfo::kIdFieldNumber;
  508. const int userInfo::kNameFieldNumber;
  509. const int userInfo::kGenderFieldNumber;
  510. const int userInfo::kPhoneFieldNumber;
  511. const int userInfo::kReplyFieldNumber;
  512. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  513. userInfo::userInfo()
  514. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  515. ::google::protobuf::internal::InitSCC(
  516. &protobuf_login_2eproto::scc_info_userInfo.base);
  517. SharedCtor();
  518. // @@protoc_insertion_point(constructor:userInfo)
  519. }
  520. userInfo::userInfo(const userInfo& from)
  521. : ::google::protobuf::Message(),
  522. _internal_metadata_(NULL),
  523. reply_(from.reply_) {
  524. _internal_metadata_.MergeFrom(from._internal_metadata_);
  525. id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  526. if (from.id().size() > 0) {
  527. id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_);
  528. }
  529. name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  530. if (from.name().size() > 0) {
  531. name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
  532. }
  533. phone_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  534. if (from.phone().size() > 0) {
  535. phone_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.phone_);
  536. }
  537. gender_ = from.gender_;
  538. // @@protoc_insertion_point(copy_constructor:userInfo)
  539. }
  540. void userInfo::SharedCtor() {
  541. id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  542. name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  543. phone_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  544. gender_ = false;
  545. }
  546. userInfo::~userInfo() {
  547. // @@protoc_insertion_point(destructor:userInfo)
  548. SharedDtor();
  549. }
  550. void userInfo::SharedDtor() {
  551. id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  552. name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  553. phone_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  554. }
  555. void userInfo::SetCachedSize(int size) const {
  556. _cached_size_.Set(size);
  557. }
  558. const ::google::protobuf::Descriptor* userInfo::descriptor() {
  559. ::protobuf_login_2eproto::protobuf_AssignDescriptorsOnce();
  560. return ::protobuf_login_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  561. }
  562. const userInfo& userInfo::default_instance() {
  563. ::google::protobuf::internal::InitSCC(&protobuf_login_2eproto::scc_info_userInfo.base);
  564. return *internal_default_instance();
  565. }
  566. void userInfo::Clear() {
  567. // @@protoc_insertion_point(message_clear_start:userInfo)
  568. ::google::protobuf::uint32 cached_has_bits = 0;
  569. // Prevent compiler warnings about cached_has_bits being unused
  570. (void) cached_has_bits;
  571. reply_.Clear();
  572. id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  573. name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  574. phone_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  575. gender_ = false;
  576. _internal_metadata_.Clear();
  577. }
  578. bool userInfo::MergePartialFromCodedStream(
  579. ::google::protobuf::io::CodedInputStream* input) {
  580. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  581. ::google::protobuf::uint32 tag;
  582. // @@protoc_insertion_point(parse_start:userInfo)
  583. for (;;) {
  584. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  585. tag = p.first;
  586. if (!p.second) goto handle_unusual;
  587. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  588. // string id = 1;
  589. case 1: {
  590. if (static_cast< ::google::protobuf::uint8>(tag) ==
  591. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  592. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  593. input, this->mutable_id()));
  594. DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  595. this->id().data(), static_cast<int>(this->id().length()),
  596. ::google::protobuf::internal::WireFormatLite::PARSE,
  597. "userInfo.id"));
  598. } else {
  599. goto handle_unusual;
  600. }
  601. break;
  602. }
  603. // string name = 2;
  604. case 2: {
  605. if (static_cast< ::google::protobuf::uint8>(tag) ==
  606. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  607. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  608. input, this->mutable_name()));
  609. DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  610. this->name().data(), static_cast<int>(this->name().length()),
  611. ::google::protobuf::internal::WireFormatLite::PARSE,
  612. "userInfo.name"));
  613. } else {
  614. goto handle_unusual;
  615. }
  616. break;
  617. }
  618. // bool gender = 3;
  619. case 3: {
  620. if (static_cast< ::google::protobuf::uint8>(tag) ==
  621. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  622. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  623. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  624. input, &gender_)));
  625. } else {
  626. goto handle_unusual;
  627. }
  628. break;
  629. }
  630. // string phone = 4;
  631. case 4: {
  632. if (static_cast< ::google::protobuf::uint8>(tag) ==
  633. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  634. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  635. input, this->mutable_phone()));
  636. DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  637. this->phone().data(), static_cast<int>(this->phone().length()),
  638. ::google::protobuf::internal::WireFormatLite::PARSE,
  639. "userInfo.phone"));
  640. } else {
  641. goto handle_unusual;
  642. }
  643. break;
  644. }
  645. // repeated .rtype reply = 5;
  646. case 5: {
  647. if (static_cast< ::google::protobuf::uint8>(tag) ==
  648. static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
  649. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  650. input, add_reply()));
  651. } else {
  652. goto handle_unusual;
  653. }
  654. break;
  655. }
  656. default: {
  657. handle_unusual:
  658. if (tag == 0) {
  659. goto success;
  660. }
  661. DO_(::google::protobuf::internal::WireFormat::SkipField(
  662. input, tag, _internal_metadata_.mutable_unknown_fields()));
  663. break;
  664. }
  665. }
  666. }
  667. success:
  668. // @@protoc_insertion_point(parse_success:userInfo)
  669. return true;
  670. failure:
  671. // @@protoc_insertion_point(parse_failure:userInfo)
  672. return false;
  673. #undef DO_
  674. }
  675. void userInfo::SerializeWithCachedSizes(
  676. ::google::protobuf::io::CodedOutputStream* output) const {
  677. // @@protoc_insertion_point(serialize_start:userInfo)
  678. ::google::protobuf::uint32 cached_has_bits = 0;
  679. (void) cached_has_bits;
  680. // string id = 1;
  681. if (this->id().size() > 0) {
  682. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  683. this->id().data(), static_cast<int>(this->id().length()),
  684. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  685. "userInfo.id");
  686. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  687. 1, this->id(), output);
  688. }
  689. // string name = 2;
  690. if (this->name().size() > 0) {
  691. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  692. this->name().data(), static_cast<int>(this->name().length()),
  693. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  694. "userInfo.name");
  695. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  696. 2, this->name(), output);
  697. }
  698. // bool gender = 3;
  699. if (this->gender() != 0) {
  700. ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->gender(), output);
  701. }
  702. // string phone = 4;
  703. if (this->phone().size() > 0) {
  704. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  705. this->phone().data(), static_cast<int>(this->phone().length()),
  706. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  707. "userInfo.phone");
  708. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  709. 4, this->phone(), output);
  710. }
  711. // repeated .rtype reply = 5;
  712. for (unsigned int i = 0,
  713. n = static_cast<unsigned int>(this->reply_size()); i < n; i++) {
  714. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  715. 5,
  716. this->reply(static_cast<int>(i)),
  717. output);
  718. }
  719. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  720. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  721. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
  722. }
  723. // @@protoc_insertion_point(serialize_end:userInfo)
  724. }
  725. ::google::protobuf::uint8* userInfo::InternalSerializeWithCachedSizesToArray(
  726. bool deterministic, ::google::protobuf::uint8* target) const {
  727. (void)deterministic; // Unused
  728. // @@protoc_insertion_point(serialize_to_array_start:userInfo)
  729. ::google::protobuf::uint32 cached_has_bits = 0;
  730. (void) cached_has_bits;
  731. // string id = 1;
  732. if (this->id().size() > 0) {
  733. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  734. this->id().data(), static_cast<int>(this->id().length()),
  735. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  736. "userInfo.id");
  737. target =
  738. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  739. 1, this->id(), target);
  740. }
  741. // string name = 2;
  742. if (this->name().size() > 0) {
  743. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  744. this->name().data(), static_cast<int>(this->name().length()),
  745. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  746. "userInfo.name");
  747. target =
  748. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  749. 2, this->name(), target);
  750. }
  751. // bool gender = 3;
  752. if (this->gender() != 0) {
  753. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->gender(), target);
  754. }
  755. // string phone = 4;
  756. if (this->phone().size() > 0) {
  757. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  758. this->phone().data(), static_cast<int>(this->phone().length()),
  759. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  760. "userInfo.phone");
  761. target =
  762. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  763. 4, this->phone(), target);
  764. }
  765. // repeated .rtype reply = 5;
  766. for (unsigned int i = 0,
  767. n = static_cast<unsigned int>(this->reply_size()); i < n; i++) {
  768. target = ::google::protobuf::internal::WireFormatLite::
  769. InternalWriteMessageToArray(
  770. 5, this->reply(static_cast<int>(i)), deterministic, target);
  771. }
  772. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  773. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  774. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
  775. }
  776. // @@protoc_insertion_point(serialize_to_array_end:userInfo)
  777. return target;
  778. }
  779. size_t userInfo::ByteSizeLong() const {
  780. // @@protoc_insertion_point(message_byte_size_start:userInfo)
  781. size_t total_size = 0;
  782. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  783. total_size +=
  784. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  785. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
  786. }
  787. // repeated .rtype reply = 5;
  788. {
  789. unsigned int count = static_cast<unsigned int>(this->reply_size());
  790. total_size += 1UL * count;
  791. for (unsigned int i = 0; i < count; i++) {
  792. total_size +=
  793. ::google::protobuf::internal::WireFormatLite::MessageSize(
  794. this->reply(static_cast<int>(i)));
  795. }
  796. }
  797. // string id = 1;
  798. if (this->id().size() > 0) {
  799. total_size += 1 +
  800. ::google::protobuf::internal::WireFormatLite::StringSize(
  801. this->id());
  802. }
  803. // string name = 2;
  804. if (this->name().size() > 0) {
  805. total_size += 1 +
  806. ::google::protobuf::internal::WireFormatLite::StringSize(
  807. this->name());
  808. }
  809. // string phone = 4;
  810. if (this->phone().size() > 0) {
  811. total_size += 1 +
  812. ::google::protobuf::internal::WireFormatLite::StringSize(
  813. this->phone());
  814. }
  815. // bool gender = 3;
  816. if (this->gender() != 0) {
  817. total_size += 1 + 1;
  818. }
  819. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  820. SetCachedSize(cached_size);
  821. return total_size;
  822. }
  823. void userInfo::MergeFrom(const ::google::protobuf::Message& from) {
  824. // @@protoc_insertion_point(generalized_merge_from_start:userInfo)
  825. GOOGLE_DCHECK_NE(&from, this);
  826. const userInfo* source =
  827. ::google::protobuf::internal::DynamicCastToGenerated<const userInfo>(
  828. &from);
  829. if (source == NULL) {
  830. // @@protoc_insertion_point(generalized_merge_from_cast_fail:userInfo)
  831. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  832. } else {
  833. // @@protoc_insertion_point(generalized_merge_from_cast_success:userInfo)
  834. MergeFrom(*source);
  835. }
  836. }
  837. void userInfo::MergeFrom(const userInfo& from) {
  838. // @@protoc_insertion_point(class_specific_merge_from_start:userInfo)
  839. GOOGLE_DCHECK_NE(&from, this);
  840. _internal_metadata_.MergeFrom(from._internal_metadata_);
  841. ::google::protobuf::uint32 cached_has_bits = 0;
  842. (void) cached_has_bits;
  843. reply_.MergeFrom(from.reply_);
  844. if (from.id().size() > 0) {
  845. id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_);
  846. }
  847. if (from.name().size() > 0) {
  848. name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
  849. }
  850. if (from.phone().size() > 0) {
  851. phone_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.phone_);
  852. }
  853. if (from.gender() != 0) {
  854. set_gender(from.gender());
  855. }
  856. }
  857. void userInfo::CopyFrom(const ::google::protobuf::Message& from) {
  858. // @@protoc_insertion_point(generalized_copy_from_start:userInfo)
  859. if (&from == this) return;
  860. Clear();
  861. MergeFrom(from);
  862. }
  863. void userInfo::CopyFrom(const userInfo& from) {
  864. // @@protoc_insertion_point(class_specific_copy_from_start:userInfo)
  865. if (&from == this) return;
  866. Clear();
  867. MergeFrom(from);
  868. }
  869. bool userInfo::IsInitialized() const {
  870. return true;
  871. }
  872. void userInfo::Swap(userInfo* other) {
  873. if (other == this) return;
  874. InternalSwap(other);
  875. }
  876. void userInfo::InternalSwap(userInfo* other) {
  877. using std::swap;
  878. CastToBase(&reply_)->InternalSwap(CastToBase(&other->reply_));
  879. id_.Swap(&other->id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  880. GetArenaNoVirtual());
  881. name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  882. GetArenaNoVirtual());
  883. phone_.Swap(&other->phone_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  884. GetArenaNoVirtual());
  885. swap(gender_, other->gender_);
  886. _internal_metadata_.Swap(&other->_internal_metadata_);
  887. }
  888. ::google::protobuf::Metadata userInfo::GetMetadata() const {
  889. protobuf_login_2eproto::protobuf_AssignDescriptorsOnce();
  890. return ::protobuf_login_2eproto::file_level_metadata[kIndexInFileMessages];
  891. }
  892. // ===================================================================
  893. void rtype::InitAsDefaultInstance() {
  894. }
  895. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  896. const int rtype::kIdFieldNumber;
  897. const int rtype::kNameFieldNumber;
  898. const int rtype::kDetailFieldNumber;
  899. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  900. rtype::rtype()
  901. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  902. ::google::protobuf::internal::InitSCC(
  903. &protobuf_login_2eproto::scc_info_rtype.base);
  904. SharedCtor();
  905. // @@protoc_insertion_point(constructor:rtype)
  906. }
  907. rtype::rtype(const rtype& from)
  908. : ::google::protobuf::Message(),
  909. _internal_metadata_(NULL),
  910. detail_(from.detail_) {
  911. _internal_metadata_.MergeFrom(from._internal_metadata_);
  912. id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  913. if (from.id().size() > 0) {
  914. id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_);
  915. }
  916. name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  917. if (from.name().size() > 0) {
  918. name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
  919. }
  920. // @@protoc_insertion_point(copy_constructor:rtype)
  921. }
  922. void rtype::SharedCtor() {
  923. id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  924. name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  925. }
  926. rtype::~rtype() {
  927. // @@protoc_insertion_point(destructor:rtype)
  928. SharedDtor();
  929. }
  930. void rtype::SharedDtor() {
  931. id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  932. name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  933. }
  934. void rtype::SetCachedSize(int size) const {
  935. _cached_size_.Set(size);
  936. }
  937. const ::google::protobuf::Descriptor* rtype::descriptor() {
  938. ::protobuf_login_2eproto::protobuf_AssignDescriptorsOnce();
  939. return ::protobuf_login_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  940. }
  941. const rtype& rtype::default_instance() {
  942. ::google::protobuf::internal::InitSCC(&protobuf_login_2eproto::scc_info_rtype.base);
  943. return *internal_default_instance();
  944. }
  945. void rtype::Clear() {
  946. // @@protoc_insertion_point(message_clear_start:rtype)
  947. ::google::protobuf::uint32 cached_has_bits = 0;
  948. // Prevent compiler warnings about cached_has_bits being unused
  949. (void) cached_has_bits;
  950. detail_.Clear();
  951. id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  952. name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  953. _internal_metadata_.Clear();
  954. }
  955. bool rtype::MergePartialFromCodedStream(
  956. ::google::protobuf::io::CodedInputStream* input) {
  957. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  958. ::google::protobuf::uint32 tag;
  959. // @@protoc_insertion_point(parse_start:rtype)
  960. for (;;) {
  961. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  962. tag = p.first;
  963. if (!p.second) goto handle_unusual;
  964. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  965. // string id = 1;
  966. case 1: {
  967. if (static_cast< ::google::protobuf::uint8>(tag) ==
  968. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  969. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  970. input, this->mutable_id()));
  971. DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  972. this->id().data(), static_cast<int>(this->id().length()),
  973. ::google::protobuf::internal::WireFormatLite::PARSE,
  974. "rtype.id"));
  975. } else {
  976. goto handle_unusual;
  977. }
  978. break;
  979. }
  980. // string name = 2;
  981. case 2: {
  982. if (static_cast< ::google::protobuf::uint8>(tag) ==
  983. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  984. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  985. input, this->mutable_name()));
  986. DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  987. this->name().data(), static_cast<int>(this->name().length()),
  988. ::google::protobuf::internal::WireFormatLite::PARSE,
  989. "rtype.name"));
  990. } else {
  991. goto handle_unusual;
  992. }
  993. break;
  994. }
  995. // repeated .rdetail detail = 3;
  996. case 3: {
  997. if (static_cast< ::google::protobuf::uint8>(tag) ==
  998. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  999. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1000. input, add_detail()));
  1001. } else {
  1002. goto handle_unusual;
  1003. }
  1004. break;
  1005. }
  1006. default: {
  1007. handle_unusual:
  1008. if (tag == 0) {
  1009. goto success;
  1010. }
  1011. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1012. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1013. break;
  1014. }
  1015. }
  1016. }
  1017. success:
  1018. // @@protoc_insertion_point(parse_success:rtype)
  1019. return true;
  1020. failure:
  1021. // @@protoc_insertion_point(parse_failure:rtype)
  1022. return false;
  1023. #undef DO_
  1024. }
  1025. void rtype::SerializeWithCachedSizes(
  1026. ::google::protobuf::io::CodedOutputStream* output) const {
  1027. // @@protoc_insertion_point(serialize_start:rtype)
  1028. ::google::protobuf::uint32 cached_has_bits = 0;
  1029. (void) cached_has_bits;
  1030. // string id = 1;
  1031. if (this->id().size() > 0) {
  1032. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1033. this->id().data(), static_cast<int>(this->id().length()),
  1034. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  1035. "rtype.id");
  1036. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1037. 1, this->id(), output);
  1038. }
  1039. // string name = 2;
  1040. if (this->name().size() > 0) {
  1041. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1042. this->name().data(), static_cast<int>(this->name().length()),
  1043. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  1044. "rtype.name");
  1045. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1046. 2, this->name(), output);
  1047. }
  1048. // repeated .rdetail detail = 3;
  1049. for (unsigned int i = 0,
  1050. n = static_cast<unsigned int>(this->detail_size()); i < n; i++) {
  1051. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1052. 3,
  1053. this->detail(static_cast<int>(i)),
  1054. output);
  1055. }
  1056. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  1057. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1058. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
  1059. }
  1060. // @@protoc_insertion_point(serialize_end:rtype)
  1061. }
  1062. ::google::protobuf::uint8* rtype::InternalSerializeWithCachedSizesToArray(
  1063. bool deterministic, ::google::protobuf::uint8* target) const {
  1064. (void)deterministic; // Unused
  1065. // @@protoc_insertion_point(serialize_to_array_start:rtype)
  1066. ::google::protobuf::uint32 cached_has_bits = 0;
  1067. (void) cached_has_bits;
  1068. // string id = 1;
  1069. if (this->id().size() > 0) {
  1070. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1071. this->id().data(), static_cast<int>(this->id().length()),
  1072. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  1073. "rtype.id");
  1074. target =
  1075. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1076. 1, this->id(), target);
  1077. }
  1078. // string name = 2;
  1079. if (this->name().size() > 0) {
  1080. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1081. this->name().data(), static_cast<int>(this->name().length()),
  1082. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  1083. "rtype.name");
  1084. target =
  1085. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1086. 2, this->name(), target);
  1087. }
  1088. // repeated .rdetail detail = 3;
  1089. for (unsigned int i = 0,
  1090. n = static_cast<unsigned int>(this->detail_size()); i < n; i++) {
  1091. target = ::google::protobuf::internal::WireFormatLite::
  1092. InternalWriteMessageToArray(
  1093. 3, this->detail(static_cast<int>(i)), deterministic, target);
  1094. }
  1095. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  1096. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1097. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
  1098. }
  1099. // @@protoc_insertion_point(serialize_to_array_end:rtype)
  1100. return target;
  1101. }
  1102. size_t rtype::ByteSizeLong() const {
  1103. // @@protoc_insertion_point(message_byte_size_start:rtype)
  1104. size_t total_size = 0;
  1105. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  1106. total_size +=
  1107. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1108. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
  1109. }
  1110. // repeated .rdetail detail = 3;
  1111. {
  1112. unsigned int count = static_cast<unsigned int>(this->detail_size());
  1113. total_size += 1UL * count;
  1114. for (unsigned int i = 0; i < count; i++) {
  1115. total_size +=
  1116. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1117. this->detail(static_cast<int>(i)));
  1118. }
  1119. }
  1120. // string id = 1;
  1121. if (this->id().size() > 0) {
  1122. total_size += 1 +
  1123. ::google::protobuf::internal::WireFormatLite::StringSize(
  1124. this->id());
  1125. }
  1126. // string name = 2;
  1127. if (this->name().size() > 0) {
  1128. total_size += 1 +
  1129. ::google::protobuf::internal::WireFormatLite::StringSize(
  1130. this->name());
  1131. }
  1132. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1133. SetCachedSize(cached_size);
  1134. return total_size;
  1135. }
  1136. void rtype::MergeFrom(const ::google::protobuf::Message& from) {
  1137. // @@protoc_insertion_point(generalized_merge_from_start:rtype)
  1138. GOOGLE_DCHECK_NE(&from, this);
  1139. const rtype* source =
  1140. ::google::protobuf::internal::DynamicCastToGenerated<const rtype>(
  1141. &from);
  1142. if (source == NULL) {
  1143. // @@protoc_insertion_point(generalized_merge_from_cast_fail:rtype)
  1144. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1145. } else {
  1146. // @@protoc_insertion_point(generalized_merge_from_cast_success:rtype)
  1147. MergeFrom(*source);
  1148. }
  1149. }
  1150. void rtype::MergeFrom(const rtype& from) {
  1151. // @@protoc_insertion_point(class_specific_merge_from_start:rtype)
  1152. GOOGLE_DCHECK_NE(&from, this);
  1153. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1154. ::google::protobuf::uint32 cached_has_bits = 0;
  1155. (void) cached_has_bits;
  1156. detail_.MergeFrom(from.detail_);
  1157. if (from.id().size() > 0) {
  1158. id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_);
  1159. }
  1160. if (from.name().size() > 0) {
  1161. name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
  1162. }
  1163. }
  1164. void rtype::CopyFrom(const ::google::protobuf::Message& from) {
  1165. // @@protoc_insertion_point(generalized_copy_from_start:rtype)
  1166. if (&from == this) return;
  1167. Clear();
  1168. MergeFrom(from);
  1169. }
  1170. void rtype::CopyFrom(const rtype& from) {
  1171. // @@protoc_insertion_point(class_specific_copy_from_start:rtype)
  1172. if (&from == this) return;
  1173. Clear();
  1174. MergeFrom(from);
  1175. }
  1176. bool rtype::IsInitialized() const {
  1177. return true;
  1178. }
  1179. void rtype::Swap(rtype* other) {
  1180. if (other == this) return;
  1181. InternalSwap(other);
  1182. }
  1183. void rtype::InternalSwap(rtype* other) {
  1184. using std::swap;
  1185. CastToBase(&detail_)->InternalSwap(CastToBase(&other->detail_));
  1186. id_.Swap(&other->id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1187. GetArenaNoVirtual());
  1188. name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1189. GetArenaNoVirtual());
  1190. _internal_metadata_.Swap(&other->_internal_metadata_);
  1191. }
  1192. ::google::protobuf::Metadata rtype::GetMetadata() const {
  1193. protobuf_login_2eproto::protobuf_AssignDescriptorsOnce();
  1194. return ::protobuf_login_2eproto::file_level_metadata[kIndexInFileMessages];
  1195. }
  1196. // ===================================================================
  1197. void rdetail::InitAsDefaultInstance() {
  1198. }
  1199. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1200. const int rdetail::kIdFieldNumber;
  1201. const int rdetail::kNameFieldNumber;
  1202. const int rdetail::kContentFieldNumber;
  1203. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1204. rdetail::rdetail()
  1205. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1206. ::google::protobuf::internal::InitSCC(
  1207. &protobuf_login_2eproto::scc_info_rdetail.base);
  1208. SharedCtor();
  1209. // @@protoc_insertion_point(constructor:rdetail)
  1210. }
  1211. rdetail::rdetail(const rdetail& from)
  1212. : ::google::protobuf::Message(),
  1213. _internal_metadata_(NULL) {
  1214. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1215. id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1216. if (from.id().size() > 0) {
  1217. id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_);
  1218. }
  1219. name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1220. if (from.name().size() > 0) {
  1221. name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
  1222. }
  1223. content_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1224. if (from.content().size() > 0) {
  1225. content_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.content_);
  1226. }
  1227. // @@protoc_insertion_point(copy_constructor:rdetail)
  1228. }
  1229. void rdetail::SharedCtor() {
  1230. id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1231. name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1232. content_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1233. }
  1234. rdetail::~rdetail() {
  1235. // @@protoc_insertion_point(destructor:rdetail)
  1236. SharedDtor();
  1237. }
  1238. void rdetail::SharedDtor() {
  1239. id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1240. name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1241. content_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1242. }
  1243. void rdetail::SetCachedSize(int size) const {
  1244. _cached_size_.Set(size);
  1245. }
  1246. const ::google::protobuf::Descriptor* rdetail::descriptor() {
  1247. ::protobuf_login_2eproto::protobuf_AssignDescriptorsOnce();
  1248. return ::protobuf_login_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1249. }
  1250. const rdetail& rdetail::default_instance() {
  1251. ::google::protobuf::internal::InitSCC(&protobuf_login_2eproto::scc_info_rdetail.base);
  1252. return *internal_default_instance();
  1253. }
  1254. void rdetail::Clear() {
  1255. // @@protoc_insertion_point(message_clear_start:rdetail)
  1256. ::google::protobuf::uint32 cached_has_bits = 0;
  1257. // Prevent compiler warnings about cached_has_bits being unused
  1258. (void) cached_has_bits;
  1259. id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1260. name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1261. content_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1262. _internal_metadata_.Clear();
  1263. }
  1264. bool rdetail::MergePartialFromCodedStream(
  1265. ::google::protobuf::io::CodedInputStream* input) {
  1266. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1267. ::google::protobuf::uint32 tag;
  1268. // @@protoc_insertion_point(parse_start:rdetail)
  1269. for (;;) {
  1270. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1271. tag = p.first;
  1272. if (!p.second) goto handle_unusual;
  1273. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1274. // string id = 1;
  1275. case 1: {
  1276. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1277. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  1278. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1279. input, this->mutable_id()));
  1280. DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1281. this->id().data(), static_cast<int>(this->id().length()),
  1282. ::google::protobuf::internal::WireFormatLite::PARSE,
  1283. "rdetail.id"));
  1284. } else {
  1285. goto handle_unusual;
  1286. }
  1287. break;
  1288. }
  1289. // string name = 2;
  1290. case 2: {
  1291. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1292. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  1293. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1294. input, this->mutable_name()));
  1295. DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1296. this->name().data(), static_cast<int>(this->name().length()),
  1297. ::google::protobuf::internal::WireFormatLite::PARSE,
  1298. "rdetail.name"));
  1299. } else {
  1300. goto handle_unusual;
  1301. }
  1302. break;
  1303. }
  1304. // string content = 3;
  1305. case 3: {
  1306. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1307. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  1308. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1309. input, this->mutable_content()));
  1310. DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1311. this->content().data(), static_cast<int>(this->content().length()),
  1312. ::google::protobuf::internal::WireFormatLite::PARSE,
  1313. "rdetail.content"));
  1314. } else {
  1315. goto handle_unusual;
  1316. }
  1317. break;
  1318. }
  1319. default: {
  1320. handle_unusual:
  1321. if (tag == 0) {
  1322. goto success;
  1323. }
  1324. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1325. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1326. break;
  1327. }
  1328. }
  1329. }
  1330. success:
  1331. // @@protoc_insertion_point(parse_success:rdetail)
  1332. return true;
  1333. failure:
  1334. // @@protoc_insertion_point(parse_failure:rdetail)
  1335. return false;
  1336. #undef DO_
  1337. }
  1338. void rdetail::SerializeWithCachedSizes(
  1339. ::google::protobuf::io::CodedOutputStream* output) const {
  1340. // @@protoc_insertion_point(serialize_start:rdetail)
  1341. ::google::protobuf::uint32 cached_has_bits = 0;
  1342. (void) cached_has_bits;
  1343. // string id = 1;
  1344. if (this->id().size() > 0) {
  1345. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1346. this->id().data(), static_cast<int>(this->id().length()),
  1347. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  1348. "rdetail.id");
  1349. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1350. 1, this->id(), output);
  1351. }
  1352. // string name = 2;
  1353. if (this->name().size() > 0) {
  1354. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1355. this->name().data(), static_cast<int>(this->name().length()),
  1356. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  1357. "rdetail.name");
  1358. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1359. 2, this->name(), output);
  1360. }
  1361. // string content = 3;
  1362. if (this->content().size() > 0) {
  1363. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1364. this->content().data(), static_cast<int>(this->content().length()),
  1365. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  1366. "rdetail.content");
  1367. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1368. 3, this->content(), output);
  1369. }
  1370. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  1371. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1372. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
  1373. }
  1374. // @@protoc_insertion_point(serialize_end:rdetail)
  1375. }
  1376. ::google::protobuf::uint8* rdetail::InternalSerializeWithCachedSizesToArray(
  1377. bool deterministic, ::google::protobuf::uint8* target) const {
  1378. (void)deterministic; // Unused
  1379. // @@protoc_insertion_point(serialize_to_array_start:rdetail)
  1380. ::google::protobuf::uint32 cached_has_bits = 0;
  1381. (void) cached_has_bits;
  1382. // string id = 1;
  1383. if (this->id().size() > 0) {
  1384. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1385. this->id().data(), static_cast<int>(this->id().length()),
  1386. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  1387. "rdetail.id");
  1388. target =
  1389. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1390. 1, this->id(), target);
  1391. }
  1392. // string name = 2;
  1393. if (this->name().size() > 0) {
  1394. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1395. this->name().data(), static_cast<int>(this->name().length()),
  1396. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  1397. "rdetail.name");
  1398. target =
  1399. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1400. 2, this->name(), target);
  1401. }
  1402. // string content = 3;
  1403. if (this->content().size() > 0) {
  1404. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1405. this->content().data(), static_cast<int>(this->content().length()),
  1406. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  1407. "rdetail.content");
  1408. target =
  1409. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1410. 3, this->content(), target);
  1411. }
  1412. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  1413. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1414. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
  1415. }
  1416. // @@protoc_insertion_point(serialize_to_array_end:rdetail)
  1417. return target;
  1418. }
  1419. size_t rdetail::ByteSizeLong() const {
  1420. // @@protoc_insertion_point(message_byte_size_start:rdetail)
  1421. size_t total_size = 0;
  1422. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  1423. total_size +=
  1424. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1425. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
  1426. }
  1427. // string id = 1;
  1428. if (this->id().size() > 0) {
  1429. total_size += 1 +
  1430. ::google::protobuf::internal::WireFormatLite::StringSize(
  1431. this->id());
  1432. }
  1433. // string name = 2;
  1434. if (this->name().size() > 0) {
  1435. total_size += 1 +
  1436. ::google::protobuf::internal::WireFormatLite::StringSize(
  1437. this->name());
  1438. }
  1439. // string content = 3;
  1440. if (this->content().size() > 0) {
  1441. total_size += 1 +
  1442. ::google::protobuf::internal::WireFormatLite::StringSize(
  1443. this->content());
  1444. }
  1445. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1446. SetCachedSize(cached_size);
  1447. return total_size;
  1448. }
  1449. void rdetail::MergeFrom(const ::google::protobuf::Message& from) {
  1450. // @@protoc_insertion_point(generalized_merge_from_start:rdetail)
  1451. GOOGLE_DCHECK_NE(&from, this);
  1452. const rdetail* source =
  1453. ::google::protobuf::internal::DynamicCastToGenerated<const rdetail>(
  1454. &from);
  1455. if (source == NULL) {
  1456. // @@protoc_insertion_point(generalized_merge_from_cast_fail:rdetail)
  1457. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1458. } else {
  1459. // @@protoc_insertion_point(generalized_merge_from_cast_success:rdetail)
  1460. MergeFrom(*source);
  1461. }
  1462. }
  1463. void rdetail::MergeFrom(const rdetail& from) {
  1464. // @@protoc_insertion_point(class_specific_merge_from_start:rdetail)
  1465. GOOGLE_DCHECK_NE(&from, this);
  1466. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1467. ::google::protobuf::uint32 cached_has_bits = 0;
  1468. (void) cached_has_bits;
  1469. if (from.id().size() > 0) {
  1470. id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_);
  1471. }
  1472. if (from.name().size() > 0) {
  1473. name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
  1474. }
  1475. if (from.content().size() > 0) {
  1476. content_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.content_);
  1477. }
  1478. }
  1479. void rdetail::CopyFrom(const ::google::protobuf::Message& from) {
  1480. // @@protoc_insertion_point(generalized_copy_from_start:rdetail)
  1481. if (&from == this) return;
  1482. Clear();
  1483. MergeFrom(from);
  1484. }
  1485. void rdetail::CopyFrom(const rdetail& from) {
  1486. // @@protoc_insertion_point(class_specific_copy_from_start:rdetail)
  1487. if (&from == this) return;
  1488. Clear();
  1489. MergeFrom(from);
  1490. }
  1491. bool rdetail::IsInitialized() const {
  1492. return true;
  1493. }
  1494. void rdetail::Swap(rdetail* other) {
  1495. if (other == this) return;
  1496. InternalSwap(other);
  1497. }
  1498. void rdetail::InternalSwap(rdetail* other) {
  1499. using std::swap;
  1500. id_.Swap(&other->id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1501. GetArenaNoVirtual());
  1502. name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1503. GetArenaNoVirtual());
  1504. content_.Swap(&other->content_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1505. GetArenaNoVirtual());
  1506. _internal_metadata_.Swap(&other->_internal_metadata_);
  1507. }
  1508. ::google::protobuf::Metadata rdetail::GetMetadata() const {
  1509. protobuf_login_2eproto::protobuf_AssignDescriptorsOnce();
  1510. return ::protobuf_login_2eproto::file_level_metadata[kIndexInFileMessages];
  1511. }
  1512. // @@protoc_insertion_point(namespace_scope)
  1513. namespace google {
  1514. namespace protobuf {
  1515. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::login* Arena::CreateMaybeMessage< ::login >(Arena* arena) {
  1516. return Arena::CreateInternal< ::login >(arena);
  1517. }
  1518. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::userInfo* Arena::CreateMaybeMessage< ::userInfo >(Arena* arena) {
  1519. return Arena::CreateInternal< ::userInfo >(arena);
  1520. }
  1521. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::rtype* Arena::CreateMaybeMessage< ::rtype >(Arena* arena) {
  1522. return Arena::CreateInternal< ::rtype >(arena);
  1523. }
  1524. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::rdetail* Arena::CreateMaybeMessage< ::rdetail >(Arena* arena) {
  1525. return Arena::CreateInternal< ::rdetail >(arena);
  1526. }
  1527. } // namespace protobuf
  1528. } // namespace google
  1529. // @@protoc_insertion_point(global_scope)