23 #ifndef COMMON_RPC_RPCSERVICE_H_
24 #define COMMON_RPC_RPCSERVICE_H_
26 #include <google/protobuf/service.h>
43 virtual const google::protobuf::ServiceDescriptor* GetDescriptor() = 0;
46 virtual void CallMethod(
const google::protobuf::MethodDescriptor *method,
48 const google::protobuf::Message *request,
49 google::protobuf::Message *response,
52 virtual const google::protobuf::Message& GetRequestPrototype(
53 const google::protobuf::MethodDescriptor *method)
const = 0;
54 virtual const google::protobuf::Message& GetResponsePrototype(
55 const google::protobuf::MethodDescriptor *method)
const = 0;
59 #endif // COMMON_RPC_RPCSERVICE_H_