100 #ifndef GOOGLE_PROTOBUF_SERVICE_H__
101 #define GOOGLE_PROTOBUF_SERVICE_H__
108 #error "You cannot SWIG proto headers"
111 #include <google/protobuf/port_def.inc>
123 class ServiceDescriptor;
124 class MethodDescriptor;
187 virtual const Message& GetRequestPrototype(
189 virtual const Message& GetResponsePrototype(
215 virtual void Reset() = 0;
221 virtual bool Failed()
const = 0;
231 virtual void StartCancel() = 0;
242 virtual void SetFailed(
const std::string& reason) = 0;
247 virtual bool IsCanceled()
const = 0;
256 virtual void NotifyOnCancel(
Closure* callback) = 0;
291 #include <google/protobuf/port_undef.inc>
293 #endif // GOOGLE_PROTOBUF_SERVICE_H__