/tags/protobuf-gdc/test-cases/test.pro2.pb.h

http://d-protobuf.googlecode.com/ · C Header · 720 lines · 534 code · 131 blank · 55 comment · 10 complexity · 13d74bbdbd205f1adc4df8433e909a25 MD5 · raw file

  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. #ifndef PROTOBUF_test_2epro2__INCLUDED
  3. #define PROTOBUF_test_2epro2__INCLUDED
  4. #include <string>
  5. #include <google/protobuf/stubs/common.h>
  6. #if GOOGLE_PROTOBUF_VERSION < 2002000
  7. #error This file was generated by a newer version of protoc which is
  8. #error incompatible with your Protocol Buffer headers. Please update
  9. #error your headers.
  10. #endif
  11. #if 2002000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
  12. #error This file was generated by an older version of protoc which is
  13. #error incompatible with your Protocol Buffer headers. Please
  14. #error regenerate this file with a newer version of protoc.
  15. #endif
  16. #include <google/protobuf/generated_message_util.h>
  17. #include <google/protobuf/repeated_field.h>
  18. #include <google/protobuf/extension_set.h>
  19. #include <google/protobuf/generated_message_reflection.h>
  20. // Internal implementation detail -- do not call these.
  21. void protobuf_AddDesc_test_2epro2();
  22. void protobuf_AssignDesc_test_2epro2();
  23. void protobuf_ShutdownFile_test_2epro2();
  24. class ccc;
  25. class ccc2;
  26. class ccc2_ccc3;
  27. class ccc1;
  28. class ccc1_ccc3;
  29. enum ccc1_c {
  30. ccc1_c_FOO = 2,
  31. ccc1_c_BAR = 1
  32. };
  33. bool ccc1_c_IsValid(int value);
  34. const ccc1_c ccc1_c_c_MIN = ccc1_c_BAR;
  35. const ccc1_c ccc1_c_c_MAX = ccc1_c_FOO;
  36. const ::google::protobuf::EnumDescriptor* ccc1_c_descriptor();
  37. inline const ::std::string& ccc1_c_Name(ccc1_c value) {
  38. return ::google::protobuf::internal::NameOfEnum(
  39. ccc1_c_descriptor(), value);
  40. }
  41. inline bool ccc1_c_Parse(
  42. const ::std::string& name, ccc1_c* value) {
  43. return ::google::protobuf::internal::ParseNamedEnum<ccc1_c>(
  44. ccc1_c_descriptor(), name, value);
  45. }
  46. // ===================================================================
  47. class ccc : public ::google::protobuf::Message {
  48. public:
  49. ccc();
  50. virtual ~ccc();
  51. ccc(const ccc& from);
  52. inline ccc& operator=(const ccc& from) {
  53. CopyFrom(from);
  54. return *this;
  55. }
  56. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  57. return _unknown_fields_;
  58. }
  59. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  60. return &_unknown_fields_;
  61. }
  62. static const ::google::protobuf::Descriptor* descriptor();
  63. static const ccc& default_instance();
  64. void Swap(ccc* other);
  65. // implements Message ----------------------------------------------
  66. ccc* New() const;
  67. void CopyFrom(const ::google::protobuf::Message& from);
  68. void MergeFrom(const ::google::protobuf::Message& from);
  69. void CopyFrom(const ccc& from);
  70. void MergeFrom(const ccc& from);
  71. void Clear();
  72. bool IsInitialized() const;
  73. int ByteSize() const;
  74. bool MergePartialFromCodedStream(
  75. ::google::protobuf::io::CodedInputStream* input);
  76. void SerializeWithCachedSizes(
  77. ::google::protobuf::io::CodedOutputStream* output) const;
  78. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  79. int GetCachedSize() const { return _cached_size_; }
  80. private:
  81. void SharedCtor();
  82. void SharedDtor();
  83. void SetCachedSize(int size) const { _cached_size_ = size; }
  84. public:
  85. ::google::protobuf::Metadata GetMetadata() const;
  86. // nested types ----------------------------------------------------
  87. // accessors -------------------------------------------------------
  88. // optional int32 quersy = 3 [default = 18];
  89. inline bool has_quersy() const;
  90. inline void clear_quersy();
  91. static const int kQuersyFieldNumber = 3;
  92. inline ::google::protobuf::int32 quersy() const;
  93. inline void set_quersy(::google::protobuf::int32 value);
  94. private:
  95. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  96. mutable int _cached_size_;
  97. ::google::protobuf::int32 quersy_;
  98. friend void protobuf_AddDesc_test_2epro2();
  99. friend void protobuf_AssignDesc_test_2epro2();
  100. friend void protobuf_ShutdownFile_test_2epro2();
  101. ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
  102. // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
  103. inline bool _has_bit(int index) const {
  104. return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
  105. }
  106. inline void _set_bit(int index) {
  107. _has_bits_[index / 32] |= (1u << (index % 32));
  108. }
  109. inline void _clear_bit(int index) {
  110. _has_bits_[index / 32] &= ~(1u << (index % 32));
  111. }
  112. void InitAsDefaultInstance();
  113. static ccc* default_instance_;
  114. };
  115. // -------------------------------------------------------------------
  116. class ccc2_ccc3 : public ::google::protobuf::Message {
  117. public:
  118. ccc2_ccc3();
  119. virtual ~ccc2_ccc3();
  120. ccc2_ccc3(const ccc2_ccc3& from);
  121. inline ccc2_ccc3& operator=(const ccc2_ccc3& from) {
  122. CopyFrom(from);
  123. return *this;
  124. }
  125. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  126. return _unknown_fields_;
  127. }
  128. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  129. return &_unknown_fields_;
  130. }
  131. static const ::google::protobuf::Descriptor* descriptor();
  132. static const ccc2_ccc3& default_instance();
  133. void Swap(ccc2_ccc3* other);
  134. // implements Message ----------------------------------------------
  135. ccc2_ccc3* New() const;
  136. void CopyFrom(const ::google::protobuf::Message& from);
  137. void MergeFrom(const ::google::protobuf::Message& from);
  138. void CopyFrom(const ccc2_ccc3& from);
  139. void MergeFrom(const ccc2_ccc3& from);
  140. void Clear();
  141. bool IsInitialized() const;
  142. int ByteSize() const;
  143. bool MergePartialFromCodedStream(
  144. ::google::protobuf::io::CodedInputStream* input);
  145. void SerializeWithCachedSizes(
  146. ::google::protobuf::io::CodedOutputStream* output) const;
  147. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  148. int GetCachedSize() const { return _cached_size_; }
  149. private:
  150. void SharedCtor();
  151. void SharedDtor();
  152. void SetCachedSize(int size) const { _cached_size_ = size; }
  153. public:
  154. ::google::protobuf::Metadata GetMetadata() const;
  155. // nested types ----------------------------------------------------
  156. // accessors -------------------------------------------------------
  157. // optional bool quersyc = 1;
  158. inline bool has_quersyc() const;
  159. inline void clear_quersyc();
  160. static const int kQuersycFieldNumber = 1;
  161. inline bool quersyc() const;
  162. inline void set_quersyc(bool value);
  163. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(ccc2_ccc3)
  164. private:
  165. ::google::protobuf::internal::ExtensionSet _extensions_;
  166. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  167. mutable int _cached_size_;
  168. bool quersyc_;
  169. friend void protobuf_AddDesc_test_2epro2();
  170. friend void protobuf_AssignDesc_test_2epro2();
  171. friend void protobuf_ShutdownFile_test_2epro2();
  172. ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
  173. // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
  174. inline bool _has_bit(int index) const {
  175. return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
  176. }
  177. inline void _set_bit(int index) {
  178. _has_bits_[index / 32] |= (1u << (index % 32));
  179. }
  180. inline void _clear_bit(int index) {
  181. _has_bits_[index / 32] &= ~(1u << (index % 32));
  182. }
  183. void InitAsDefaultInstance();
  184. static ccc2_ccc3* default_instance_;
  185. };
  186. // -------------------------------------------------------------------
  187. class ccc2 : public ::google::protobuf::Message {
  188. public:
  189. ccc2();
  190. virtual ~ccc2();
  191. ccc2(const ccc2& from);
  192. inline ccc2& operator=(const ccc2& from) {
  193. CopyFrom(from);
  194. return *this;
  195. }
  196. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  197. return _unknown_fields_;
  198. }
  199. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  200. return &_unknown_fields_;
  201. }
  202. static const ::google::protobuf::Descriptor* descriptor();
  203. static const ccc2& default_instance();
  204. void Swap(ccc2* other);
  205. // implements Message ----------------------------------------------
  206. ccc2* New() const;
  207. void CopyFrom(const ::google::protobuf::Message& from);
  208. void MergeFrom(const ::google::protobuf::Message& from);
  209. void CopyFrom(const ccc2& from);
  210. void MergeFrom(const ccc2& from);
  211. void Clear();
  212. bool IsInitialized() const;
  213. int ByteSize() const;
  214. bool MergePartialFromCodedStream(
  215. ::google::protobuf::io::CodedInputStream* input);
  216. void SerializeWithCachedSizes(
  217. ::google::protobuf::io::CodedOutputStream* output) const;
  218. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  219. int GetCachedSize() const { return _cached_size_; }
  220. private:
  221. void SharedCtor();
  222. void SharedDtor();
  223. void SetCachedSize(int size) const { _cached_size_ = size; }
  224. public:
  225. ::google::protobuf::Metadata GetMetadata() const;
  226. // nested types ----------------------------------------------------
  227. typedef ccc2_ccc3 ccc3;
  228. // accessors -------------------------------------------------------
  229. // optional int32 quersyw = 3 [default = 18];
  230. inline bool has_quersyw() const;
  231. inline void clear_quersyw();
  232. static const int kQuersywFieldNumber = 3;
  233. inline ::google::protobuf::int32 quersyw() const;
  234. inline void set_quersyw(::google::protobuf::int32 value);
  235. // optional int64 quersyc = 1 [default = 18];
  236. inline bool has_quersyc() const;
  237. inline void clear_quersyc();
  238. static const int kQuersycFieldNumber = 1;
  239. inline ::google::protobuf::int64 quersyc() const;
  240. inline void set_quersyc(::google::protobuf::int64 value);
  241. static const int kQuersydFieldNumber = 10;
  242. static ::google::protobuf::internal::ExtensionIdentifier< ::ccc2_ccc3,
  243. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int64 >, 3, false >
  244. quersyd;
  245. static const int kQuersyFieldNumber = 11;
  246. static ::google::protobuf::internal::ExtensionIdentifier< ::ccc2_ccc3,
  247. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int64 >, 3, false >
  248. quersy;
  249. private:
  250. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  251. mutable int _cached_size_;
  252. ::google::protobuf::int32 quersyw_;
  253. ::google::protobuf::int64 quersyc_;
  254. friend void protobuf_AddDesc_test_2epro2();
  255. friend void protobuf_AssignDesc_test_2epro2();
  256. friend void protobuf_ShutdownFile_test_2epro2();
  257. ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
  258. // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
  259. inline bool _has_bit(int index) const {
  260. return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
  261. }
  262. inline void _set_bit(int index) {
  263. _has_bits_[index / 32] |= (1u << (index % 32));
  264. }
  265. inline void _clear_bit(int index) {
  266. _has_bits_[index / 32] &= ~(1u << (index % 32));
  267. }
  268. void InitAsDefaultInstance();
  269. static ccc2* default_instance_;
  270. };
  271. // -------------------------------------------------------------------
  272. class ccc1_ccc3 : public ::google::protobuf::Message {
  273. public:
  274. ccc1_ccc3();
  275. virtual ~ccc1_ccc3();
  276. ccc1_ccc3(const ccc1_ccc3& from);
  277. inline ccc1_ccc3& operator=(const ccc1_ccc3& from) {
  278. CopyFrom(from);
  279. return *this;
  280. }
  281. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  282. return _unknown_fields_;
  283. }
  284. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  285. return &_unknown_fields_;
  286. }
  287. static const ::google::protobuf::Descriptor* descriptor();
  288. static const ccc1_ccc3& default_instance();
  289. void Swap(ccc1_ccc3* other);
  290. // implements Message ----------------------------------------------
  291. ccc1_ccc3* New() const;
  292. void CopyFrom(const ::google::protobuf::Message& from);
  293. void MergeFrom(const ::google::protobuf::Message& from);
  294. void CopyFrom(const ccc1_ccc3& from);
  295. void MergeFrom(const ccc1_ccc3& from);
  296. void Clear();
  297. bool IsInitialized() const;
  298. int ByteSize() const;
  299. bool MergePartialFromCodedStream(
  300. ::google::protobuf::io::CodedInputStream* input);
  301. void SerializeWithCachedSizes(
  302. ::google::protobuf::io::CodedOutputStream* output) const;
  303. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  304. int GetCachedSize() const { return _cached_size_; }
  305. private:
  306. void SharedCtor();
  307. void SharedDtor();
  308. void SetCachedSize(int size) const { _cached_size_ = size; }
  309. public:
  310. ::google::protobuf::Metadata GetMetadata() const;
  311. // nested types ----------------------------------------------------
  312. // accessors -------------------------------------------------------
  313. // optional int64 quersyc = 1 [default = 18];
  314. inline bool has_quersyc() const;
  315. inline void clear_quersyc();
  316. static const int kQuersycFieldNumber = 1;
  317. inline ::google::protobuf::int64 quersyc() const;
  318. inline void set_quersyc(::google::protobuf::int64 value);
  319. // optional .ccc1.c quersyd = 4 [default = FOO];
  320. inline bool has_quersyd() const;
  321. inline void clear_quersyd();
  322. static const int kQuersydFieldNumber = 4;
  323. inline ::ccc1_c quersyd() const;
  324. inline void set_quersyd(::ccc1_c value);
  325. private:
  326. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  327. mutable int _cached_size_;
  328. ::google::protobuf::int64 quersyc_;
  329. int quersyd_;
  330. friend void protobuf_AddDesc_test_2epro2();
  331. friend void protobuf_AssignDesc_test_2epro2();
  332. friend void protobuf_ShutdownFile_test_2epro2();
  333. ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
  334. // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
  335. inline bool _has_bit(int index) const {
  336. return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
  337. }
  338. inline void _set_bit(int index) {
  339. _has_bits_[index / 32] |= (1u << (index % 32));
  340. }
  341. inline void _clear_bit(int index) {
  342. _has_bits_[index / 32] &= ~(1u << (index % 32));
  343. }
  344. void InitAsDefaultInstance();
  345. static ccc1_ccc3* default_instance_;
  346. };
  347. // -------------------------------------------------------------------
  348. class ccc1 : public ::google::protobuf::Message {
  349. public:
  350. ccc1();
  351. virtual ~ccc1();
  352. ccc1(const ccc1& from);
  353. inline ccc1& operator=(const ccc1& from) {
  354. CopyFrom(from);
  355. return *this;
  356. }
  357. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  358. return _unknown_fields_;
  359. }
  360. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  361. return &_unknown_fields_;
  362. }
  363. static const ::google::protobuf::Descriptor* descriptor();
  364. static const ccc1& default_instance();
  365. void Swap(ccc1* other);
  366. // implements Message ----------------------------------------------
  367. ccc1* New() const;
  368. void CopyFrom(const ::google::protobuf::Message& from);
  369. void MergeFrom(const ::google::protobuf::Message& from);
  370. void CopyFrom(const ccc1& from);
  371. void MergeFrom(const ccc1& from);
  372. void Clear();
  373. bool IsInitialized() const;
  374. int ByteSize() const;
  375. bool MergePartialFromCodedStream(
  376. ::google::protobuf::io::CodedInputStream* input);
  377. void SerializeWithCachedSizes(
  378. ::google::protobuf::io::CodedOutputStream* output) const;
  379. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  380. int GetCachedSize() const { return _cached_size_; }
  381. private:
  382. void SharedCtor();
  383. void SharedDtor();
  384. void SetCachedSize(int size) const { _cached_size_ = size; }
  385. public:
  386. ::google::protobuf::Metadata GetMetadata() const;
  387. // nested types ----------------------------------------------------
  388. typedef ccc1_ccc3 ccc3;
  389. typedef ccc1_c c;
  390. static const c FOO = ccc1_c_FOO;
  391. static const c BAR = ccc1_c_BAR;
  392. static inline bool c_IsValid(int value) {
  393. return ccc1_c_IsValid(value);
  394. }
  395. static const c c_MIN =
  396. ccc1_c_c_MIN;
  397. static const c c_MAX =
  398. ccc1_c_c_MAX;
  399. static inline const ::google::protobuf::EnumDescriptor*
  400. c_descriptor() {
  401. return ccc1_c_descriptor();
  402. }
  403. static inline const ::std::string& c_Name(c value) {
  404. return ccc1_c_Name(value);
  405. }
  406. static inline bool c_Parse(const ::std::string& name,
  407. c* value) {
  408. return ccc1_c_Parse(name, value);
  409. }
  410. // accessors -------------------------------------------------------
  411. // optional int32 quersy = 3 [default = 18];
  412. inline bool has_quersy() const;
  413. inline void clear_quersy();
  414. static const int kQuersyFieldNumber = 3;
  415. inline ::google::protobuf::int32 quersy() const;
  416. inline void set_quersy(::google::protobuf::int32 value);
  417. // optional .ccc1.ccc3 quersyv = 4;
  418. inline bool has_quersyv() const;
  419. inline void clear_quersyv();
  420. static const int kQuersyvFieldNumber = 4;
  421. inline const ::ccc1_ccc3& quersyv() const;
  422. inline ::ccc1_ccc3* mutable_quersyv();
  423. private:
  424. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  425. mutable int _cached_size_;
  426. ::google::protobuf::int32 quersy_;
  427. ::ccc1_ccc3* quersyv_;
  428. friend void protobuf_AddDesc_test_2epro2();
  429. friend void protobuf_AssignDesc_test_2epro2();
  430. friend void protobuf_ShutdownFile_test_2epro2();
  431. ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
  432. // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
  433. inline bool _has_bit(int index) const {
  434. return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
  435. }
  436. inline void _set_bit(int index) {
  437. _has_bits_[index / 32] |= (1u << (index % 32));
  438. }
  439. inline void _clear_bit(int index) {
  440. _has_bits_[index / 32] &= ~(1u << (index % 32));
  441. }
  442. void InitAsDefaultInstance();
  443. static ccc1* default_instance_;
  444. };
  445. // ===================================================================
  446. // ===================================================================
  447. // ===================================================================
  448. // ccc
  449. // optional int32 quersy = 3 [default = 18];
  450. inline bool ccc::has_quersy() const {
  451. return _has_bit(0);
  452. }
  453. inline void ccc::clear_quersy() {
  454. quersy_ = 18;
  455. _clear_bit(0);
  456. }
  457. inline ::google::protobuf::int32 ccc::quersy() const {
  458. return quersy_;
  459. }
  460. inline void ccc::set_quersy(::google::protobuf::int32 value) {
  461. _set_bit(0);
  462. quersy_ = value;
  463. }
  464. // -------------------------------------------------------------------
  465. // ccc2_ccc3
  466. // optional bool quersyc = 1;
  467. inline bool ccc2_ccc3::has_quersyc() const {
  468. return _has_bit(0);
  469. }
  470. inline void ccc2_ccc3::clear_quersyc() {
  471. quersyc_ = false;
  472. _clear_bit(0);
  473. }
  474. inline bool ccc2_ccc3::quersyc() const {
  475. return quersyc_;
  476. }
  477. inline void ccc2_ccc3::set_quersyc(bool value) {
  478. _set_bit(0);
  479. quersyc_ = value;
  480. }
  481. // -------------------------------------------------------------------
  482. // ccc2
  483. // optional int32 quersyw = 3 [default = 18];
  484. inline bool ccc2::has_quersyw() const {
  485. return _has_bit(0);
  486. }
  487. inline void ccc2::clear_quersyw() {
  488. quersyw_ = 18;
  489. _clear_bit(0);
  490. }
  491. inline ::google::protobuf::int32 ccc2::quersyw() const {
  492. return quersyw_;
  493. }
  494. inline void ccc2::set_quersyw(::google::protobuf::int32 value) {
  495. _set_bit(0);
  496. quersyw_ = value;
  497. }
  498. // optional int64 quersyc = 1 [default = 18];
  499. inline bool ccc2::has_quersyc() const {
  500. return _has_bit(1);
  501. }
  502. inline void ccc2::clear_quersyc() {
  503. quersyc_ = GOOGLE_LONGLONG(18);
  504. _clear_bit(1);
  505. }
  506. inline ::google::protobuf::int64 ccc2::quersyc() const {
  507. return quersyc_;
  508. }
  509. inline void ccc2::set_quersyc(::google::protobuf::int64 value) {
  510. _set_bit(1);
  511. quersyc_ = value;
  512. }
  513. // -------------------------------------------------------------------
  514. // ccc1_ccc3
  515. // optional int64 quersyc = 1 [default = 18];
  516. inline bool ccc1_ccc3::has_quersyc() const {
  517. return _has_bit(0);
  518. }
  519. inline void ccc1_ccc3::clear_quersyc() {
  520. quersyc_ = GOOGLE_LONGLONG(18);
  521. _clear_bit(0);
  522. }
  523. inline ::google::protobuf::int64 ccc1_ccc3::quersyc() const {
  524. return quersyc_;
  525. }
  526. inline void ccc1_ccc3::set_quersyc(::google::protobuf::int64 value) {
  527. _set_bit(0);
  528. quersyc_ = value;
  529. }
  530. // optional .ccc1.c quersyd = 4 [default = FOO];
  531. inline bool ccc1_ccc3::has_quersyd() const {
  532. return _has_bit(1);
  533. }
  534. inline void ccc1_ccc3::clear_quersyd() {
  535. quersyd_ = 2;
  536. _clear_bit(1);
  537. }
  538. inline ::ccc1_c ccc1_ccc3::quersyd() const {
  539. return static_cast< ::ccc1_c >(quersyd_);
  540. }
  541. inline void ccc1_ccc3::set_quersyd(::ccc1_c value) {
  542. GOOGLE_DCHECK(::ccc1_c_IsValid(value));
  543. _set_bit(1);
  544. quersyd_ = value;
  545. }
  546. // -------------------------------------------------------------------
  547. // ccc1
  548. // optional int32 quersy = 3 [default = 18];
  549. inline bool ccc1::has_quersy() const {
  550. return _has_bit(0);
  551. }
  552. inline void ccc1::clear_quersy() {
  553. quersy_ = 18;
  554. _clear_bit(0);
  555. }
  556. inline ::google::protobuf::int32 ccc1::quersy() const {
  557. return quersy_;
  558. }
  559. inline void ccc1::set_quersy(::google::protobuf::int32 value) {
  560. _set_bit(0);
  561. quersy_ = value;
  562. }
  563. // optional .ccc1.ccc3 quersyv = 4;
  564. inline bool ccc1::has_quersyv() const {
  565. return _has_bit(1);
  566. }
  567. inline void ccc1::clear_quersyv() {
  568. if (quersyv_ != NULL) quersyv_->::ccc1_ccc3::Clear();
  569. _clear_bit(1);
  570. }
  571. inline const ::ccc1_ccc3& ccc1::quersyv() const {
  572. return quersyv_ != NULL ? *quersyv_ : *default_instance_->quersyv_;
  573. }
  574. inline ::ccc1_ccc3* ccc1::mutable_quersyv() {
  575. _set_bit(1);
  576. if (quersyv_ == NULL) quersyv_ = new ::ccc1_ccc3;
  577. return quersyv_;
  578. }
  579. #ifndef SWIG
  580. namespace google {
  581. namespace protobuf {
  582. template <>
  583. inline const EnumDescriptor* GetEnumDescriptor< ::ccc1_c>() {
  584. return ::ccc1_c_descriptor();
  585. }
  586. } // namespace google
  587. } // namespace protobuf
  588. #endif // SWIG
  589. #endif // PROTOBUF_test_2epro2__INCLUDED