msg.pb.h 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: msg.proto
  3. #ifndef PROTOBUF_INCLUDED_msg_2eproto
  4. #define PROTOBUF_INCLUDED_msg_2eproto
  5. #include <string>
  6. #include <google/protobuf/stubs/common.h>
  7. #if GOOGLE_PROTOBUF_VERSION < 3006001
  8. #error This file was generated by a newer version of protoc which is
  9. #error incompatible with your Protocol Buffer headers. Please update
  10. #error your headers.
  11. #endif
  12. #if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
  13. #error This file was generated by an older version of protoc which is
  14. #error incompatible with your Protocol Buffer headers. Please
  15. #error regenerate this file with a newer version of protoc.
  16. #endif
  17. #include <google/protobuf/io/coded_stream.h>
  18. #include <google/protobuf/arena.h>
  19. #include <google/protobuf/arenastring.h>
  20. #include <google/protobuf/generated_message_table_driven.h>
  21. #include <google/protobuf/generated_message_util.h>
  22. #include <google/protobuf/inlined_string_field.h>
  23. #include <google/protobuf/metadata.h>
  24. #include <google/protobuf/message.h>
  25. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  26. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  27. #include <google/protobuf/unknown_field_set.h>
  28. // @@protoc_insertion_point(includes)
  29. #define PROTOBUF_INTERNAL_EXPORT_protobuf_msg_2eproto
  30. namespace protobuf_msg_2eproto {
  31. // Internal implementation detail -- do not use these members.
  32. struct TableStruct {
  33. static const ::google::protobuf::internal::ParseTableField entries[];
  34. static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
  35. static const ::google::protobuf::internal::ParseTable schema[2];
  36. static const ::google::protobuf::internal::FieldMetadata field_metadata[];
  37. static const ::google::protobuf::internal::SerializationTable serialization_table[];
  38. static const ::google::protobuf::uint32 offsets[];
  39. };
  40. void AddDescriptors();
  41. } // namespace protobuf_msg_2eproto
  42. class msg_login;
  43. class msg_loginDefaultTypeInternal;
  44. extern msg_loginDefaultTypeInternal _msg_login_default_instance_;
  45. class msg_register;
  46. class msg_registerDefaultTypeInternal;
  47. extern msg_registerDefaultTypeInternal _msg_register_default_instance_;
  48. namespace google {
  49. namespace protobuf {
  50. template<> ::msg_login* Arena::CreateMaybeMessage<::msg_login>(Arena*);
  51. template<> ::msg_register* Arena::CreateMaybeMessage<::msg_register>(Arena*);
  52. } // namespace protobuf
  53. } // namespace google
  54. // ===================================================================
  55. class msg_login : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:msg_login) */ {
  56. public:
  57. msg_login();
  58. virtual ~msg_login();
  59. msg_login(const msg_login& from);
  60. inline msg_login& operator=(const msg_login& from) {
  61. CopyFrom(from);
  62. return *this;
  63. }
  64. #if LANG_CXX11
  65. msg_login(msg_login&& from) noexcept
  66. : msg_login() {
  67. *this = ::std::move(from);
  68. }
  69. inline msg_login& operator=(msg_login&& from) noexcept {
  70. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  71. if (this != &from) InternalSwap(&from);
  72. } else {
  73. CopyFrom(from);
  74. }
  75. return *this;
  76. }
  77. #endif
  78. static const ::google::protobuf::Descriptor* descriptor();
  79. static const msg_login& default_instance();
  80. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  81. static inline const msg_login* internal_default_instance() {
  82. return reinterpret_cast<const msg_login*>(
  83. &_msg_login_default_instance_);
  84. }
  85. static constexpr int kIndexInFileMessages =
  86. 0;
  87. void Swap(msg_login* other);
  88. friend void swap(msg_login& a, msg_login& b) {
  89. a.Swap(&b);
  90. }
  91. // implements Message ----------------------------------------------
  92. inline msg_login* New() const final {
  93. return CreateMaybeMessage<msg_login>(NULL);
  94. }
  95. msg_login* New(::google::protobuf::Arena* arena) const final {
  96. return CreateMaybeMessage<msg_login>(arena);
  97. }
  98. void CopyFrom(const ::google::protobuf::Message& from) final;
  99. void MergeFrom(const ::google::protobuf::Message& from) final;
  100. void CopyFrom(const msg_login& from);
  101. void MergeFrom(const msg_login& from);
  102. void Clear() final;
  103. bool IsInitialized() const final;
  104. size_t ByteSizeLong() const final;
  105. bool MergePartialFromCodedStream(
  106. ::google::protobuf::io::CodedInputStream* input) final;
  107. void SerializeWithCachedSizes(
  108. ::google::protobuf::io::CodedOutputStream* output) const final;
  109. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  110. bool deterministic, ::google::protobuf::uint8* target) const final;
  111. int GetCachedSize() const final { return _cached_size_.Get(); }
  112. private:
  113. void SharedCtor();
  114. void SharedDtor();
  115. void SetCachedSize(int size) const final;
  116. void InternalSwap(msg_login* other);
  117. private:
  118. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  119. return NULL;
  120. }
  121. inline void* MaybeArenaPtr() const {
  122. return NULL;
  123. }
  124. public:
  125. ::google::protobuf::Metadata GetMetadata() const final;
  126. // nested types ----------------------------------------------------
  127. // accessors -------------------------------------------------------
  128. // string phone = 1;
  129. void clear_phone();
  130. static const int kPhoneFieldNumber = 1;
  131. const ::std::string& phone() const;
  132. void set_phone(const ::std::string& value);
  133. #if LANG_CXX11
  134. void set_phone(::std::string&& value);
  135. #endif
  136. void set_phone(const char* value);
  137. void set_phone(const char* value, size_t size);
  138. ::std::string* mutable_phone();
  139. ::std::string* release_phone();
  140. void set_allocated_phone(::std::string* phone);
  141. // string passwrod = 2;
  142. void clear_passwrod();
  143. static const int kPasswrodFieldNumber = 2;
  144. const ::std::string& passwrod() const;
  145. void set_passwrod(const ::std::string& value);
  146. #if LANG_CXX11
  147. void set_passwrod(::std::string&& value);
  148. #endif
  149. void set_passwrod(const char* value);
  150. void set_passwrod(const char* value, size_t size);
  151. ::std::string* mutable_passwrod();
  152. ::std::string* release_passwrod();
  153. void set_allocated_passwrod(::std::string* passwrod);
  154. // string system = 3;
  155. void clear_system();
  156. static const int kSystemFieldNumber = 3;
  157. const ::std::string& system() const;
  158. void set_system(const ::std::string& value);
  159. #if LANG_CXX11
  160. void set_system(::std::string&& value);
  161. #endif
  162. void set_system(const char* value);
  163. void set_system(const char* value, size_t size);
  164. ::std::string* mutable_system();
  165. ::std::string* release_system();
  166. void set_allocated_system(::std::string* system);
  167. // @@protoc_insertion_point(class_scope:msg_login)
  168. private:
  169. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  170. ::google::protobuf::internal::ArenaStringPtr phone_;
  171. ::google::protobuf::internal::ArenaStringPtr passwrod_;
  172. ::google::protobuf::internal::ArenaStringPtr system_;
  173. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  174. friend struct ::protobuf_msg_2eproto::TableStruct;
  175. };
  176. // -------------------------------------------------------------------
  177. class msg_register : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:msg_register) */ {
  178. public:
  179. msg_register();
  180. virtual ~msg_register();
  181. msg_register(const msg_register& from);
  182. inline msg_register& operator=(const msg_register& from) {
  183. CopyFrom(from);
  184. return *this;
  185. }
  186. #if LANG_CXX11
  187. msg_register(msg_register&& from) noexcept
  188. : msg_register() {
  189. *this = ::std::move(from);
  190. }
  191. inline msg_register& operator=(msg_register&& from) noexcept {
  192. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  193. if (this != &from) InternalSwap(&from);
  194. } else {
  195. CopyFrom(from);
  196. }
  197. return *this;
  198. }
  199. #endif
  200. static const ::google::protobuf::Descriptor* descriptor();
  201. static const msg_register& default_instance();
  202. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  203. static inline const msg_register* internal_default_instance() {
  204. return reinterpret_cast<const msg_register*>(
  205. &_msg_register_default_instance_);
  206. }
  207. static constexpr int kIndexInFileMessages =
  208. 1;
  209. void Swap(msg_register* other);
  210. friend void swap(msg_register& a, msg_register& b) {
  211. a.Swap(&b);
  212. }
  213. // implements Message ----------------------------------------------
  214. inline msg_register* New() const final {
  215. return CreateMaybeMessage<msg_register>(NULL);
  216. }
  217. msg_register* New(::google::protobuf::Arena* arena) const final {
  218. return CreateMaybeMessage<msg_register>(arena);
  219. }
  220. void CopyFrom(const ::google::protobuf::Message& from) final;
  221. void MergeFrom(const ::google::protobuf::Message& from) final;
  222. void CopyFrom(const msg_register& from);
  223. void MergeFrom(const msg_register& from);
  224. void Clear() final;
  225. bool IsInitialized() const final;
  226. size_t ByteSizeLong() const final;
  227. bool MergePartialFromCodedStream(
  228. ::google::protobuf::io::CodedInputStream* input) final;
  229. void SerializeWithCachedSizes(
  230. ::google::protobuf::io::CodedOutputStream* output) const final;
  231. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  232. bool deterministic, ::google::protobuf::uint8* target) const final;
  233. int GetCachedSize() const final { return _cached_size_.Get(); }
  234. private:
  235. void SharedCtor();
  236. void SharedDtor();
  237. void SetCachedSize(int size) const final;
  238. void InternalSwap(msg_register* other);
  239. private:
  240. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  241. return NULL;
  242. }
  243. inline void* MaybeArenaPtr() const {
  244. return NULL;
  245. }
  246. public:
  247. ::google::protobuf::Metadata GetMetadata() const final;
  248. // nested types ----------------------------------------------------
  249. // accessors -------------------------------------------------------
  250. // string phone = 1;
  251. void clear_phone();
  252. static const int kPhoneFieldNumber = 1;
  253. const ::std::string& phone() const;
  254. void set_phone(const ::std::string& value);
  255. #if LANG_CXX11
  256. void set_phone(::std::string&& value);
  257. #endif
  258. void set_phone(const char* value);
  259. void set_phone(const char* value, size_t size);
  260. ::std::string* mutable_phone();
  261. ::std::string* release_phone();
  262. void set_allocated_phone(::std::string* phone);
  263. // string name = 2;
  264. void clear_name();
  265. static const int kNameFieldNumber = 2;
  266. const ::std::string& name() const;
  267. void set_name(const ::std::string& value);
  268. #if LANG_CXX11
  269. void set_name(::std::string&& value);
  270. #endif
  271. void set_name(const char* value);
  272. void set_name(const char* value, size_t size);
  273. ::std::string* mutable_name();
  274. ::std::string* release_name();
  275. void set_allocated_name(::std::string* name);
  276. // string passwrod = 4;
  277. void clear_passwrod();
  278. static const int kPasswrodFieldNumber = 4;
  279. const ::std::string& passwrod() const;
  280. void set_passwrod(const ::std::string& value);
  281. #if LANG_CXX11
  282. void set_passwrod(::std::string&& value);
  283. #endif
  284. void set_passwrod(const char* value);
  285. void set_passwrod(const char* value, size_t size);
  286. ::std::string* mutable_passwrod();
  287. ::std::string* release_passwrod();
  288. void set_allocated_passwrod(::std::string* passwrod);
  289. // string vcode = 5;
  290. void clear_vcode();
  291. static const int kVcodeFieldNumber = 5;
  292. const ::std::string& vcode() const;
  293. void set_vcode(const ::std::string& value);
  294. #if LANG_CXX11
  295. void set_vcode(::std::string&& value);
  296. #endif
  297. void set_vcode(const char* value);
  298. void set_vcode(const char* value, size_t size);
  299. ::std::string* mutable_vcode();
  300. ::std::string* release_vcode();
  301. void set_allocated_vcode(::std::string* vcode);
  302. // bool gender = 3;
  303. void clear_gender();
  304. static const int kGenderFieldNumber = 3;
  305. bool gender() const;
  306. void set_gender(bool value);
  307. // @@protoc_insertion_point(class_scope:msg_register)
  308. private:
  309. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  310. ::google::protobuf::internal::ArenaStringPtr phone_;
  311. ::google::protobuf::internal::ArenaStringPtr name_;
  312. ::google::protobuf::internal::ArenaStringPtr passwrod_;
  313. ::google::protobuf::internal::ArenaStringPtr vcode_;
  314. bool gender_;
  315. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  316. friend struct ::protobuf_msg_2eproto::TableStruct;
  317. };
  318. // ===================================================================
  319. // ===================================================================
  320. #ifdef __GNUC__
  321. #pragma GCC diagnostic push
  322. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  323. #endif // __GNUC__
  324. // msg_login
  325. // string phone = 1;
  326. inline void msg_login::clear_phone() {
  327. phone_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  328. }
  329. inline const ::std::string& msg_login::phone() const {
  330. // @@protoc_insertion_point(field_get:msg_login.phone)
  331. return phone_.GetNoArena();
  332. }
  333. inline void msg_login::set_phone(const ::std::string& value) {
  334. phone_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  335. // @@protoc_insertion_point(field_set:msg_login.phone)
  336. }
  337. #if LANG_CXX11
  338. inline void msg_login::set_phone(::std::string&& value) {
  339. phone_.SetNoArena(
  340. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  341. // @@protoc_insertion_point(field_set_rvalue:msg_login.phone)
  342. }
  343. #endif
  344. inline void msg_login::set_phone(const char* value) {
  345. GOOGLE_DCHECK(value != NULL);
  346. phone_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  347. // @@protoc_insertion_point(field_set_char:msg_login.phone)
  348. }
  349. inline void msg_login::set_phone(const char* value, size_t size) {
  350. phone_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  351. ::std::string(reinterpret_cast<const char*>(value), size));
  352. // @@protoc_insertion_point(field_set_pointer:msg_login.phone)
  353. }
  354. inline ::std::string* msg_login::mutable_phone() {
  355. // @@protoc_insertion_point(field_mutable:msg_login.phone)
  356. return phone_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  357. }
  358. inline ::std::string* msg_login::release_phone() {
  359. // @@protoc_insertion_point(field_release:msg_login.phone)
  360. return phone_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  361. }
  362. inline void msg_login::set_allocated_phone(::std::string* phone) {
  363. if (phone != NULL) {
  364. } else {
  365. }
  366. phone_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), phone);
  367. // @@protoc_insertion_point(field_set_allocated:msg_login.phone)
  368. }
  369. // string passwrod = 2;
  370. inline void msg_login::clear_passwrod() {
  371. passwrod_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  372. }
  373. inline const ::std::string& msg_login::passwrod() const {
  374. // @@protoc_insertion_point(field_get:msg_login.passwrod)
  375. return passwrod_.GetNoArena();
  376. }
  377. inline void msg_login::set_passwrod(const ::std::string& value) {
  378. passwrod_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  379. // @@protoc_insertion_point(field_set:msg_login.passwrod)
  380. }
  381. #if LANG_CXX11
  382. inline void msg_login::set_passwrod(::std::string&& value) {
  383. passwrod_.SetNoArena(
  384. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  385. // @@protoc_insertion_point(field_set_rvalue:msg_login.passwrod)
  386. }
  387. #endif
  388. inline void msg_login::set_passwrod(const char* value) {
  389. GOOGLE_DCHECK(value != NULL);
  390. passwrod_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  391. // @@protoc_insertion_point(field_set_char:msg_login.passwrod)
  392. }
  393. inline void msg_login::set_passwrod(const char* value, size_t size) {
  394. passwrod_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  395. ::std::string(reinterpret_cast<const char*>(value), size));
  396. // @@protoc_insertion_point(field_set_pointer:msg_login.passwrod)
  397. }
  398. inline ::std::string* msg_login::mutable_passwrod() {
  399. // @@protoc_insertion_point(field_mutable:msg_login.passwrod)
  400. return passwrod_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  401. }
  402. inline ::std::string* msg_login::release_passwrod() {
  403. // @@protoc_insertion_point(field_release:msg_login.passwrod)
  404. return passwrod_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  405. }
  406. inline void msg_login::set_allocated_passwrod(::std::string* passwrod) {
  407. if (passwrod != NULL) {
  408. } else {
  409. }
  410. passwrod_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), passwrod);
  411. // @@protoc_insertion_point(field_set_allocated:msg_login.passwrod)
  412. }
  413. // string system = 3;
  414. inline void msg_login::clear_system() {
  415. system_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  416. }
  417. inline const ::std::string& msg_login::system() const {
  418. // @@protoc_insertion_point(field_get:msg_login.system)
  419. return system_.GetNoArena();
  420. }
  421. inline void msg_login::set_system(const ::std::string& value) {
  422. system_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  423. // @@protoc_insertion_point(field_set:msg_login.system)
  424. }
  425. #if LANG_CXX11
  426. inline void msg_login::set_system(::std::string&& value) {
  427. system_.SetNoArena(
  428. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  429. // @@protoc_insertion_point(field_set_rvalue:msg_login.system)
  430. }
  431. #endif
  432. inline void msg_login::set_system(const char* value) {
  433. GOOGLE_DCHECK(value != NULL);
  434. system_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  435. // @@protoc_insertion_point(field_set_char:msg_login.system)
  436. }
  437. inline void msg_login::set_system(const char* value, size_t size) {
  438. system_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  439. ::std::string(reinterpret_cast<const char*>(value), size));
  440. // @@protoc_insertion_point(field_set_pointer:msg_login.system)
  441. }
  442. inline ::std::string* msg_login::mutable_system() {
  443. // @@protoc_insertion_point(field_mutable:msg_login.system)
  444. return system_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  445. }
  446. inline ::std::string* msg_login::release_system() {
  447. // @@protoc_insertion_point(field_release:msg_login.system)
  448. return system_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  449. }
  450. inline void msg_login::set_allocated_system(::std::string* system) {
  451. if (system != NULL) {
  452. } else {
  453. }
  454. system_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), system);
  455. // @@protoc_insertion_point(field_set_allocated:msg_login.system)
  456. }
  457. // -------------------------------------------------------------------
  458. // msg_register
  459. // string phone = 1;
  460. inline void msg_register::clear_phone() {
  461. phone_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  462. }
  463. inline const ::std::string& msg_register::phone() const {
  464. // @@protoc_insertion_point(field_get:msg_register.phone)
  465. return phone_.GetNoArena();
  466. }
  467. inline void msg_register::set_phone(const ::std::string& value) {
  468. phone_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  469. // @@protoc_insertion_point(field_set:msg_register.phone)
  470. }
  471. #if LANG_CXX11
  472. inline void msg_register::set_phone(::std::string&& value) {
  473. phone_.SetNoArena(
  474. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  475. // @@protoc_insertion_point(field_set_rvalue:msg_register.phone)
  476. }
  477. #endif
  478. inline void msg_register::set_phone(const char* value) {
  479. GOOGLE_DCHECK(value != NULL);
  480. phone_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  481. // @@protoc_insertion_point(field_set_char:msg_register.phone)
  482. }
  483. inline void msg_register::set_phone(const char* value, size_t size) {
  484. phone_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  485. ::std::string(reinterpret_cast<const char*>(value), size));
  486. // @@protoc_insertion_point(field_set_pointer:msg_register.phone)
  487. }
  488. inline ::std::string* msg_register::mutable_phone() {
  489. // @@protoc_insertion_point(field_mutable:msg_register.phone)
  490. return phone_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  491. }
  492. inline ::std::string* msg_register::release_phone() {
  493. // @@protoc_insertion_point(field_release:msg_register.phone)
  494. return phone_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  495. }
  496. inline void msg_register::set_allocated_phone(::std::string* phone) {
  497. if (phone != NULL) {
  498. } else {
  499. }
  500. phone_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), phone);
  501. // @@protoc_insertion_point(field_set_allocated:msg_register.phone)
  502. }
  503. // string name = 2;
  504. inline void msg_register::clear_name() {
  505. name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  506. }
  507. inline const ::std::string& msg_register::name() const {
  508. // @@protoc_insertion_point(field_get:msg_register.name)
  509. return name_.GetNoArena();
  510. }
  511. inline void msg_register::set_name(const ::std::string& value) {
  512. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  513. // @@protoc_insertion_point(field_set:msg_register.name)
  514. }
  515. #if LANG_CXX11
  516. inline void msg_register::set_name(::std::string&& value) {
  517. name_.SetNoArena(
  518. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  519. // @@protoc_insertion_point(field_set_rvalue:msg_register.name)
  520. }
  521. #endif
  522. inline void msg_register::set_name(const char* value) {
  523. GOOGLE_DCHECK(value != NULL);
  524. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  525. // @@protoc_insertion_point(field_set_char:msg_register.name)
  526. }
  527. inline void msg_register::set_name(const char* value, size_t size) {
  528. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  529. ::std::string(reinterpret_cast<const char*>(value), size));
  530. // @@protoc_insertion_point(field_set_pointer:msg_register.name)
  531. }
  532. inline ::std::string* msg_register::mutable_name() {
  533. // @@protoc_insertion_point(field_mutable:msg_register.name)
  534. return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  535. }
  536. inline ::std::string* msg_register::release_name() {
  537. // @@protoc_insertion_point(field_release:msg_register.name)
  538. return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  539. }
  540. inline void msg_register::set_allocated_name(::std::string* name) {
  541. if (name != NULL) {
  542. } else {
  543. }
  544. name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
  545. // @@protoc_insertion_point(field_set_allocated:msg_register.name)
  546. }
  547. // bool gender = 3;
  548. inline void msg_register::clear_gender() {
  549. gender_ = false;
  550. }
  551. inline bool msg_register::gender() const {
  552. // @@protoc_insertion_point(field_get:msg_register.gender)
  553. return gender_;
  554. }
  555. inline void msg_register::set_gender(bool value) {
  556. gender_ = value;
  557. // @@protoc_insertion_point(field_set:msg_register.gender)
  558. }
  559. // string passwrod = 4;
  560. inline void msg_register::clear_passwrod() {
  561. passwrod_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  562. }
  563. inline const ::std::string& msg_register::passwrod() const {
  564. // @@protoc_insertion_point(field_get:msg_register.passwrod)
  565. return passwrod_.GetNoArena();
  566. }
  567. inline void msg_register::set_passwrod(const ::std::string& value) {
  568. passwrod_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  569. // @@protoc_insertion_point(field_set:msg_register.passwrod)
  570. }
  571. #if LANG_CXX11
  572. inline void msg_register::set_passwrod(::std::string&& value) {
  573. passwrod_.SetNoArena(
  574. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  575. // @@protoc_insertion_point(field_set_rvalue:msg_register.passwrod)
  576. }
  577. #endif
  578. inline void msg_register::set_passwrod(const char* value) {
  579. GOOGLE_DCHECK(value != NULL);
  580. passwrod_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  581. // @@protoc_insertion_point(field_set_char:msg_register.passwrod)
  582. }
  583. inline void msg_register::set_passwrod(const char* value, size_t size) {
  584. passwrod_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  585. ::std::string(reinterpret_cast<const char*>(value), size));
  586. // @@protoc_insertion_point(field_set_pointer:msg_register.passwrod)
  587. }
  588. inline ::std::string* msg_register::mutable_passwrod() {
  589. // @@protoc_insertion_point(field_mutable:msg_register.passwrod)
  590. return passwrod_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  591. }
  592. inline ::std::string* msg_register::release_passwrod() {
  593. // @@protoc_insertion_point(field_release:msg_register.passwrod)
  594. return passwrod_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  595. }
  596. inline void msg_register::set_allocated_passwrod(::std::string* passwrod) {
  597. if (passwrod != NULL) {
  598. } else {
  599. }
  600. passwrod_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), passwrod);
  601. // @@protoc_insertion_point(field_set_allocated:msg_register.passwrod)
  602. }
  603. // string vcode = 5;
  604. inline void msg_register::clear_vcode() {
  605. vcode_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  606. }
  607. inline const ::std::string& msg_register::vcode() const {
  608. // @@protoc_insertion_point(field_get:msg_register.vcode)
  609. return vcode_.GetNoArena();
  610. }
  611. inline void msg_register::set_vcode(const ::std::string& value) {
  612. vcode_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  613. // @@protoc_insertion_point(field_set:msg_register.vcode)
  614. }
  615. #if LANG_CXX11
  616. inline void msg_register::set_vcode(::std::string&& value) {
  617. vcode_.SetNoArena(
  618. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  619. // @@protoc_insertion_point(field_set_rvalue:msg_register.vcode)
  620. }
  621. #endif
  622. inline void msg_register::set_vcode(const char* value) {
  623. GOOGLE_DCHECK(value != NULL);
  624. vcode_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  625. // @@protoc_insertion_point(field_set_char:msg_register.vcode)
  626. }
  627. inline void msg_register::set_vcode(const char* value, size_t size) {
  628. vcode_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  629. ::std::string(reinterpret_cast<const char*>(value), size));
  630. // @@protoc_insertion_point(field_set_pointer:msg_register.vcode)
  631. }
  632. inline ::std::string* msg_register::mutable_vcode() {
  633. // @@protoc_insertion_point(field_mutable:msg_register.vcode)
  634. return vcode_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  635. }
  636. inline ::std::string* msg_register::release_vcode() {
  637. // @@protoc_insertion_point(field_release:msg_register.vcode)
  638. return vcode_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  639. }
  640. inline void msg_register::set_allocated_vcode(::std::string* vcode) {
  641. if (vcode != NULL) {
  642. } else {
  643. }
  644. vcode_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), vcode);
  645. // @@protoc_insertion_point(field_set_allocated:msg_register.vcode)
  646. }
  647. #ifdef __GNUC__
  648. #pragma GCC diagnostic pop
  649. #endif // __GNUC__
  650. // -------------------------------------------------------------------
  651. // @@protoc_insertion_point(namespace_scope)
  652. // @@protoc_insertion_point(global_scope)
  653. #endif // PROTOBUF_INCLUDED_msg_2eproto