class Protobuf::Rpc::Service

def rpc(method, request_type, response_type)

to the stack with a given request and 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