Add the setEndpoint method docs.