public com.google.cloud.vertexai.api.SafetySetting getSafetySettings(int index) {
      if (safetySettingsBuilder_ == null) {
        return safetySettings_.get(index);
      } else {
        return safetySettingsBuilder_.getMessage(index);
      }
    }
<pre>
Optional. Per request settings for blocking unsafe content.
Enforced on GenerateContentResponse.candidates.
</pre>

<code>
repeated .google.cloud.vertexai.v1.SafetySetting safety_settings = 3 [(.google.api.field_behavior) = OPTIONAL];
</code>
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerateContentRequest.java