If you have the Google Workspace Integration switched on, it's possible for your employees to automatically set their Out of Office when they submit a leave request.
You do not need to do anything to enable the functionality as it is part of the integration. However, it is possible to set up a company wide default message.
To do this, go to Leave > Admin & Config > General Settings > Gmail Out of Office.
Edit the settings as necessary and click Save Changes.