@java.lang.Override
  public com.google.cloud.vertexai.api.HarmCategory getCategory() {
    com.google.cloud.vertexai.api.HarmCategory result =
        com.google.cloud.vertexai.api.HarmCategory.forNumber(category_);
    return result == null ? com.google.cloud.vertexai.api.HarmCategory.UNRECOGNIZED : result;
  }
<pre>
Required. Harm category.
</pre>

<code>
.google.cloud.vertexai.v1.HarmCategory category = 1 [(.google.api.field_behavior) = REQUIRED];
</code>

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