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

    if (getTopK() != other.getTopK()) return false;
    if (hasFilter() != other.hasFilter()) return false;
    if (hasFilter()) {
      if (!getFilter().equals(other.getFilter())) return false;
    }
    if (hasRanking() != other.hasRanking()) return false;
    if (hasRanking()) {
      if (!getRanking().equals(other.getRanking())) return false;
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }
<pre>
Optional. Config for ranking and reranking.
</pre>

<code>
.google.cloud.vertexai.v1.RagRetrievalConfig.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL];
</code>
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/RagRetrievalConfig.java