/Example/Network/ProtoBuf/ProtoBuf/test.pb.h

http://iocpframework.googlecode.com/ · C Header · 720 lines · 579 code · 97 blank · 44 comment · 45 complexity · 9672762d1b81110ae688373b27b8079b MD5 · raw file

  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: test.proto
  3. #ifndef PROTOBUF_test_2eproto__INCLUDED
  4. #define PROTOBUF_test_2eproto__INCLUDED
  5. #include <string>
  6. #include <google/protobuf/stubs/common.h>
  7. #if GOOGLE_PROTOBUF_VERSION < 2004000
  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 2004001 < 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/generated_message_util.h>
  18. #include <google/protobuf/repeated_field.h>
  19. #include <google/protobuf/extension_set.h>
  20. #include <google/protobuf/generated_message_reflection.h>
  21. // @@protoc_insertion_point(includes)
  22. namespace muduo {
  23. // Internal implementation detail -- do not call these.
  24. void protobuf_AddDesc_test_2eproto();
  25. void protobuf_AssignDesc_test_2eproto();
  26. void protobuf_ShutdownFile_test_2eproto();
  27. class Query;
  28. class Answer;
  29. class Empty;
  30. // ===================================================================
  31. class Query : public ::google::protobuf::Message {
  32. public:
  33. Query();
  34. virtual ~Query();
  35. Query(const Query& from);
  36. inline Query& operator=(const Query& from) {
  37. CopyFrom(from);
  38. return *this;
  39. }
  40. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  41. return _unknown_fields_;
  42. }
  43. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  44. return &_unknown_fields_;
  45. }
  46. static const ::google::protobuf::Descriptor* descriptor();
  47. static const Query& default_instance();
  48. void Swap(Query* other);
  49. // implements Message ----------------------------------------------
  50. Query* New() const;
  51. void CopyFrom(const ::google::protobuf::Message& from);
  52. void MergeFrom(const ::google::protobuf::Message& from);
  53. void CopyFrom(const Query& from);
  54. void MergeFrom(const Query& from);
  55. void Clear();
  56. bool IsInitialized() const;
  57. int ByteSize() const;
  58. bool MergePartialFromCodedStream(
  59. ::google::protobuf::io::CodedInputStream* input);
  60. void SerializeWithCachedSizes(
  61. ::google::protobuf::io::CodedOutputStream* output) const;
  62. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  63. int GetCachedSize() const { return _cached_size_; }
  64. private:
  65. void SharedCtor();
  66. void SharedDtor();
  67. void SetCachedSize(int size) const;
  68. public:
  69. ::google::protobuf::Metadata GetMetadata() const;
  70. // nested types ----------------------------------------------------
  71. // accessors -------------------------------------------------------
  72. // required int64 id = 1;
  73. inline bool has_id() const;
  74. inline void clear_id();
  75. static const int kIdFieldNumber = 1;
  76. inline ::google::protobuf::int64 id() const;
  77. inline void set_id(::google::protobuf::int64 value);
  78. // required string questioner = 2;
  79. inline bool has_questioner() const;
  80. inline void clear_questioner();
  81. static const int kQuestionerFieldNumber = 2;
  82. inline const ::std::string& questioner() const;
  83. inline void set_questioner(const ::std::string& value);
  84. inline void set_questioner(const char* value);
  85. inline void set_questioner(const char* value, size_t size);
  86. inline ::std::string* mutable_questioner();
  87. inline ::std::string* release_questioner();
  88. // repeated string question = 3;
  89. inline int question_size() const;
  90. inline void clear_question();
  91. static const int kQuestionFieldNumber = 3;
  92. inline const ::std::string& question(int index) const;
  93. inline ::std::string* mutable_question(int index);
  94. inline void set_question(int index, const ::std::string& value);
  95. inline void set_question(int index, const char* value);
  96. inline void set_question(int index, const char* value, size_t size);
  97. inline ::std::string* add_question();
  98. inline void add_question(const ::std::string& value);
  99. inline void add_question(const char* value);
  100. inline void add_question(const char* value, size_t size);
  101. inline const ::google::protobuf::RepeatedPtrField< ::std::string>& question() const;
  102. inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_question();
  103. // @@protoc_insertion_point(class_scope:muduo.Query)
  104. private:
  105. inline void set_has_id();
  106. inline void clear_has_id();
  107. inline void set_has_questioner();
  108. inline void clear_has_questioner();
  109. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  110. ::google::protobuf::int64 id_;
  111. ::std::string* questioner_;
  112. ::google::protobuf::RepeatedPtrField< ::std::string> question_;
  113. mutable int _cached_size_;
  114. ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
  115. friend void protobuf_AddDesc_test_2eproto();
  116. friend void protobuf_AssignDesc_test_2eproto();
  117. friend void protobuf_ShutdownFile_test_2eproto();
  118. void InitAsDefaultInstance();
  119. static Query* default_instance_;
  120. };
  121. // -------------------------------------------------------------------
  122. class Answer : public ::google::protobuf::Message {
  123. public:
  124. Answer();
  125. virtual ~Answer();
  126. Answer(const Answer& from);
  127. inline Answer& operator=(const Answer& from) {
  128. CopyFrom(from);
  129. return *this;
  130. }
  131. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  132. return _unknown_fields_;
  133. }
  134. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  135. return &_unknown_fields_;
  136. }
  137. static const ::google::protobuf::Descriptor* descriptor();
  138. static const Answer& default_instance();
  139. void Swap(Answer* other);
  140. // implements Message ----------------------------------------------
  141. Answer* New() const;
  142. void CopyFrom(const ::google::protobuf::Message& from);
  143. void MergeFrom(const ::google::protobuf::Message& from);
  144. void CopyFrom(const Answer& from);
  145. void MergeFrom(const Answer& from);
  146. void Clear();
  147. bool IsInitialized() const;
  148. int ByteSize() const;
  149. bool MergePartialFromCodedStream(
  150. ::google::protobuf::io::CodedInputStream* input);
  151. void SerializeWithCachedSizes(
  152. ::google::protobuf::io::CodedOutputStream* output) const;
  153. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  154. int GetCachedSize() const { return _cached_size_; }
  155. private:
  156. void SharedCtor();
  157. void SharedDtor();
  158. void SetCachedSize(int size) const;
  159. public:
  160. ::google::protobuf::Metadata GetMetadata() const;
  161. // nested types ----------------------------------------------------
  162. // accessors -------------------------------------------------------
  163. // required int64 id = 1;
  164. inline bool has_id() const;
  165. inline void clear_id();
  166. static const int kIdFieldNumber = 1;
  167. inline ::google::protobuf::int64 id() const;
  168. inline void set_id(::google::protobuf::int64 value);
  169. // required string questioner = 2;
  170. inline bool has_questioner() const;
  171. inline void clear_questioner();
  172. static const int kQuestionerFieldNumber = 2;
  173. inline const ::std::string& questioner() const;
  174. inline void set_questioner(const ::std::string& value);
  175. inline void set_questioner(const char* value);
  176. inline void set_questioner(const char* value, size_t size);
  177. inline ::std::string* mutable_questioner();
  178. inline ::std::string* release_questioner();
  179. // required string answerer = 3;
  180. inline bool has_answerer() const;
  181. inline void clear_answerer();
  182. static const int kAnswererFieldNumber = 3;
  183. inline const ::std::string& answerer() const;
  184. inline void set_answerer(const ::std::string& value);
  185. inline void set_answerer(const char* value);
  186. inline void set_answerer(const char* value, size_t size);
  187. inline ::std::string* mutable_answerer();
  188. inline ::std::string* release_answerer();
  189. // repeated string solution = 4;
  190. inline int solution_size() const;
  191. inline void clear_solution();
  192. static const int kSolutionFieldNumber = 4;
  193. inline const ::std::string& solution(int index) const;
  194. inline ::std::string* mutable_solution(int index);
  195. inline void set_solution(int index, const ::std::string& value);
  196. inline void set_solution(int index, const char* value);
  197. inline void set_solution(int index, const char* value, size_t size);
  198. inline ::std::string* add_solution();
  199. inline void add_solution(const ::std::string& value);
  200. inline void add_solution(const char* value);
  201. inline void add_solution(const char* value, size_t size);
  202. inline const ::google::protobuf::RepeatedPtrField< ::std::string>& solution() const;
  203. inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_solution();
  204. // @@protoc_insertion_point(class_scope:muduo.Answer)
  205. private:
  206. inline void set_has_id();
  207. inline void clear_has_id();
  208. inline void set_has_questioner();
  209. inline void clear_has_questioner();
  210. inline void set_has_answerer();
  211. inline void clear_has_answerer();
  212. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  213. ::google::protobuf::int64 id_;
  214. ::std::string* questioner_;
  215. ::std::string* answerer_;
  216. ::google::protobuf::RepeatedPtrField< ::std::string> solution_;
  217. mutable int _cached_size_;
  218. ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32];
  219. friend void protobuf_AddDesc_test_2eproto();
  220. friend void protobuf_AssignDesc_test_2eproto();
  221. friend void protobuf_ShutdownFile_test_2eproto();
  222. void InitAsDefaultInstance();
  223. static Answer* default_instance_;
  224. };
  225. // -------------------------------------------------------------------
  226. class Empty : public ::google::protobuf::Message {
  227. public:
  228. Empty();
  229. virtual ~Empty();
  230. Empty(const Empty& from);
  231. inline Empty& operator=(const Empty& from) {
  232. CopyFrom(from);
  233. return *this;
  234. }
  235. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  236. return _unknown_fields_;
  237. }
  238. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  239. return &_unknown_fields_;
  240. }
  241. static const ::google::protobuf::Descriptor* descriptor();
  242. static const Empty& default_instance();
  243. void Swap(Empty* other);
  244. // implements Message ----------------------------------------------
  245. Empty* New() const;
  246. void CopyFrom(const ::google::protobuf::Message& from);
  247. void MergeFrom(const ::google::protobuf::Message& from);
  248. void CopyFrom(const Empty& from);
  249. void MergeFrom(const Empty& from);
  250. void Clear();
  251. bool IsInitialized() const;
  252. int ByteSize() const;
  253. bool MergePartialFromCodedStream(
  254. ::google::protobuf::io::CodedInputStream* input);
  255. void SerializeWithCachedSizes(
  256. ::google::protobuf::io::CodedOutputStream* output) const;
  257. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  258. int GetCachedSize() const { return _cached_size_; }
  259. private:
  260. void SharedCtor();
  261. void SharedDtor();
  262. void SetCachedSize(int size) const;
  263. public:
  264. ::google::protobuf::Metadata GetMetadata() const;
  265. // nested types ----------------------------------------------------
  266. // accessors -------------------------------------------------------
  267. // optional int32 id = 1;
  268. inline bool has_id() const;
  269. inline void clear_id();
  270. static const int kIdFieldNumber = 1;
  271. inline ::google::protobuf::int32 id() const;
  272. inline void set_id(::google::protobuf::int32 value);
  273. // @@protoc_insertion_point(class_scope:muduo.Empty)
  274. private:
  275. inline void set_has_id();
  276. inline void clear_has_id();
  277. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  278. ::google::protobuf::int32 id_;
  279. mutable int _cached_size_;
  280. ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
  281. friend void protobuf_AddDesc_test_2eproto();
  282. friend void protobuf_AssignDesc_test_2eproto();
  283. friend void protobuf_ShutdownFile_test_2eproto();
  284. void InitAsDefaultInstance();
  285. static Empty* default_instance_;
  286. };
  287. // ===================================================================
  288. // ===================================================================
  289. // Query
  290. // required int64 id = 1;
  291. inline bool Query::has_id() const {
  292. return (_has_bits_[0] & 0x00000001u) != 0;
  293. }
  294. inline void Query::set_has_id() {
  295. _has_bits_[0] |= 0x00000001u;
  296. }
  297. inline void Query::clear_has_id() {
  298. _has_bits_[0] &= ~0x00000001u;
  299. }
  300. inline void Query::clear_id() {
  301. id_ = GOOGLE_LONGLONG(0);
  302. clear_has_id();
  303. }
  304. inline ::google::protobuf::int64 Query::id() const {
  305. return id_;
  306. }
  307. inline void Query::set_id(::google::protobuf::int64 value) {
  308. set_has_id();
  309. id_ = value;
  310. }
  311. // required string questioner = 2;
  312. inline bool Query::has_questioner() const {
  313. return (_has_bits_[0] & 0x00000002u) != 0;
  314. }
  315. inline void Query::set_has_questioner() {
  316. _has_bits_[0] |= 0x00000002u;
  317. }
  318. inline void Query::clear_has_questioner() {
  319. _has_bits_[0] &= ~0x00000002u;
  320. }
  321. inline void Query::clear_questioner() {
  322. if (questioner_ != &::google::protobuf::internal::kEmptyString) {
  323. questioner_->clear();
  324. }
  325. clear_has_questioner();
  326. }
  327. inline const ::std::string& Query::questioner() const {
  328. return *questioner_;
  329. }
  330. inline void Query::set_questioner(const ::std::string& value) {
  331. set_has_questioner();
  332. if (questioner_ == &::google::protobuf::internal::kEmptyString) {
  333. questioner_ = new ::std::string;
  334. }
  335. questioner_->assign(value);
  336. }
  337. inline void Query::set_questioner(const char* value) {
  338. set_has_questioner();
  339. if (questioner_ == &::google::protobuf::internal::kEmptyString) {
  340. questioner_ = new ::std::string;
  341. }
  342. questioner_->assign(value);
  343. }
  344. inline void Query::set_questioner(const char* value, size_t size) {
  345. set_has_questioner();
  346. if (questioner_ == &::google::protobuf::internal::kEmptyString) {
  347. questioner_ = new ::std::string;
  348. }
  349. questioner_->assign(reinterpret_cast<const char*>(value), size);
  350. }
  351. inline ::std::string* Query::mutable_questioner() {
  352. set_has_questioner();
  353. if (questioner_ == &::google::protobuf::internal::kEmptyString) {
  354. questioner_ = new ::std::string;
  355. }
  356. return questioner_;
  357. }
  358. inline ::std::string* Query::release_questioner() {
  359. clear_has_questioner();
  360. if (questioner_ == &::google::protobuf::internal::kEmptyString) {
  361. return NULL;
  362. } else {
  363. ::std::string* temp = questioner_;
  364. questioner_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  365. return temp;
  366. }
  367. }
  368. // repeated string question = 3;
  369. inline int Query::question_size() const {
  370. return question_.size();
  371. }
  372. inline void Query::clear_question() {
  373. question_.Clear();
  374. }
  375. inline const ::std::string& Query::question(int index) const {
  376. return question_.Get(index);
  377. }
  378. inline ::std::string* Query::mutable_question(int index) {
  379. return question_.Mutable(index);
  380. }
  381. inline void Query::set_question(int index, const ::std::string& value) {
  382. question_.Mutable(index)->assign(value);
  383. }
  384. inline void Query::set_question(int index, const char* value) {
  385. question_.Mutable(index)->assign(value);
  386. }
  387. inline void Query::set_question(int index, const char* value, size_t size) {
  388. question_.Mutable(index)->assign(
  389. reinterpret_cast<const char*>(value), size);
  390. }
  391. inline ::std::string* Query::add_question() {
  392. return question_.Add();
  393. }
  394. inline void Query::add_question(const ::std::string& value) {
  395. question_.Add()->assign(value);
  396. }
  397. inline void Query::add_question(const char* value) {
  398. question_.Add()->assign(value);
  399. }
  400. inline void Query::add_question(const char* value, size_t size) {
  401. question_.Add()->assign(reinterpret_cast<const char*>(value), size);
  402. }
  403. inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
  404. Query::question() const {
  405. return question_;
  406. }
  407. inline ::google::protobuf::RepeatedPtrField< ::std::string>*
  408. Query::mutable_question() {
  409. return &question_;
  410. }
  411. // -------------------------------------------------------------------
  412. // Answer
  413. // required int64 id = 1;
  414. inline bool Answer::has_id() const {
  415. return (_has_bits_[0] & 0x00000001u) != 0;
  416. }
  417. inline void Answer::set_has_id() {
  418. _has_bits_[0] |= 0x00000001u;
  419. }
  420. inline void Answer::clear_has_id() {
  421. _has_bits_[0] &= ~0x00000001u;
  422. }
  423. inline void Answer::clear_id() {
  424. id_ = GOOGLE_LONGLONG(0);
  425. clear_has_id();
  426. }
  427. inline ::google::protobuf::int64 Answer::id() const {
  428. return id_;
  429. }
  430. inline void Answer::set_id(::google::protobuf::int64 value) {
  431. set_has_id();
  432. id_ = value;
  433. }
  434. // required string questioner = 2;
  435. inline bool Answer::has_questioner() const {
  436. return (_has_bits_[0] & 0x00000002u) != 0;
  437. }
  438. inline void Answer::set_has_questioner() {
  439. _has_bits_[0] |= 0x00000002u;
  440. }
  441. inline void Answer::clear_has_questioner() {
  442. _has_bits_[0] &= ~0x00000002u;
  443. }
  444. inline void Answer::clear_questioner() {
  445. if (questioner_ != &::google::protobuf::internal::kEmptyString) {
  446. questioner_->clear();
  447. }
  448. clear_has_questioner();
  449. }
  450. inline const ::std::string& Answer::questioner() const {
  451. return *questioner_;
  452. }
  453. inline void Answer::set_questioner(const ::std::string& value) {
  454. set_has_questioner();
  455. if (questioner_ == &::google::protobuf::internal::kEmptyString) {
  456. questioner_ = new ::std::string;
  457. }
  458. questioner_->assign(value);
  459. }
  460. inline void Answer::set_questioner(const char* value) {
  461. set_has_questioner();
  462. if (questioner_ == &::google::protobuf::internal::kEmptyString) {
  463. questioner_ = new ::std::string;
  464. }
  465. questioner_->assign(value);
  466. }
  467. inline void Answer::set_questioner(const char* value, size_t size) {
  468. set_has_questioner();
  469. if (questioner_ == &::google::protobuf::internal::kEmptyString) {
  470. questioner_ = new ::std::string;
  471. }
  472. questioner_->assign(reinterpret_cast<const char*>(value), size);
  473. }
  474. inline ::std::string* Answer::mutable_questioner() {
  475. set_has_questioner();
  476. if (questioner_ == &::google::protobuf::internal::kEmptyString) {
  477. questioner_ = new ::std::string;
  478. }
  479. return questioner_;
  480. }
  481. inline ::std::string* Answer::release_questioner() {
  482. clear_has_questioner();
  483. if (questioner_ == &::google::protobuf::internal::kEmptyString) {
  484. return NULL;
  485. } else {
  486. ::std::string* temp = questioner_;
  487. questioner_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  488. return temp;
  489. }
  490. }
  491. // required string answerer = 3;
  492. inline bool Answer::has_answerer() const {
  493. return (_has_bits_[0] & 0x00000004u) != 0;
  494. }
  495. inline void Answer::set_has_answerer() {
  496. _has_bits_[0] |= 0x00000004u;
  497. }
  498. inline void Answer::clear_has_answerer() {
  499. _has_bits_[0] &= ~0x00000004u;
  500. }
  501. inline void Answer::clear_answerer() {
  502. if (answerer_ != &::google::protobuf::internal::kEmptyString) {
  503. answerer_->clear();
  504. }
  505. clear_has_answerer();
  506. }
  507. inline const ::std::string& Answer::answerer() const {
  508. return *answerer_;
  509. }
  510. inline void Answer::set_answerer(const ::std::string& value) {
  511. set_has_answerer();
  512. if (answerer_ == &::google::protobuf::internal::kEmptyString) {
  513. answerer_ = new ::std::string;
  514. }
  515. answerer_->assign(value);
  516. }
  517. inline void Answer::set_answerer(const char* value) {
  518. set_has_answerer();
  519. if (answerer_ == &::google::protobuf::internal::kEmptyString) {
  520. answerer_ = new ::std::string;
  521. }
  522. answerer_->assign(value);
  523. }
  524. inline void Answer::set_answerer(const char* value, size_t size) {
  525. set_has_answerer();
  526. if (answerer_ == &::google::protobuf::internal::kEmptyString) {
  527. answerer_ = new ::std::string;
  528. }
  529. answerer_->assign(reinterpret_cast<const char*>(value), size);
  530. }
  531. inline ::std::string* Answer::mutable_answerer() {
  532. set_has_answerer();
  533. if (answerer_ == &::google::protobuf::internal::kEmptyString) {
  534. answerer_ = new ::std::string;
  535. }
  536. return answerer_;
  537. }
  538. inline ::std::string* Answer::release_answerer() {
  539. clear_has_answerer();
  540. if (answerer_ == &::google::protobuf::internal::kEmptyString) {
  541. return NULL;
  542. } else {
  543. ::std::string* temp = answerer_;
  544. answerer_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  545. return temp;
  546. }
  547. }
  548. // repeated string solution = 4;
  549. inline int Answer::solution_size() const {
  550. return solution_.size();
  551. }
  552. inline void Answer::clear_solution() {
  553. solution_.Clear();
  554. }
  555. inline const ::std::string& Answer::solution(int index) const {
  556. return solution_.Get(index);
  557. }
  558. inline ::std::string* Answer::mutable_solution(int index) {
  559. return solution_.Mutable(index);
  560. }
  561. inline void Answer::set_solution(int index, const ::std::string& value) {
  562. solution_.Mutable(index)->assign(value);
  563. }
  564. inline void Answer::set_solution(int index, const char* value) {
  565. solution_.Mutable(index)->assign(value);
  566. }
  567. inline void Answer::set_solution(int index, const char* value, size_t size) {
  568. solution_.Mutable(index)->assign(
  569. reinterpret_cast<const char*>(value), size);
  570. }
  571. inline ::std::string* Answer::add_solution() {
  572. return solution_.Add();
  573. }
  574. inline void Answer::add_solution(const ::std::string& value) {
  575. solution_.Add()->assign(value);
  576. }
  577. inline void Answer::add_solution(const char* value) {
  578. solution_.Add()->assign(value);
  579. }
  580. inline void Answer::add_solution(const char* value, size_t size) {
  581. solution_.Add()->assign(reinterpret_cast<const char*>(value), size);
  582. }
  583. inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
  584. Answer::solution() const {
  585. return solution_;
  586. }
  587. inline ::google::protobuf::RepeatedPtrField< ::std::string>*
  588. Answer::mutable_solution() {
  589. return &solution_;
  590. }
  591. // -------------------------------------------------------------------
  592. // Empty
  593. // optional int32 id = 1;
  594. inline bool Empty::has_id() const {
  595. return (_has_bits_[0] & 0x00000001u) != 0;
  596. }
  597. inline void Empty::set_has_id() {
  598. _has_bits_[0] |= 0x00000001u;
  599. }
  600. inline void Empty::clear_has_id() {
  601. _has_bits_[0] &= ~0x00000001u;
  602. }
  603. inline void Empty::clear_id() {
  604. id_ = 0;
  605. clear_has_id();
  606. }
  607. inline ::google::protobuf::int32 Empty::id() const {
  608. return id_;
  609. }
  610. inline void Empty::set_id(::google::protobuf::int32 value) {
  611. set_has_id();
  612. id_ = value;
  613. }
  614. // @@protoc_insertion_point(namespace_scope)
  615. } // namespace muduo
  616. #ifndef SWIG
  617. namespace google {
  618. namespace protobuf {
  619. } // namespace google
  620. } // namespace protobuf
  621. #endif // SWIG
  622. // @@protoc_insertion_point(global_scope)
  623. #endif // PROTOBUF_test_2eproto__INCLUDED