// Generated by the protocol buffer compiler. DO NOT EDIT! // source: echo.proto #ifndef PROTOBUF_echo_2eproto__INCLUDED #define PROTOBUF_echo_2eproto__INCLUDED #include #include #if GOOGLE_PROTOBUF_VERSION < 3000000 #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 3000000 < 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 #include // @@protoc_insertion_point(includes) namespace echo { // Internal implementation detail -- do not call these. void protobuf_AddDesc_echo_2eproto(); void protobuf_AssignDesc_echo_2eproto(); void protobuf_ShutdownFile_echo_2eproto(); class AddRequest; class AddResponse; class EchoRequest; // =================================================================== class EchoRequest : public ::google::protobuf::Message { public: EchoRequest(); virtual ~EchoRequest(); EchoRequest(const EchoRequest& from); inline EchoRequest& operator=(const EchoRequest& from) { CopyFrom(from); return *this; } static const ::google::protobuf::Descriptor* descriptor(); static const EchoRequest& default_instance(); void Swap(EchoRequest* other); // implements Message ---------------------------------------------- inline EchoRequest* New() const { return New(NULL); } EchoRequest* New(::google::protobuf::Arena* arena) const; void CopyFrom(const ::google::protobuf::Message& from); void MergeFrom(const ::google::protobuf::Message& from); void CopyFrom(const EchoRequest& from); void MergeFrom(const EchoRequest& 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; void InternalSwap(EchoRequest* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return _internal_metadata_.arena(); } inline void* MaybeArenaPtr() const { return _internal_metadata_.raw_arena_ptr(); } public: ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // optional string message = 1; void clear_message(); static const int kMessageFieldNumber = 1; const ::std::string& message() const; void set_message(const ::std::string& value); void set_message(const char* value); void set_message(const char* value, size_t size); ::std::string* mutable_message(); ::std::string* release_message(); void set_allocated_message(::std::string* message); // @@protoc_insertion_point(class_scope:echo.EchoRequest) private: ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; bool _is_default_instance_; ::google::protobuf::internal::ArenaStringPtr message_; mutable int _cached_size_; friend void protobuf_AddDesc_echo_2eproto(); friend void protobuf_AssignDesc_echo_2eproto(); friend void protobuf_ShutdownFile_echo_2eproto(); void InitAsDefaultInstance(); static EchoRequest* default_instance_; }; // ------------------------------------------------------------------- class AddRequest : public ::google::protobuf::Message { public: AddRequest(); virtual ~AddRequest(); AddRequest(const AddRequest& from); inline AddRequest& operator=(const AddRequest& from) { CopyFrom(from); return *this; } static const ::google::protobuf::Descriptor* descriptor(); static const AddRequest& default_instance(); void Swap(AddRequest* other); // implements Message ---------------------------------------------- inline AddRequest* New() const { return New(NULL); } AddRequest* New(::google::protobuf::Arena* arena) const; void CopyFrom(const ::google::protobuf::Message& from); void MergeFrom(const ::google::protobuf::Message& from); void CopyFrom(const AddRequest& from); void MergeFrom(const AddRequest& 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; void InternalSwap(AddRequest* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return _internal_metadata_.arena(); } inline void* MaybeArenaPtr() const { return _internal_metadata_.raw_arena_ptr(); } public: ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // optional fixed32 addX = 1; void clear_addx(); static const int kAddXFieldNumber = 1; ::google::protobuf::uint32 addx() const; void set_addx(::google::protobuf::uint32 value); // optional fixed32 addY = 2; void clear_addy(); static const int kAddYFieldNumber = 2; ::google::protobuf::uint32 addy() const; void set_addy(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:echo.AddRequest) private: ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; bool _is_default_instance_; ::google::protobuf::uint32 addx_; ::google::protobuf::uint32 addy_; mutable int _cached_size_; friend void protobuf_AddDesc_echo_2eproto(); friend void protobuf_AssignDesc_echo_2eproto(); friend void protobuf_ShutdownFile_echo_2eproto(); void InitAsDefaultInstance(); static AddRequest* default_instance_; }; // ------------------------------------------------------------------- class AddResponse : public ::google::protobuf::Message { public: AddResponse(); virtual ~AddResponse(); AddResponse(const AddResponse& from); inline AddResponse& operator=(const AddResponse& from) { CopyFrom(from); return *this; } static const ::google::protobuf::Descriptor* descriptor(); static const AddResponse& default_instance(); void Swap(AddResponse* other); // implements Message ---------------------------------------------- inline AddResponse* New() const { return New(NULL); } AddResponse* New(::google::protobuf::Arena* arena) const; void CopyFrom(const ::google::protobuf::Message& from); void MergeFrom(const ::google::protobuf::Message& from); void CopyFrom(const AddResponse& from); void MergeFrom(const AddResponse& 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; void InternalSwap(AddResponse* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return _internal_metadata_.arena(); } inline void* MaybeArenaPtr() const { return _internal_metadata_.raw_arena_ptr(); } public: ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // optional fixed32 answer = 1; void clear_answer(); static const int kAnswerFieldNumber = 1; ::google::protobuf::uint32 answer() const; void set_answer(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:echo.AddResponse) private: ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; bool _is_default_instance_; ::google::protobuf::uint32 answer_; mutable int _cached_size_; friend void protobuf_AddDesc_echo_2eproto(); friend void protobuf_AssignDesc_echo_2eproto(); friend void protobuf_ShutdownFile_echo_2eproto(); void InitAsDefaultInstance(); static AddResponse* default_instance_; }; // =================================================================== // =================================================================== #if !PROTOBUF_INLINE_NOT_IN_HEADERS // EchoRequest // optional string message = 1; inline void EchoRequest::clear_message() { message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline const ::std::string& EchoRequest::message() const { // @@protoc_insertion_point(field_get:echo.EchoRequest.message) return message_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline void EchoRequest::set_message(const ::std::string& value) { message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:echo.EchoRequest.message) } inline void EchoRequest::set_message(const char* value) { message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:echo.EchoRequest.message) } inline void EchoRequest::set_message(const char* value, size_t size) { message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:echo.EchoRequest.message) } inline ::std::string* EchoRequest::mutable_message() { // @@protoc_insertion_point(field_mutable:echo.EchoRequest.message) return message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* EchoRequest::release_message() { return message_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline void EchoRequest::set_allocated_message(::std::string* message) { if (message != NULL) { } else { } message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), message); // @@protoc_insertion_point(field_set_allocated:echo.EchoRequest.message) } // ------------------------------------------------------------------- // AddRequest // optional fixed32 addX = 1; inline void AddRequest::clear_addx() { addx_ = 0u; } inline ::google::protobuf::uint32 AddRequest::addx() const { // @@protoc_insertion_point(field_get:echo.AddRequest.addX) return addx_; } inline void AddRequest::set_addx(::google::protobuf::uint32 value) { addx_ = value; // @@protoc_insertion_point(field_set:echo.AddRequest.addX) } // optional fixed32 addY = 2; inline void AddRequest::clear_addy() { addy_ = 0u; } inline ::google::protobuf::uint32 AddRequest::addy() const { // @@protoc_insertion_point(field_get:echo.AddRequest.addY) return addy_; } inline void AddRequest::set_addy(::google::protobuf::uint32 value) { addy_ = value; // @@protoc_insertion_point(field_set:echo.AddRequest.addY) } // ------------------------------------------------------------------- // AddResponse // optional fixed32 answer = 1; inline void AddResponse::clear_answer() { answer_ = 0u; } inline ::google::protobuf::uint32 AddResponse::answer() const { // @@protoc_insertion_point(field_get:echo.AddResponse.answer) return answer_; } inline void AddResponse::set_answer(::google::protobuf::uint32 value) { answer_ = value; // @@protoc_insertion_point(field_set:echo.AddResponse.answer) } #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS // ------------------------------------------------------------------- // ------------------------------------------------------------------- // @@protoc_insertion_point(namespace_scope) } // namespace echo // @@protoc_insertion_point(global_scope) #endif // PROTOBUF_echo_2eproto__INCLUDED