/tags/protobuf-gdc/test-cases/test.pro.pb.h
http://d-protobuf.googlecode.com/ · C Header · 341 lines · 254 code · 60 blank · 27 comment · 22 complexity · 179501d848bfd334add1bdeb1f0fe6cd MD5 · raw file
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: test.pro
- #ifndef PROTOBUF_test_2epro__INCLUDED
- #define PROTOBUF_test_2epro__INCLUDED
- #include <string>
- #include <google/protobuf/stubs/common.h>
- #if GOOGLE_PROTOBUF_VERSION < 2003000
- #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 2003000 < 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>
- // @@protoc_insertion_point(includes)
- // Internal implementation detail -- do not call these.
- void protobuf_AddDesc_test_2epro();
- void protobuf_AssignDesc_test_2epro();
- void protobuf_ShutdownFile_test_2epro();
- class SearchRequest;
- class accc;
- // ===================================================================
- class SearchRequest : public ::google::protobuf::Message {
- public:
- SearchRequest();
- virtual ~SearchRequest();
-
- SearchRequest(const SearchRequest& from);
-
- inline SearchRequest& operator=(const SearchRequest& 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 SearchRequest& default_instance();
-
- void Swap(SearchRequest* other);
-
- // implements Message ----------------------------------------------
-
- SearchRequest* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
- void CopyFrom(const SearchRequest& from);
- void MergeFrom(const SearchRequest& 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;
- public:
-
- ::google::protobuf::Metadata GetMetadata() const;
-
- // nested types ----------------------------------------------------
-
- // accessors -------------------------------------------------------
-
- // optional bytes query = 1 [default = "cc"];
- inline bool has_query() const;
- inline void clear_query();
- static const int kQueryFieldNumber = 1;
- inline const ::std::string& query() const;
- inline void set_query(const ::std::string& value);
- inline void set_query(const char* value);
- inline void set_query(const void* value, size_t size);
- inline ::std::string* mutable_query();
-
- static const int kAaaFieldNumber = 99;
- static ::google::protobuf::internal::ExtensionIdentifier< ::accc,
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
- aaa;
- // @@protoc_insertion_point(class_scope:SearchRequest)
- private:
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
- mutable int _cached_size_;
-
- ::std::string* query_;
- static const ::std::string _default_query_;
- friend void protobuf_AddDesc_test_2epro();
- friend void protobuf_AssignDesc_test_2epro();
- friend void protobuf_ShutdownFile_test_2epro();
-
- ::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 SearchRequest* default_instance_;
- };
- // -------------------------------------------------------------------
- class accc : public ::google::protobuf::Message {
- public:
- accc();
- virtual ~accc();
-
- accc(const accc& from);
-
- inline accc& operator=(const accc& 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 accc& default_instance();
-
- void Swap(accc* other);
-
- // implements Message ----------------------------------------------
-
- accc* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
- void CopyFrom(const accc& from);
- void MergeFrom(const accc& 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;
- public:
-
- ::google::protobuf::Metadata GetMetadata() const;
-
- // nested types ----------------------------------------------------
-
- // accessors -------------------------------------------------------
-
- // optional bytes dddd = 1 [packed = false];
- inline bool has_dddd() const;
- inline void clear_dddd();
- static const int kDdddFieldNumber = 1;
- inline const ::std::string& dddd() const;
- inline void set_dddd(const ::std::string& value);
- inline void set_dddd(const char* value);
- inline void set_dddd(const void* value, size_t size);
- inline ::std::string* mutable_dddd();
-
- GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(accc)
- // @@protoc_insertion_point(class_scope:accc)
- private:
- ::google::protobuf::internal::ExtensionSet _extensions_;
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
- mutable int _cached_size_;
-
- ::std::string* dddd_;
- static const ::std::string _default_dddd_;
- friend void protobuf_AddDesc_test_2epro();
- friend void protobuf_AssignDesc_test_2epro();
- friend void protobuf_ShutdownFile_test_2epro();
-
- ::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 accc* default_instance_;
- };
- // ===================================================================
- static const int kBbbbFieldNumber = 9;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::accc,
- ::google::protobuf::internal::StringTypeTraits, 12, false >
- bbbb;
- // ===================================================================
- // SearchRequest
- // optional bytes query = 1 [default = "cc"];
- inline bool SearchRequest::has_query() const {
- return _has_bit(0);
- }
- inline void SearchRequest::clear_query() {
- if (query_ != &_default_query_) {
- query_->assign(_default_query_);
- }
- _clear_bit(0);
- }
- inline const ::std::string& SearchRequest::query() const {
- return *query_;
- }
- inline void SearchRequest::set_query(const ::std::string& value) {
- _set_bit(0);
- if (query_ == &_default_query_) {
- query_ = new ::std::string;
- }
- query_->assign(value);
- }
- inline void SearchRequest::set_query(const char* value) {
- _set_bit(0);
- if (query_ == &_default_query_) {
- query_ = new ::std::string;
- }
- query_->assign(value);
- }
- inline void SearchRequest::set_query(const void* value, size_t size) {
- _set_bit(0);
- if (query_ == &_default_query_) {
- query_ = new ::std::string;
- }
- query_->assign(reinterpret_cast<const char*>(value), size);
- }
- inline ::std::string* SearchRequest::mutable_query() {
- _set_bit(0);
- if (query_ == &_default_query_) {
- query_ = new ::std::string(_default_query_);
- }
- return query_;
- }
- // -------------------------------------------------------------------
- // accc
- // optional bytes dddd = 1 [packed = false];
- inline bool accc::has_dddd() const {
- return _has_bit(0);
- }
- inline void accc::clear_dddd() {
- if (dddd_ != &_default_dddd_) {
- dddd_->clear();
- }
- _clear_bit(0);
- }
- inline const ::std::string& accc::dddd() const {
- return *dddd_;
- }
- inline void accc::set_dddd(const ::std::string& value) {
- _set_bit(0);
- if (dddd_ == &_default_dddd_) {
- dddd_ = new ::std::string;
- }
- dddd_->assign(value);
- }
- inline void accc::set_dddd(const char* value) {
- _set_bit(0);
- if (dddd_ == &_default_dddd_) {
- dddd_ = new ::std::string;
- }
- dddd_->assign(value);
- }
- inline void accc::set_dddd(const void* value, size_t size) {
- _set_bit(0);
- if (dddd_ == &_default_dddd_) {
- dddd_ = new ::std::string;
- }
- dddd_->assign(reinterpret_cast<const char*>(value), size);
- }
- inline ::std::string* accc::mutable_dddd() {
- _set_bit(0);
- if (dddd_ == &_default_dddd_) {
- dddd_ = new ::std::string;
- }
- return dddd_;
- }
- // @@protoc_insertion_point(namespace_scope)
- #ifndef SWIG
- namespace google {
- namespace protobuf {
- } // namespace google
- } // namespace protobuf
- #endif // SWIG
- // @@protoc_insertion_point(global_scope)
- #endif // PROTOBUF_test_2epro__INCLUDED