@java.lang.Override
  public com.google.cloud.vertexai.api.SafetySetting.HarmBlockThreshold getThreshold() {
    com.google.cloud.vertexai.api.SafetySetting.HarmBlockThreshold result =
        com.google.cloud.vertexai.api.SafetySetting.HarmBlockThreshold.forNumber(threshold_);
    return result == null
        ? com.google.cloud.vertexai.api.SafetySetting.HarmBlockThreshold.UNRECOGNIZED
        : result;
  }
<pre>
Required. The harm block threshold.
</pre>

<code>
.google.cloud.vertexai.v1.SafetySetting.HarmBlockThreshold threshold = 2 [(.google.api.field_behavior) = REQUIRED];
</code>

@return The threshold.
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/SafetySetting.java