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

    if (!getName().equals(other.getName())) return false;
    if (hasResponse() != other.hasResponse()) return false;
    if (hasResponse()) {
      if (!getResponse().equals(other.getResponse())) return false;
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }
<pre>
Required. The function response in JSON object format.
Use "output" key to specify function output and "error" key to specify
error details (if any). If "output" and "error" keys are not specified,
then whole "response" is treated as function output.
</pre>

<code>.google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED];</code>
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/FunctionResponse.java