// 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 #include // @@protoc_insertion_point(includes) namespace iv { // Internal implementation detail -- do not call these. void protobuf_AddDesc_echo_2eproto(); void protobuf_AssignDesc_echo_2eproto(); void protobuf_ShutdownFile_echo_2eproto(); class EchoRequest; class EchoResponse; // =================================================================== class EchoRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:iv.EchoRequest) */ { public: EchoRequest(); virtual ~EchoRequest(); EchoRequest(const EchoRequest& from); inline EchoRequest& operator=(const EchoRequest& from) { CopyFrom(from); return *this; } inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } 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* InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* output) const; ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { return InternalSerializeWithCachedSizesToArray(false, output); } 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 ------------------------------------------------------- // required string msgname = 1; bool has_msgname() const; void clear_msgname(); static const int kMsgnameFieldNumber = 1; const ::std::string& msgname() const; void set_msgname(const ::std::string& value); void set_msgname(const char* value); void set_msgname(const char* value, size_t size); ::std::string* mutable_msgname(); ::std::string* release_msgname(); void set_allocated_msgname(::std::string* msgname); // required int64 index = 2; bool has_index() const; void clear_index(); static const int kIndexFieldNumber = 2; ::google::protobuf::int64 index() const; void set_index(::google::protobuf::int64 value); // required int32 nlen = 3; bool has_nlen() const; void clear_nlen(); static const int kNlenFieldNumber = 3; ::google::protobuf::int32 nlen() const; void set_nlen(::google::protobuf::int32 value); // optional bytes xdata = 4; bool has_xdata() const; void clear_xdata(); static const int kXdataFieldNumber = 4; const ::std::string& xdata() const; void set_xdata(const ::std::string& value); void set_xdata(const char* value); void set_xdata(const void* value, size_t size); ::std::string* mutable_xdata(); ::std::string* release_xdata(); void set_allocated_xdata(::std::string* xdata); // @@protoc_insertion_point(class_scope:iv.EchoRequest) private: inline void set_has_msgname(); inline void clear_has_msgname(); inline void set_has_index(); inline void clear_has_index(); inline void set_has_nlen(); inline void clear_has_nlen(); inline void set_has_xdata(); inline void clear_has_xdata(); // helper for ByteSize() int RequiredFieldsByteSizeFallback() const; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::uint32 _has_bits_[1]; mutable int _cached_size_; ::google::protobuf::internal::ArenaStringPtr msgname_; ::google::protobuf::int64 index_; ::google::protobuf::internal::ArenaStringPtr xdata_; ::google::protobuf::int32 nlen_; 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 EchoResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:iv.EchoResponse) */ { public: EchoResponse(); virtual ~EchoResponse(); EchoResponse(const EchoResponse& from); inline EchoResponse& operator=(const EchoResponse& from) { CopyFrom(from); return *this; } inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } static const ::google::protobuf::Descriptor* descriptor(); static const EchoResponse& default_instance(); void Swap(EchoResponse* other); // implements Message ---------------------------------------------- inline EchoResponse* New() const { return New(NULL); } EchoResponse* New(::google::protobuf::Arena* arena) const; void CopyFrom(const ::google::protobuf::Message& from); void MergeFrom(const ::google::protobuf::Message& from); void CopyFrom(const EchoResponse& from); void MergeFrom(const EchoResponse& 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* InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* output) const; ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { return InternalSerializeWithCachedSizesToArray(false, output); } int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; void InternalSwap(EchoResponse* 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 ------------------------------------------------------- // required string msgname = 1; bool has_msgname() const; void clear_msgname(); static const int kMsgnameFieldNumber = 1; const ::std::string& msgname() const; void set_msgname(const ::std::string& value); void set_msgname(const char* value); void set_msgname(const char* value, size_t size); ::std::string* mutable_msgname(); ::std::string* release_msgname(); void set_allocated_msgname(::std::string* msgname); // required int64 index = 2; bool has_index() const; void clear_index(); static const int kIndexFieldNumber = 2; ::google::protobuf::int64 index() const; void set_index(::google::protobuf::int64 value); // @@protoc_insertion_point(class_scope:iv.EchoResponse) private: inline void set_has_msgname(); inline void clear_has_msgname(); inline void set_has_index(); inline void clear_has_index(); // helper for ByteSize() int RequiredFieldsByteSizeFallback() const; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::uint32 _has_bits_[1]; mutable int _cached_size_; ::google::protobuf::internal::ArenaStringPtr msgname_; ::google::protobuf::int64 index_; friend void protobuf_AddDesc_echo_2eproto(); friend void protobuf_AssignDesc_echo_2eproto(); friend void protobuf_ShutdownFile_echo_2eproto(); void InitAsDefaultInstance(); static EchoResponse* default_instance_; }; // =================================================================== class EchoService_Stub; class EchoService : public ::google::protobuf::Service { protected: // This class should be treated as an abstract interface. inline EchoService() {}; public: virtual ~EchoService(); typedef EchoService_Stub Stub; static const ::google::protobuf::ServiceDescriptor* descriptor(); virtual void Echo(::google::protobuf::RpcController* controller, const ::iv::EchoRequest* request, ::iv::EchoResponse* 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(EchoService); }; class EchoService_Stub : public EchoService { public: EchoService_Stub(::google::protobuf::RpcChannel* channel); EchoService_Stub(::google::protobuf::RpcChannel* channel, ::google::protobuf::Service::ChannelOwnership ownership); ~EchoService_Stub(); inline ::google::protobuf::RpcChannel* channel() { return channel_; } // implements EchoService ------------------------------------------ void Echo(::google::protobuf::RpcController* controller, const ::iv::EchoRequest* request, ::iv::EchoResponse* response, ::google::protobuf::Closure* done); private: ::google::protobuf::RpcChannel* channel_; bool owns_channel_; GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(EchoService_Stub); }; // =================================================================== // =================================================================== #if !PROTOBUF_INLINE_NOT_IN_HEADERS // EchoRequest // required string msgname = 1; inline bool EchoRequest::has_msgname() const { return (_has_bits_[0] & 0x00000001u) != 0; } inline void EchoRequest::set_has_msgname() { _has_bits_[0] |= 0x00000001u; } inline void EchoRequest::clear_has_msgname() { _has_bits_[0] &= ~0x00000001u; } inline void EchoRequest::clear_msgname() { msgname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); clear_has_msgname(); } inline const ::std::string& EchoRequest::msgname() const { // @@protoc_insertion_point(field_get:iv.EchoRequest.msgname) return msgname_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline void EchoRequest::set_msgname(const ::std::string& value) { set_has_msgname(); msgname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:iv.EchoRequest.msgname) } inline void EchoRequest::set_msgname(const char* value) { set_has_msgname(); msgname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:iv.EchoRequest.msgname) } inline void EchoRequest::set_msgname(const char* value, size_t size) { set_has_msgname(); msgname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:iv.EchoRequest.msgname) } inline ::std::string* EchoRequest::mutable_msgname() { set_has_msgname(); // @@protoc_insertion_point(field_mutable:iv.EchoRequest.msgname) return msgname_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* EchoRequest::release_msgname() { // @@protoc_insertion_point(field_release:iv.EchoRequest.msgname) clear_has_msgname(); return msgname_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline void EchoRequest::set_allocated_msgname(::std::string* msgname) { if (msgname != NULL) { set_has_msgname(); } else { clear_has_msgname(); } msgname_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), msgname); // @@protoc_insertion_point(field_set_allocated:iv.EchoRequest.msgname) } // required int64 index = 2; inline bool EchoRequest::has_index() const { return (_has_bits_[0] & 0x00000002u) != 0; } inline void EchoRequest::set_has_index() { _has_bits_[0] |= 0x00000002u; } inline void EchoRequest::clear_has_index() { _has_bits_[0] &= ~0x00000002u; } inline void EchoRequest::clear_index() { index_ = GOOGLE_LONGLONG(0); clear_has_index(); } inline ::google::protobuf::int64 EchoRequest::index() const { // @@protoc_insertion_point(field_get:iv.EchoRequest.index) return index_; } inline void EchoRequest::set_index(::google::protobuf::int64 value) { set_has_index(); index_ = value; // @@protoc_insertion_point(field_set:iv.EchoRequest.index) } // required int32 nlen = 3; inline bool EchoRequest::has_nlen() const { return (_has_bits_[0] & 0x00000004u) != 0; } inline void EchoRequest::set_has_nlen() { _has_bits_[0] |= 0x00000004u; } inline void EchoRequest::clear_has_nlen() { _has_bits_[0] &= ~0x00000004u; } inline void EchoRequest::clear_nlen() { nlen_ = 0; clear_has_nlen(); } inline ::google::protobuf::int32 EchoRequest::nlen() const { // @@protoc_insertion_point(field_get:iv.EchoRequest.nlen) return nlen_; } inline void EchoRequest::set_nlen(::google::protobuf::int32 value) { set_has_nlen(); nlen_ = value; // @@protoc_insertion_point(field_set:iv.EchoRequest.nlen) } // optional bytes xdata = 4; inline bool EchoRequest::has_xdata() const { return (_has_bits_[0] & 0x00000008u) != 0; } inline void EchoRequest::set_has_xdata() { _has_bits_[0] |= 0x00000008u; } inline void EchoRequest::clear_has_xdata() { _has_bits_[0] &= ~0x00000008u; } inline void EchoRequest::clear_xdata() { xdata_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); clear_has_xdata(); } inline const ::std::string& EchoRequest::xdata() const { // @@protoc_insertion_point(field_get:iv.EchoRequest.xdata) return xdata_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline void EchoRequest::set_xdata(const ::std::string& value) { set_has_xdata(); xdata_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:iv.EchoRequest.xdata) } inline void EchoRequest::set_xdata(const char* value) { set_has_xdata(); xdata_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:iv.EchoRequest.xdata) } inline void EchoRequest::set_xdata(const void* value, size_t size) { set_has_xdata(); xdata_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:iv.EchoRequest.xdata) } inline ::std::string* EchoRequest::mutable_xdata() { set_has_xdata(); // @@protoc_insertion_point(field_mutable:iv.EchoRequest.xdata) return xdata_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* EchoRequest::release_xdata() { // @@protoc_insertion_point(field_release:iv.EchoRequest.xdata) clear_has_xdata(); return xdata_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline void EchoRequest::set_allocated_xdata(::std::string* xdata) { if (xdata != NULL) { set_has_xdata(); } else { clear_has_xdata(); } xdata_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), xdata); // @@protoc_insertion_point(field_set_allocated:iv.EchoRequest.xdata) } // ------------------------------------------------------------------- // EchoResponse // required string msgname = 1; inline bool EchoResponse::has_msgname() const { return (_has_bits_[0] & 0x00000001u) != 0; } inline void EchoResponse::set_has_msgname() { _has_bits_[0] |= 0x00000001u; } inline void EchoResponse::clear_has_msgname() { _has_bits_[0] &= ~0x00000001u; } inline void EchoResponse::clear_msgname() { msgname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); clear_has_msgname(); } inline const ::std::string& EchoResponse::msgname() const { // @@protoc_insertion_point(field_get:iv.EchoResponse.msgname) return msgname_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline void EchoResponse::set_msgname(const ::std::string& value) { set_has_msgname(); msgname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:iv.EchoResponse.msgname) } inline void EchoResponse::set_msgname(const char* value) { set_has_msgname(); msgname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:iv.EchoResponse.msgname) } inline void EchoResponse::set_msgname(const char* value, size_t size) { set_has_msgname(); msgname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:iv.EchoResponse.msgname) } inline ::std::string* EchoResponse::mutable_msgname() { set_has_msgname(); // @@protoc_insertion_point(field_mutable:iv.EchoResponse.msgname) return msgname_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* EchoResponse::release_msgname() { // @@protoc_insertion_point(field_release:iv.EchoResponse.msgname) clear_has_msgname(); return msgname_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline void EchoResponse::set_allocated_msgname(::std::string* msgname) { if (msgname != NULL) { set_has_msgname(); } else { clear_has_msgname(); } msgname_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), msgname); // @@protoc_insertion_point(field_set_allocated:iv.EchoResponse.msgname) } // required int64 index = 2; inline bool EchoResponse::has_index() const { return (_has_bits_[0] & 0x00000002u) != 0; } inline void EchoResponse::set_has_index() { _has_bits_[0] |= 0x00000002u; } inline void EchoResponse::clear_has_index() { _has_bits_[0] &= ~0x00000002u; } inline void EchoResponse::clear_index() { index_ = GOOGLE_LONGLONG(0); clear_has_index(); } inline ::google::protobuf::int64 EchoResponse::index() const { // @@protoc_insertion_point(field_get:iv.EchoResponse.index) return index_; } inline void EchoResponse::set_index(::google::protobuf::int64 value) { set_has_index(); index_ = value; // @@protoc_insertion_point(field_set:iv.EchoResponse.index) } #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS // ------------------------------------------------------------------- // @@protoc_insertion_point(namespace_scope) } // namespace iv // @@protoc_insertion_point(global_scope) #endif // PROTOBUF_echo_2eproto__INCLUDED