/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
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- #ifndef PROTOBUF_test_2epro2__INCLUDED
- #define PROTOBUF_test_2epro2__INCLUDED
- #include <string>
- #include <google/protobuf/stubs/common.h>
- #if GOOGLE_PROTOBUF_VERSION < 2002000
- #error This file was generated by a newer version of protoc which is
- #error incompatible with your Protocol Buffer headers. Please update
- #error your headers.
- #endif
- #if 2002000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
- #error This file was generated by an older version of protoc which is
- #error incompatible with your Protocol Buffer headers. Please
- #error regenerate this file with a newer version of protoc.
- #endif
- #include <google/protobuf/generated_message_util.h>
- #include <google/protobuf/repeated_field.h>
- #include <google/protobuf/extension_set.h>
- #include <google/protobuf/generated_message_reflection.h>
- // Internal implementation detail -- do not call these.
- void protobuf_AddDesc_test_2epro2();
- void protobuf_AssignDesc_test_2epro2();
- void protobuf_ShutdownFile_test_2epro2();
- class ccc;
- class ccc2;
- class ccc2_ccc3;
- class ccc1;
- class ccc1_ccc3;
- enum ccc1_c {
- ccc1_c_FOO = 2,
- ccc1_c_BAR = 1
- };
- bool ccc1_c_IsValid(int value);
- const ccc1_c ccc1_c_c_MIN = ccc1_c_BAR;
- const ccc1_c ccc1_c_c_MAX = ccc1_c_FOO;
- const ::google::protobuf::EnumDescriptor* ccc1_c_descriptor();
- inline const ::std::string& ccc1_c_Name(ccc1_c value) {
- return ::google::protobuf::internal::NameOfEnum(
- ccc1_c_descriptor(), value);
- }
- inline bool ccc1_c_Parse(
- const ::std::string& name, ccc1_c* value) {
- return ::google::protobuf::internal::ParseNamedEnum<ccc1_c>(
- ccc1_c_descriptor(), name, value);
- }
- // ===================================================================
- class ccc : public ::google::protobuf::Message {
- public:
- ccc();
- virtual ~ccc();
-
- ccc(const ccc& from);
-
- inline ccc& operator=(const ccc& from) {
- CopyFrom(from);
- return *this;
- }
-
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
- }
-
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
- }
-
- static const ::google::protobuf::Descriptor* descriptor();
- static const ccc& default_instance();
- void Swap(ccc* other);
-
- // implements Message ----------------------------------------------
-
- ccc* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
- void CopyFrom(const ccc& from);
- void MergeFrom(const ccc& from);
- void Clear();
- bool IsInitialized() const;
-
- int ByteSize() const;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const { _cached_size_ = size; }
- public:
-
- ::google::protobuf::Metadata GetMetadata() const;
-
- // nested types ----------------------------------------------------
-
- // accessors -------------------------------------------------------
-
- // optional int32 quersy = 3 [default = 18];
- inline bool has_quersy() const;
- inline void clear_quersy();
- static const int kQuersyFieldNumber = 3;
- inline ::google::protobuf::int32 quersy() const;
- inline void set_quersy(::google::protobuf::int32 value);
-
- private:
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
- mutable int _cached_size_;
-
- ::google::protobuf::int32 quersy_;
- friend void protobuf_AddDesc_test_2epro2();
- friend void protobuf_AssignDesc_test_2epro2();
- friend void protobuf_ShutdownFile_test_2epro2();
-
- ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
-
- // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
- inline bool _has_bit(int index) const {
- return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
- }
- inline void _set_bit(int index) {
- _has_bits_[index / 32] |= (1u << (index % 32));
- }
- inline void _clear_bit(int index) {
- _has_bits_[index / 32] &= ~(1u << (index % 32));
- }
-
- void InitAsDefaultInstance();
- static ccc* default_instance_;
- };
- // -------------------------------------------------------------------
- class ccc2_ccc3 : public ::google::protobuf::Message {
- public:
- ccc2_ccc3();
- virtual ~ccc2_ccc3();
-
- ccc2_ccc3(const ccc2_ccc3& from);
-
- inline ccc2_ccc3& operator=(const ccc2_ccc3& from) {
- CopyFrom(from);
- return *this;
- }
-
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
- }
-
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
- }
-
- static const ::google::protobuf::Descriptor* descriptor();
- static const ccc2_ccc3& default_instance();
- void Swap(ccc2_ccc3* other);
-
- // implements Message ----------------------------------------------
-
- ccc2_ccc3* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
- void CopyFrom(const ccc2_ccc3& from);
- void MergeFrom(const ccc2_ccc3& from);
- void Clear();
- bool IsInitialized() const;
-
- int ByteSize() const;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const { _cached_size_ = size; }
- public:
-
- ::google::protobuf::Metadata GetMetadata() const;
-
- // nested types ----------------------------------------------------
-
- // accessors -------------------------------------------------------
-
- // optional bool quersyc = 1;
- inline bool has_quersyc() const;
- inline void clear_quersyc();
- static const int kQuersycFieldNumber = 1;
- inline bool quersyc() const;
- inline void set_quersyc(bool value);
-
- GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(ccc2_ccc3)
- private:
- ::google::protobuf::internal::ExtensionSet _extensions_;
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
- mutable int _cached_size_;
-
- bool quersyc_;
- friend void protobuf_AddDesc_test_2epro2();
- friend void protobuf_AssignDesc_test_2epro2();
- friend void protobuf_ShutdownFile_test_2epro2();
-
- ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
-
- // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
- inline bool _has_bit(int index) const {
- return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
- }
- inline void _set_bit(int index) {
- _has_bits_[index / 32] |= (1u << (index % 32));
- }
- inline void _clear_bit(int index) {
- _has_bits_[index / 32] &= ~(1u << (index % 32));
- }
-
- void InitAsDefaultInstance();
- static ccc2_ccc3* default_instance_;
- };
- // -------------------------------------------------------------------
- class ccc2 : public ::google::protobuf::Message {
- public:
- ccc2();
- virtual ~ccc2();
-
- ccc2(const ccc2& from);
-
- inline ccc2& operator=(const ccc2& from) {
- CopyFrom(from);
- return *this;
- }
-
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
- }
-
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
- }
-
- static const ::google::protobuf::Descriptor* descriptor();
- static const ccc2& default_instance();
- void Swap(ccc2* other);
-
- // implements Message ----------------------------------------------
-
- ccc2* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
- void CopyFrom(const ccc2& from);
- void MergeFrom(const ccc2& from);
- void Clear();
- bool IsInitialized() const;
-
- int ByteSize() const;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const { _cached_size_ = size; }
- public:
-
- ::google::protobuf::Metadata GetMetadata() const;
-
- // nested types ----------------------------------------------------
-
- typedef ccc2_ccc3 ccc3;
-
- // accessors -------------------------------------------------------
-
- // optional int32 quersyw = 3 [default = 18];
- inline bool has_quersyw() const;
- inline void clear_quersyw();
- static const int kQuersywFieldNumber = 3;
- inline ::google::protobuf::int32 quersyw() const;
- inline void set_quersyw(::google::protobuf::int32 value);
-
- // optional int64 quersyc = 1 [default = 18];
- inline bool has_quersyc() const;
- inline void clear_quersyc();
- static const int kQuersycFieldNumber = 1;
- inline ::google::protobuf::int64 quersyc() const;
- inline void set_quersyc(::google::protobuf::int64 value);
-
- static const int kQuersydFieldNumber = 10;
- static ::google::protobuf::internal::ExtensionIdentifier< ::ccc2_ccc3,
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int64 >, 3, false >
- quersyd;
- static const int kQuersyFieldNumber = 11;
- static ::google::protobuf::internal::ExtensionIdentifier< ::ccc2_ccc3,
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int64 >, 3, false >
- quersy;
- private:
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
- mutable int _cached_size_;
-
- ::google::protobuf::int32 quersyw_;
- ::google::protobuf::int64 quersyc_;
- friend void protobuf_AddDesc_test_2epro2();
- friend void protobuf_AssignDesc_test_2epro2();
- friend void protobuf_ShutdownFile_test_2epro2();
-
- ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
-
- // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
- inline bool _has_bit(int index) const {
- return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
- }
- inline void _set_bit(int index) {
- _has_bits_[index / 32] |= (1u << (index % 32));
- }
- inline void _clear_bit(int index) {
- _has_bits_[index / 32] &= ~(1u << (index % 32));
- }
-
- void InitAsDefaultInstance();
- static ccc2* default_instance_;
- };
- // -------------------------------------------------------------------
- class ccc1_ccc3 : public ::google::protobuf::Message {
- public:
- ccc1_ccc3();
- virtual ~ccc1_ccc3();
-
- ccc1_ccc3(const ccc1_ccc3& from);
-
- inline ccc1_ccc3& operator=(const ccc1_ccc3& from) {
- CopyFrom(from);
- return *this;
- }
-
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
- }
-
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
- }
-
- static const ::google::protobuf::Descriptor* descriptor();
- static const ccc1_ccc3& default_instance();
- void Swap(ccc1_ccc3* other);
-
- // implements Message ----------------------------------------------
-
- ccc1_ccc3* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
- void CopyFrom(const ccc1_ccc3& from);
- void MergeFrom(const ccc1_ccc3& from);
- void Clear();
- bool IsInitialized() const;
-
- int ByteSize() const;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const { _cached_size_ = size; }
- public:
-
- ::google::protobuf::Metadata GetMetadata() const;
-
- // nested types ----------------------------------------------------
-
- // accessors -------------------------------------------------------
-
- // optional int64 quersyc = 1 [default = 18];
- inline bool has_quersyc() const;
- inline void clear_quersyc();
- static const int kQuersycFieldNumber = 1;
- inline ::google::protobuf::int64 quersyc() const;
- inline void set_quersyc(::google::protobuf::int64 value);
-
- // optional .ccc1.c quersyd = 4 [default = FOO];
- inline bool has_quersyd() const;
- inline void clear_quersyd();
- static const int kQuersydFieldNumber = 4;
- inline ::ccc1_c quersyd() const;
- inline void set_quersyd(::ccc1_c value);
-
- private:
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
- mutable int _cached_size_;
-
- ::google::protobuf::int64 quersyc_;
- int quersyd_;
- friend void protobuf_AddDesc_test_2epro2();
- friend void protobuf_AssignDesc_test_2epro2();
- friend void protobuf_ShutdownFile_test_2epro2();
-
- ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
-
- // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
- inline bool _has_bit(int index) const {
- return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
- }
- inline void _set_bit(int index) {
- _has_bits_[index / 32] |= (1u << (index % 32));
- }
- inline void _clear_bit(int index) {
- _has_bits_[index / 32] &= ~(1u << (index % 32));
- }
-
- void InitAsDefaultInstance();
- static ccc1_ccc3* default_instance_;
- };
- // -------------------------------------------------------------------
- class ccc1 : public ::google::protobuf::Message {
- public:
- ccc1();
- virtual ~ccc1();
-
- ccc1(const ccc1& from);
-
- inline ccc1& operator=(const ccc1& from) {
- CopyFrom(from);
- return *this;
- }
-
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
- }
-
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
- }
-
- static const ::google::protobuf::Descriptor* descriptor();
- static const ccc1& default_instance();
- void Swap(ccc1* other);
-
- // implements Message ----------------------------------------------
-
- ccc1* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
- void CopyFrom(const ccc1& from);
- void MergeFrom(const ccc1& from);
- void Clear();
- bool IsInitialized() const;
-
- int ByteSize() const;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const { _cached_size_ = size; }
- public:
-
- ::google::protobuf::Metadata GetMetadata() const;
-
- // nested types ----------------------------------------------------
-
- typedef ccc1_ccc3 ccc3;
-
- typedef ccc1_c c;
- static const c FOO = ccc1_c_FOO;
- static const c BAR = ccc1_c_BAR;
- static inline bool c_IsValid(int value) {
- return ccc1_c_IsValid(value);
- }
- static const c c_MIN =
- ccc1_c_c_MIN;
- static const c c_MAX =
- ccc1_c_c_MAX;
- static inline const ::google::protobuf::EnumDescriptor*
- c_descriptor() {
- return ccc1_c_descriptor();
- }
- static inline const ::std::string& c_Name(c value) {
- return ccc1_c_Name(value);
- }
- static inline bool c_Parse(const ::std::string& name,
- c* value) {
- return ccc1_c_Parse(name, value);
- }
-
- // accessors -------------------------------------------------------
-
- // optional int32 quersy = 3 [default = 18];
- inline bool has_quersy() const;
- inline void clear_quersy();
- static const int kQuersyFieldNumber = 3;
- inline ::google::protobuf::int32 quersy() const;
- inline void set_quersy(::google::protobuf::int32 value);
-
- // optional .ccc1.ccc3 quersyv = 4;
- inline bool has_quersyv() const;
- inline void clear_quersyv();
- static const int kQuersyvFieldNumber = 4;
- inline const ::ccc1_ccc3& quersyv() const;
- inline ::ccc1_ccc3* mutable_quersyv();
-
- private:
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
- mutable int _cached_size_;
-
- ::google::protobuf::int32 quersy_;
- ::ccc1_ccc3* quersyv_;
- friend void protobuf_AddDesc_test_2epro2();
- friend void protobuf_AssignDesc_test_2epro2();
- friend void protobuf_ShutdownFile_test_2epro2();
-
- ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
-
- // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
- inline bool _has_bit(int index) const {
- return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
- }
- inline void _set_bit(int index) {
- _has_bits_[index / 32] |= (1u << (index % 32));
- }
- inline void _clear_bit(int index) {
- _has_bits_[index / 32] &= ~(1u << (index % 32));
- }
-
- void InitAsDefaultInstance();
- static ccc1* default_instance_;
- };
- // ===================================================================
- // ===================================================================
- // ===================================================================
- // ccc
- // optional int32 quersy = 3 [default = 18];
- inline bool ccc::has_quersy() const {
- return _has_bit(0);
- }
- inline void ccc::clear_quersy() {
- quersy_ = 18;
- _clear_bit(0);
- }
- inline ::google::protobuf::int32 ccc::quersy() const {
- return quersy_;
- }
- inline void ccc::set_quersy(::google::protobuf::int32 value) {
- _set_bit(0);
- quersy_ = value;
- }
- // -------------------------------------------------------------------
- // ccc2_ccc3
- // optional bool quersyc = 1;
- inline bool ccc2_ccc3::has_quersyc() const {
- return _has_bit(0);
- }
- inline void ccc2_ccc3::clear_quersyc() {
- quersyc_ = false;
- _clear_bit(0);
- }
- inline bool ccc2_ccc3::quersyc() const {
- return quersyc_;
- }
- inline void ccc2_ccc3::set_quersyc(bool value) {
- _set_bit(0);
- quersyc_ = value;
- }
- // -------------------------------------------------------------------
- // ccc2
- // optional int32 quersyw = 3 [default = 18];
- inline bool ccc2::has_quersyw() const {
- return _has_bit(0);
- }
- inline void ccc2::clear_quersyw() {
- quersyw_ = 18;
- _clear_bit(0);
- }
- inline ::google::protobuf::int32 ccc2::quersyw() const {
- return quersyw_;
- }
- inline void ccc2::set_quersyw(::google::protobuf::int32 value) {
- _set_bit(0);
- quersyw_ = value;
- }
- // optional int64 quersyc = 1 [default = 18];
- inline bool ccc2::has_quersyc() const {
- return _has_bit(1);
- }
- inline void ccc2::clear_quersyc() {
- quersyc_ = GOOGLE_LONGLONG(18);
- _clear_bit(1);
- }
- inline ::google::protobuf::int64 ccc2::quersyc() const {
- return quersyc_;
- }
- inline void ccc2::set_quersyc(::google::protobuf::int64 value) {
- _set_bit(1);
- quersyc_ = value;
- }
- // -------------------------------------------------------------------
- // ccc1_ccc3
- // optional int64 quersyc = 1 [default = 18];
- inline bool ccc1_ccc3::has_quersyc() const {
- return _has_bit(0);
- }
- inline void ccc1_ccc3::clear_quersyc() {
- quersyc_ = GOOGLE_LONGLONG(18);
- _clear_bit(0);
- }
- inline ::google::protobuf::int64 ccc1_ccc3::quersyc() const {
- return quersyc_;
- }
- inline void ccc1_ccc3::set_quersyc(::google::protobuf::int64 value) {
- _set_bit(0);
- quersyc_ = value;
- }
- // optional .ccc1.c quersyd = 4 [default = FOO];
- inline bool ccc1_ccc3::has_quersyd() const {
- return _has_bit(1);
- }
- inline void ccc1_ccc3::clear_quersyd() {
- quersyd_ = 2;
- _clear_bit(1);
- }
- inline ::ccc1_c ccc1_ccc3::quersyd() const {
- return static_cast< ::ccc1_c >(quersyd_);
- }
- inline void ccc1_ccc3::set_quersyd(::ccc1_c value) {
- GOOGLE_DCHECK(::ccc1_c_IsValid(value));
- _set_bit(1);
- quersyd_ = value;
- }
- // -------------------------------------------------------------------
- // ccc1
- // optional int32 quersy = 3 [default = 18];
- inline bool ccc1::has_quersy() const {
- return _has_bit(0);
- }
- inline void ccc1::clear_quersy() {
- quersy_ = 18;
- _clear_bit(0);
- }
- inline ::google::protobuf::int32 ccc1::quersy() const {
- return quersy_;
- }
- inline void ccc1::set_quersy(::google::protobuf::int32 value) {
- _set_bit(0);
- quersy_ = value;
- }
- // optional .ccc1.ccc3 quersyv = 4;
- inline bool ccc1::has_quersyv() const {
- return _has_bit(1);
- }
- inline void ccc1::clear_quersyv() {
- if (quersyv_ != NULL) quersyv_->::ccc1_ccc3::Clear();
- _clear_bit(1);
- }
- inline const ::ccc1_ccc3& ccc1::quersyv() const {
- return quersyv_ != NULL ? *quersyv_ : *default_instance_->quersyv_;
- }
- inline ::ccc1_ccc3* ccc1::mutable_quersyv() {
- _set_bit(1);
- if (quersyv_ == NULL) quersyv_ = new ::ccc1_ccc3;
- return quersyv_;
- }
- #ifndef SWIG
- namespace google {
- namespace protobuf {
- template <>
- inline const EnumDescriptor* GetEnumDescriptor< ::ccc1_c>() {
- return ::ccc1_c_descriptor();
- }
- } // namespace google
- } // namespace protobuf
- #endif // SWIG
- #endif // PROTOBUF_test_2epro2__INCLUDED