fun generateService(service: Service, onlyRpc: Rpc? = null): TypeSpec
If onlyRpc isn't null, this will generate code only for this onlyRpc; otherwise, all RPCs of the service will be code generated.