async function getProjectFloorSettings(projectId) {
  // [START modelarmor_get_project_floor_settings]
  /**
   * TODO(developer): Uncomment these variables before running the sample.
   */
  // const projectId = 'your-project-id';

  const name = `projects/${projectId}/locations/global/floorSetting`;

  // Imports the Modelarmor library
  const {ModelArmorClient} = require('@google-cloud/modelarmor').v1;

  // Instantiates a client
  const modelarmorClient = new ModelArmorClient();

  // Construct request
  const request = {
    name,
  };

  // Run request
  const [response] = await modelarmorClient.getFloorSetting(request);
  return response;
  // [END modelarmor_get_project_floor_settings]
}
Retrieves the floor settings for a Google Cloud project.

@param {string} projectId - The ID of the Google Cloud project for which to retrieve
                           floor settings.