@java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
      return true;
    }
    if (!(obj instanceof com.google.cloud.vertexai.api.SafetySetting)) {
      return super.equals(obj);
    }
    com.google.cloud.vertexai.api.SafetySetting other =
        (com.google.cloud.vertexai.api.SafetySetting) obj;

    if (category_ != other.category_) return false;
    if (threshold_ != other.threshold_) return false;
    if (method_ != other.method_) return false;
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }
<pre>
Optional. Specify if the threshold is used for probability or severity
score. If not specified, the threshold is used for probability score.
</pre>

<code>
.google.cloud.vertexai.v1.SafetySetting.HarmBlockMethod method = 4 [(.google.api.field_behavior) = OPTIONAL];
</code>

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