// Generated by the protocol buffer compiler. DO NOT EDIT! // source: Messages.proto #ifndef PROTOBUF_Messages_2eproto__INCLUDED #define PROTOBUF_Messages_2eproto__INCLUDED #include #include #if GOOGLE_PROTOBUF_VERSION < 2006000 #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 2006001 < 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 // @@protoc_insertion_point(includes) namespace Messages { // Internal implementation detail -- do not call these. void protobuf_AddDesc_Messages_2eproto(); void protobuf_AssignDesc_Messages_2eproto(); void protobuf_ShutdownFile_Messages_2eproto(); class PingRequest; class PingReply; // =================================================================== 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 ------------------------------------------------------- // optional 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:Messages.PingRequest) private: inline void set_has_text(); inline void clear_has_text(); ::google::protobuf::UnknownFieldSet _unknown_fields_; ::google::protobuf::uint32 _has_bits_[1]; mutable int _cached_size_; ::std::string* text_; friend void protobuf_AddDesc_Messages_2eproto(); friend void protobuf_AssignDesc_Messages_2eproto(); friend void protobuf_ShutdownFile_Messages_2eproto(); void InitAsDefaultInstance(); static PingRequest* default_instance_; }; // ------------------------------------------------------------------- class PingReply : public ::google::protobuf::Message { public: PingReply(); virtual ~PingReply(); PingReply(const PingReply& from); inline PingReply& operator=(const PingReply& 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 PingReply& default_instance(); void Swap(PingReply* other); // implements Message ---------------------------------------------- PingReply* New() const; void CopyFrom(const ::google::protobuf::Message& from); void MergeFrom(const ::google::protobuf::Message& from); void CopyFrom(const PingReply& from); void MergeFrom(const PingReply& 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 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:Messages.PingReply) private: inline void set_has_text(); inline void clear_has_text(); ::google::protobuf::UnknownFieldSet _unknown_fields_; ::google::protobuf::uint32 _has_bits_[1]; mutable int _cached_size_; ::std::string* text_; friend void protobuf_AddDesc_Messages_2eproto(); friend void protobuf_AssignDesc_Messages_2eproto(); friend void protobuf_ShutdownFile_Messages_2eproto(); void InitAsDefaultInstance(); static PingReply* default_instance_; }; // =================================================================== class PingService_Stub; class PingService : public ::google::protobuf::Service { protected: // This class should be treated as an abstract interface. inline PingService() {}; public: virtual ~PingService(); typedef PingService_Stub Stub; static const ::google::protobuf::ServiceDescriptor* descriptor(); virtual void Ping(::google::protobuf::RpcController* controller, const ::Messages::PingRequest* request, ::Messages::PingReply* response, ::google::protobuf::Closure* done); virtual void Ping2(::google::protobuf::RpcController* controller, const ::Messages::PingRequest* request, ::Messages::PingReply* response, ::google::protobuf::Closure* done); // implements Service ---------------------------------------------- const ::google::protobuf::ServiceDescriptor* GetDescriptor(); void CallMethod(const ::google::protobuf::MethodDescriptor* method, ::google::protobuf::RpcController* controller, const ::google::protobuf::Message* request, ::google::protobuf::Message* response, ::google::protobuf::Closure* done); const ::google::protobuf::Message& GetRequestPrototype( const ::google::protobuf::MethodDescriptor* method) const; const ::google::protobuf::Message& GetResponsePrototype( const ::google::protobuf::MethodDescriptor* method) const; private: GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(PingService); }; class PingService_Stub : public PingService { public: PingService_Stub(::google::protobuf::RpcChannel* channel); PingService_Stub(::google::protobuf::RpcChannel* channel, ::google::protobuf::Service::ChannelOwnership ownership); ~PingService_Stub(); inline ::google::protobuf::RpcChannel* channel() { return channel_; } // implements PingService ------------------------------------------ void Ping(::google::protobuf::RpcController* controller, const ::Messages::PingRequest* request, ::Messages::PingReply* response, ::google::protobuf::Closure* done); void Ping2(::google::protobuf::RpcController* controller, const ::Messages::PingRequest* request, ::Messages::PingReply* response, ::google::protobuf::Closure* done); private: ::google::protobuf::RpcChannel* channel_; bool owns_channel_; GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(PingService_Stub); }; // =================================================================== // =================================================================== // PingRequest // optional 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::GetEmptyStringAlreadyInited()) { text_->clear(); } clear_has_text(); } inline const ::std::string& PingRequest::text() const { // @@protoc_insertion_point(field_get:Messages.PingRequest.text) return *text_; } inline void PingRequest::set_text(const ::std::string& value) { set_has_text(); if (text_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { text_ = new ::std::string; } text_->assign(value); // @@protoc_insertion_point(field_set:Messages.PingRequest.text) } inline void PingRequest::set_text(const char* value) { set_has_text(); if (text_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { text_ = new ::std::string; } text_->assign(value); // @@protoc_insertion_point(field_set_char:Messages.PingRequest.text) } inline void PingRequest::set_text(const char* value, size_t size) { set_has_text(); if (text_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { text_ = new ::std::string; } text_->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:Messages.PingRequest.text) } inline ::std::string* PingRequest::mutable_text() { set_has_text(); if (text_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { text_ = new ::std::string; } // @@protoc_insertion_point(field_mutable:Messages.PingRequest.text) return text_; } inline ::std::string* PingRequest::release_text() { clear_has_text(); if (text_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { return NULL; } else { ::std::string* temp = text_; text_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); return temp; } } inline void PingRequest::set_allocated_text(::std::string* text) { if (text_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { delete text_; } if (text) { set_has_text(); text_ = text; } else { clear_has_text(); text_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } // @@protoc_insertion_point(field_set_allocated:Messages.PingRequest.text) } // ------------------------------------------------------------------- // PingReply // optional string text = 1; inline bool PingReply::has_text() const { return (_has_bits_[0] & 0x00000001u) != 0; } inline void PingReply::set_has_text() { _has_bits_[0] |= 0x00000001u; } inline void PingReply::clear_has_text() { _has_bits_[0] &= ~0x00000001u; } inline void PingReply::clear_text() { if (text_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { text_->clear(); } clear_has_text(); } inline const ::std::string& PingReply::text() const { // @@protoc_insertion_point(field_get:Messages.PingReply.text) return *text_; } inline void PingReply::set_text(const ::std::string& value) { set_has_text(); if (text_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { text_ = new ::std::string; } text_->assign(value); // @@protoc_insertion_point(field_set:Messages.PingReply.text) } inline void PingReply::set_text(const char* value) { set_has_text(); if (text_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { text_ = new ::std::string; } text_->assign(value); // @@protoc_insertion_point(field_set_char:Messages.PingReply.text) } inline void PingReply::set_text(const char* value, size_t size) { set_has_text(); if (text_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { text_ = new ::std::string; } text_->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:Messages.PingReply.text) } inline ::std::string* PingReply::mutable_text() { set_has_text(); if (text_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { text_ = new ::std::string; } // @@protoc_insertion_point(field_mutable:Messages.PingReply.text) return text_; } inline ::std::string* PingReply::release_text() { clear_has_text(); if (text_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { return NULL; } else { ::std::string* temp = text_; text_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); return temp; } } inline void PingReply::set_allocated_text(::std::string* text) { if (text_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { delete text_; } if (text) { set_has_text(); text_ = text; } else { clear_has_text(); text_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } // @@protoc_insertion_point(field_set_allocated:Messages.PingReply.text) } // @@protoc_insertion_point(namespace_scope) } // namespace Messages #ifndef SWIG namespace google { namespace protobuf { } // namespace google } // namespace protobuf #endif // SWIG // @@protoc_insertion_point(global_scope) #endif // PROTOBUF_Messages_2eproto__INCLUDED