@java.lang.Override
  public com.google.cloud.vertexai.api.SafetyRating.HarmProbability getProbability() {
    com.google.cloud.vertexai.api.SafetyRating.HarmProbability result =
        com.google.cloud.vertexai.api.SafetyRating.HarmProbability.forNumber(probability_);
    return result == null
        ? com.google.cloud.vertexai.api.SafetyRating.HarmProbability.UNRECOGNIZED
        : result;
  }
<pre>
Output only. Harm probability levels in the content.
</pre>

<code>
.google.cloud.vertexai.v1.SafetyRating.HarmProbability probability = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
</code>

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