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

    if (hasFunctionCallingConfig() != other.hasFunctionCallingConfig()) return false;
    if (hasFunctionCallingConfig()) {
      if (!getFunctionCallingConfig().equals(other.getFunctionCallingConfig())) return false;
    }
    if (hasRetrievalConfig() != other.hasRetrievalConfig()) return false;
    if (hasRetrievalConfig()) {
      if (!getRetrievalConfig().equals(other.getRetrievalConfig())) return false;
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }
<pre>
Optional. Retrieval config.
</pre>

<code>
.google.cloud.vertexai.v1.RetrievalConfig retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL];
</code>
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ToolConfig.java