class Protobuf::Rpc::Service
def rpc(method, request_type, response_type)
Generated service classes should call this method on themselves to add rpc methods
def rpc(method, request_type, response_type) rpcs[self] ||= {} rpcs[self][method] = RpcMethod.new self, method, request_type, response_type end