// Generated by the protocol buffer compiler. DO NOT EDIT! // source: pbrpc/Ping.proto #ifndef PROTOBUF_pbrpc_2fPing_2eproto__INCLUDED #define PROTOBUF_pbrpc_2fPing_2eproto__INCLUDED #include #include #if GOOGLE_PROTOBUF_VERSION < 2005000 #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 2005000 < 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 #include #include #include #include #include "include/PBRPC.pb.h" // @@protoc_insertion_point(includes) namespace xtreemfs { namespace pbrpc { // Internal implementation detail -- do not call these. void protobuf_AddDesc_pbrpc_2fPing_2eproto(); void protobuf_AssignDesc_pbrpc_2fPing_2eproto(); void protobuf_ShutdownFile_pbrpc_2fPing_2eproto(); class PingRequest; class PingResponse; class PingResponse_PingResult; class PingResponse_PingError; class Ping_emptyRequest; class Ping_emptyResponse; // =================================================================== class PingRequest : public ::google::protobuf::Message { public: PingRequest(); virtual ~PingRequest(); PingRequest(const PingRequest& from); inline PingRequest& operator=(const PingRequest& 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 PingRequest& default_instance(); void Swap(PingRequest* other); // implements Message ---------------------------------------------- PingRequest* New() const; void CopyFrom(const ::google::protobuf::Message& from); void MergeFrom(const ::google::protobuf::Message& from); void CopyFrom(const PingRequest& from); void MergeFrom(const PingRequest& 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 ------------------------------------------------------- // required string text = 1; inline bool has_text() const; inline void clear_text(); static const int kTextFieldNumber = 1; inline const ::std::string& text() const; inline void set_text(const ::std::string& value); inline void set_text(const char* value); inline void set_text(const char* value, size_t size); inline ::std::string* mutable_text(); inline ::std::string* release_text(); inline void set_allocated_text(::std::string* text); // required bool sendError = 2; inline bool has_senderror() const; inline void clear_senderror(); static const int kSendErrorFieldNumber = 2; inline bool senderror() const; inline void set_senderror(bool value); // @@protoc_insertion_point(class_scope:xtreemfs.pbrpc.PingRequest) private: inline void set_has_text(); inline void clear_has_text(); inline void set_has_senderror(); inline void clear_has_senderror(); ::google::protobuf::UnknownFieldSet _unknown_fields_; ::std::string* text_; bool senderror_; mutable int _cached_size_; ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; friend void protobuf_AddDesc_pbrpc_2fPing_2eproto(); friend void protobuf_AssignDesc_pbrpc_2fPing_2eproto(); friend void protobuf_ShutdownFile_pbrpc_2fPing_2eproto(); void InitAsDefaultInstance(); static PingRequest* default_instance_; }; // ------------------------------------------------------------------- class PingResponse_PingResult : public ::google::protobuf::Message { public: PingResponse_PingResult(); virtual ~PingResponse_PingResult(); PingResponse_PingResult(const PingResponse_PingResult& from); inline PingResponse_PingResult& operator=(const PingResponse_PingResult& 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 PingResponse_PingResult& default_instance(); void Swap(PingResponse_PingResult* other); // implements Message ---------------------------------------------- PingResponse_PingResult* New() const; void CopyFrom(const ::google::protobuf::Message& from); void MergeFrom(const ::google::protobuf::Message& from); void CopyFrom(const PingResponse_PingResult& from); void MergeFrom(const PingResponse_PingResult& 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 ------------------------------------------------------- // required string text = 1; inline bool has_text() const; inline void clear_text(); static const int kTextFieldNumber = 1; inline const ::std::string& text() const; inline void set_text(const ::std::string& value); inline void set_text(const char* value); inline void set_text(const char* value, size_t size); inline ::std::string* mutable_text(); inline ::std::string* release_text(); inline void set_allocated_text(::std::string* text); // @@protoc_insertion_point(class_scope:xtreemfs.pbrpc.PingResponse.PingResult) private: inline void set_has_text(); inline void clear_has_text(); ::google::protobuf::UnknownFieldSet _unknown_fields_; ::std::string* text_; mutable int _cached_size_; ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; friend void protobuf_AddDesc_pbrpc_2fPing_2eproto(); friend void protobuf_AssignDesc_pbrpc_2fPing_2eproto(); friend void protobuf_ShutdownFile_pbrpc_2fPing_2eproto(); void InitAsDefaultInstance(); static PingResponse_PingResult* default_instance_; }; // ------------------------------------------------------------------- class PingResponse_PingError : public ::google::protobuf::Message { public: PingResponse_PingError(); virtual ~PingResponse_PingError(); PingResponse_PingError(const PingResponse_PingError& from); inline PingResponse_PingError& operator=(const PingResponse_PingError& 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 PingResponse_PingError& default_instance(); void Swap(PingResponse_PingError* other); // implements Message ---------------------------------------------- PingResponse_PingError* New() const; void CopyFrom(const ::google::protobuf::Message& from); void MergeFrom(const ::google::protobuf::Message& from); void CopyFrom(const PingResponse_PingError& from); void MergeFrom(const PingResponse_PingError& 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 ------------------------------------------------------- // required string errorMessage = 1; inline bool has_errormessage() const; inline void clear_errormessage(); static const int kErrorMessageFieldNumber = 1; inline const ::std::string& errormessage() const; inline void set_errormessage(const ::std::string& value); inline void set_errormessage(const char* value); inline void set_errormessage(const char* value, size_t size); inline ::std::string* mutable_errormessage(); inline ::std::string* release_errormessage(); inline void set_allocated_errormessage(::std::string* errormessage); // @@protoc_insertion_point(class_scope:xtreemfs.pbrpc.PingResponse.PingError) private: inline void set_has_errormessage(); inline void clear_has_errormessage(); ::google::protobuf::UnknownFieldSet _unknown_fields_; ::std::string* errormessage_; mutable int _cached_size_; ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; friend void protobuf_AddDesc_pbrpc_2fPing_2eproto(); friend void protobuf_AssignDesc_pbrpc_2fPing_2eproto(); friend void protobuf_ShutdownFile_pbrpc_2fPing_2eproto(); void InitAsDefaultInstance(); static PingResponse_PingError* default_instance_; }; // ------------------------------------------------------------------- class PingResponse : public ::google::protobuf::Message { public: PingResponse(); virtual ~PingResponse(); PingResponse(const PingResponse& from); inline PingResponse& operator=(const PingResponse& 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 PingResponse& default_instance(); void Swap(PingResponse* other); // implements Message ---------------------------------------------- PingResponse* New() const; void CopyFrom(const ::google::protobuf::Message& from); void MergeFrom(const ::google::protobuf::Message& from); void CopyFrom(const PingResponse& from); void MergeFrom(const PingResponse& 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 ---------------------------------------------------- typedef PingResponse_PingResult PingResult; typedef PingResponse_PingError PingError; // accessors ------------------------------------------------------- // optional .xtreemfs.pbrpc.PingResponse.PingResult result = 1; inline bool has_result() const; inline void clear_result(); static const int kResultFieldNumber = 1; inline const ::xtreemfs::pbrpc::PingResponse_PingResult& result() const; inline ::xtreemfs::pbrpc::PingResponse_PingResult* mutable_result(); inline ::xtreemfs::pbrpc::PingResponse_PingResult* release_result(); inline void set_allocated_result(::xtreemfs::pbrpc::PingResponse_PingResult* result); // optional .xtreemfs.pbrpc.PingResponse.PingError error = 2; inline bool has_error() const; inline void clear_error(); static const int kErrorFieldNumber = 2; inline const ::xtreemfs::pbrpc::PingResponse_PingError& error() const; inline ::xtreemfs::pbrpc::PingResponse_PingError* mutable_error(); inline ::xtreemfs::pbrpc::PingResponse_PingError* release_error(); inline void set_allocated_error(::xtreemfs::pbrpc::PingResponse_PingError* error); // @@protoc_insertion_point(class_scope:xtreemfs.pbrpc.PingResponse) private: inline void set_has_result(); inline void clear_has_result(); inline void set_has_error(); inline void clear_has_error(); ::google::protobuf::UnknownFieldSet _unknown_fields_; ::xtreemfs::pbrpc::PingResponse_PingResult* result_; ::xtreemfs::pbrpc::PingResponse_PingError* error_; mutable int _cached_size_; ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; friend void protobuf_AddDesc_pbrpc_2fPing_2eproto(); friend void protobuf_AssignDesc_pbrpc_2fPing_2eproto(); friend void protobuf_ShutdownFile_pbrpc_2fPing_2eproto(); void InitAsDefaultInstance(); static PingResponse* default_instance_; }; // ------------------------------------------------------------------- class Ping_emptyRequest : public ::google::protobuf::Message { public: Ping_emptyRequest(); virtual ~Ping_emptyRequest(); Ping_emptyRequest(const Ping_emptyRequest& from); inline Ping_emptyRequest& operator=(const Ping_emptyRequest& 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 Ping_emptyRequest& default_instance(); void Swap(Ping_emptyRequest* other); // implements Message ---------------------------------------------- Ping_emptyRequest* New() const; void CopyFrom(const ::google::protobuf::Message& from); void MergeFrom(const ::google::protobuf::Message& from); void CopyFrom(const Ping_emptyRequest& from); void MergeFrom(const Ping_emptyRequest& 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 ------------------------------------------------------- // @@protoc_insertion_point(class_scope:xtreemfs.pbrpc.Ping_emptyRequest) private: ::google::protobuf::UnknownFieldSet _unknown_fields_; mutable int _cached_size_; ::google::protobuf::uint32 _has_bits_[1]; friend void protobuf_AddDesc_pbrpc_2fPing_2eproto(); friend void protobuf_AssignDesc_pbrpc_2fPing_2eproto(); friend void protobuf_ShutdownFile_pbrpc_2fPing_2eproto(); void InitAsDefaultInstance(); static Ping_emptyRequest* default_instance_; }; // ------------------------------------------------------------------- class Ping_emptyResponse : public ::google::protobuf::Message { public: Ping_emptyResponse(); virtual ~Ping_emptyResponse(); Ping_emptyResponse(const Ping_emptyResponse& from); inline Ping_emptyResponse& operator=(const Ping_emptyResponse& 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 Ping_emptyResponse& default_instance(); void Swap(Ping_emptyResponse* other); // implements Message ---------------------------------------------- Ping_emptyResponse* New() const; void CopyFrom(const ::google::protobuf::Message& from); void MergeFrom(const ::google::protobuf::Message& from); void CopyFrom(const Ping_emptyResponse& from); void MergeFrom(const Ping_emptyResponse& 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 ------------------------------------------------------- // @@protoc_insertion_point(class_scope:xtreemfs.pbrpc.Ping_emptyResponse) private: ::google::protobuf::UnknownFieldSet _unknown_fields_; mutable int _cached_size_; ::google::protobuf::uint32 _has_bits_[1]; friend void protobuf_AddDesc_pbrpc_2fPing_2eproto(); friend void protobuf_AssignDesc_pbrpc_2fPing_2eproto(); friend void protobuf_ShutdownFile_pbrpc_2fPing_2eproto(); void InitAsDefaultInstance(); static Ping_emptyResponse* default_instance_; }; // =================================================================== // =================================================================== // PingRequest // required string text = 1; inline bool PingRequest::has_text() const { return (_has_bits_[0] & 0x00000001u) != 0; } inline void PingRequest::set_has_text() { _has_bits_[0] |= 0x00000001u; } inline void PingRequest::clear_has_text() { _has_bits_[0] &= ~0x00000001u; } inline void PingRequest::clear_text() { if (text_ != &::google::protobuf::internal::kEmptyString) { text_->clear(); } clear_has_text(); } inline const ::std::string& PingRequest::text() const { return *text_; } inline void PingRequest::set_text(const ::std::string& value) { set_has_text(); if (text_ == &::google::protobuf::internal::kEmptyString) { text_ = new ::std::string; } text_->assign(value); } inline void PingRequest::set_text(const char* value) { set_has_text(); if (text_ == &::google::protobuf::internal::kEmptyString) { text_ = new ::std::string; } text_->assign(value); } inline void PingRequest::set_text(const char* value, size_t size) { set_has_text(); if (text_ == &::google::protobuf::internal::kEmptyString) { text_ = new ::std::string; } text_->assign(reinterpret_cast(value), size); } inline ::std::string* PingRequest::mutable_text() { set_has_text(); if (text_ == &::google::protobuf::internal::kEmptyString) { text_ = new ::std::string; } return text_; } inline ::std::string* PingRequest::release_text() { clear_has_text(); if (text_ == &::google::protobuf::internal::kEmptyString) { return NULL; } else { ::std::string* temp = text_; text_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); return temp; } } inline void PingRequest::set_allocated_text(::std::string* text) { if (text_ != &::google::protobuf::internal::kEmptyString) { delete text_; } if (text) { set_has_text(); text_ = text; } else { clear_has_text(); text_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); } } // required bool sendError = 2; inline bool PingRequest::has_senderror() const { return (_has_bits_[0] & 0x00000002u) != 0; } inline void PingRequest::set_has_senderror() { _has_bits_[0] |= 0x00000002u; } inline void PingRequest::clear_has_senderror() { _has_bits_[0] &= ~0x00000002u; } inline void PingRequest::clear_senderror() { senderror_ = false; clear_has_senderror(); } inline bool PingRequest::senderror() const { return senderror_; } inline void PingRequest::set_senderror(bool value) { set_has_senderror(); senderror_ = value; } // ------------------------------------------------------------------- // PingResponse_PingResult // required string text = 1; inline bool PingResponse_PingResult::has_text() const { return (_has_bits_[0] & 0x00000001u) != 0; } inline void PingResponse_PingResult::set_has_text() { _has_bits_[0] |= 0x00000001u; } inline void PingResponse_PingResult::clear_has_text() { _has_bits_[0] &= ~0x00000001u; } inline void PingResponse_PingResult::clear_text() { if (text_ != &::google::protobuf::internal::kEmptyString) { text_->clear(); } clear_has_text(); } inline const ::std::string& PingResponse_PingResult::text() const { return *text_; } inline void PingResponse_PingResult::set_text(const ::std::string& value) { set_has_text(); if (text_ == &::google::protobuf::internal::kEmptyString) { text_ = new ::std::string; } text_->assign(value); } inline void PingResponse_PingResult::set_text(const char* value) { set_has_text(); if (text_ == &::google::protobuf::internal::kEmptyString) { text_ = new ::std::string; } text_->assign(value); } inline void PingResponse_PingResult::set_text(const char* value, size_t size) { set_has_text(); if (text_ == &::google::protobuf::internal::kEmptyString) { text_ = new ::std::string; } text_->assign(reinterpret_cast(value), size); } inline ::std::string* PingResponse_PingResult::mutable_text() { set_has_text(); if (text_ == &::google::protobuf::internal::kEmptyString) { text_ = new ::std::string; } return text_; } inline ::std::string* PingResponse_PingResult::release_text() { clear_has_text(); if (text_ == &::google::protobuf::internal::kEmptyString) { return NULL; } else { ::std::string* temp = text_; text_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); return temp; } } inline void PingResponse_PingResult::set_allocated_text(::std::string* text) { if (text_ != &::google::protobuf::internal::kEmptyString) { delete text_; } if (text) { set_has_text(); text_ = text; } else { clear_has_text(); text_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); } } // ------------------------------------------------------------------- // PingResponse_PingError // required string errorMessage = 1; inline bool PingResponse_PingError::has_errormessage() const { return (_has_bits_[0] & 0x00000001u) != 0; } inline void PingResponse_PingError::set_has_errormessage() { _has_bits_[0] |= 0x00000001u; } inline void PingResponse_PingError::clear_has_errormessage() { _has_bits_[0] &= ~0x00000001u; } inline void PingResponse_PingError::clear_errormessage() { if (errormessage_ != &::google::protobuf::internal::kEmptyString) { errormessage_->clear(); } clear_has_errormessage(); } inline const ::std::string& PingResponse_PingError::errormessage() const { return *errormessage_; } inline void PingResponse_PingError::set_errormessage(const ::std::string& value) { set_has_errormessage(); if (errormessage_ == &::google::protobuf::internal::kEmptyString) { errormessage_ = new ::std::string; } errormessage_->assign(value); } inline void PingResponse_PingError::set_errormessage(const char* value) { set_has_errormessage(); if (errormessage_ == &::google::protobuf::internal::kEmptyString) { errormessage_ = new ::std::string; } errormessage_->assign(value); } inline void PingResponse_PingError::set_errormessage(const char* value, size_t size) { set_has_errormessage(); if (errormessage_ == &::google::protobuf::internal::kEmptyString) { errormessage_ = new ::std::string; } errormessage_->assign(reinterpret_cast(value), size); } inline ::std::string* PingResponse_PingError::mutable_errormessage() { set_has_errormessage(); if (errormessage_ == &::google::protobuf::internal::kEmptyString) { errormessage_ = new ::std::string; } return errormessage_; } inline ::std::string* PingResponse_PingError::release_errormessage() { clear_has_errormessage(); if (errormessage_ == &::google::protobuf::internal::kEmptyString) { return NULL; } else { ::std::string* temp = errormessage_; errormessage_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); return temp; } } inline void PingResponse_PingError::set_allocated_errormessage(::std::string* errormessage) { if (errormessage_ != &::google::protobuf::internal::kEmptyString) { delete errormessage_; } if (errormessage) { set_has_errormessage(); errormessage_ = errormessage; } else { clear_has_errormessage(); errormessage_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); } } // ------------------------------------------------------------------- // PingResponse // optional .xtreemfs.pbrpc.PingResponse.PingResult result = 1; inline bool PingResponse::has_result() const { return (_has_bits_[0] & 0x00000001u) != 0; } inline void PingResponse::set_has_result() { _has_bits_[0] |= 0x00000001u; } inline void PingResponse::clear_has_result() { _has_bits_[0] &= ~0x00000001u; } inline void PingResponse::clear_result() { if (result_ != NULL) result_->::xtreemfs::pbrpc::PingResponse_PingResult::Clear(); clear_has_result(); } inline const ::xtreemfs::pbrpc::PingResponse_PingResult& PingResponse::result() const { return result_ != NULL ? *result_ : *default_instance_->result_; } inline ::xtreemfs::pbrpc::PingResponse_PingResult* PingResponse::mutable_result() { set_has_result(); if (result_ == NULL) result_ = new ::xtreemfs::pbrpc::PingResponse_PingResult; return result_; } inline ::xtreemfs::pbrpc::PingResponse_PingResult* PingResponse::release_result() { clear_has_result(); ::xtreemfs::pbrpc::PingResponse_PingResult* temp = result_; result_ = NULL; return temp; } inline void PingResponse::set_allocated_result(::xtreemfs::pbrpc::PingResponse_PingResult* result) { delete result_; result_ = result; if (result) { set_has_result(); } else { clear_has_result(); } } // optional .xtreemfs.pbrpc.PingResponse.PingError error = 2; inline bool PingResponse::has_error() const { return (_has_bits_[0] & 0x00000002u) != 0; } inline void PingResponse::set_has_error() { _has_bits_[0] |= 0x00000002u; } inline void PingResponse::clear_has_error() { _has_bits_[0] &= ~0x00000002u; } inline void PingResponse::clear_error() { if (error_ != NULL) error_->::xtreemfs::pbrpc::PingResponse_PingError::Clear(); clear_has_error(); } inline const ::xtreemfs::pbrpc::PingResponse_PingError& PingResponse::error() const { return error_ != NULL ? *error_ : *default_instance_->error_; } inline ::xtreemfs::pbrpc::PingResponse_PingError* PingResponse::mutable_error() { set_has_error(); if (error_ == NULL) error_ = new ::xtreemfs::pbrpc::PingResponse_PingError; return error_; } inline ::xtreemfs::pbrpc::PingResponse_PingError* PingResponse::release_error() { clear_has_error(); ::xtreemfs::pbrpc::PingResponse_PingError* temp = error_; error_ = NULL; return temp; } inline void PingResponse::set_allocated_error(::xtreemfs::pbrpc::PingResponse_PingError* error) { delete error_; error_ = error; if (error) { set_has_error(); } else { clear_has_error(); } } // ------------------------------------------------------------------- // Ping_emptyRequest // ------------------------------------------------------------------- // Ping_emptyResponse // @@protoc_insertion_point(namespace_scope) } // namespace pbrpc } // namespace xtreemfs #ifndef SWIG namespace google { namespace protobuf { } // namespace google } // namespace protobuf #endif // SWIG // @@protoc_insertion_point(global_scope) #endif // PROTOBUF_pbrpc_2fPing_2eproto__INCLUDED