code: public Rpc rpc(String name) {
      for (Rpc rpc : rpcs) {
        if (rpc.name().equals(name)) {
          return rpc;
        }
      }
      return null;
    }
docs: Returns the RPC named {@code name}, or null if this service has no such method.