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,
50 CompletionCallback *done) = 0;
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_
A 0 arg, single use callback that returns void.
Definition: Callback.h:157
The namespace containing all OLA symbols.
Definition: Credentials.cpp:44
A RpcController object is passed every time an RPC is invoked and is used to indicate the success or ...
Definition: RpcController.h:42
Definition: RpcService.h:35