@CanIgnoreReturnValue
    public Builder setSafetySettings(List<SafetySetting> safetySettings) {
      checkNotNull(
          safetySettings,
          "safetySettings can't be null. Use an empty list if no safety settings is intended.");
      this.safetySettings = ImmutableList.copyOf(safetySettings);
      return this;
    }
Sets a list of {@link com.google.cloud.vertexai.api.SafetySetting} that will be used by
default to interact with the generative model.
java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/GenerativeModel.java