public Builder mergeFrom(com.google.cloud.vertexai.api.RagRetrievalConfig.Ranking other) {
        if (other == com.google.cloud.vertexai.api.RagRetrievalConfig.Ranking.getDefaultInstance())
          return this;
        switch (other.getRankingConfigCase()) {
          case RANK_SERVICE:
            {
              mergeRankService(other.getRankService());
              break;
            }
          case LLM_RANKER:
            {
              mergeLlmRanker(other.getLlmRanker());
              break;
            }
          case RANKINGCONFIG_NOT_SET:
            {
              break;
            }
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }
<pre>
Config for ranking and reranking.
</pre>

Protobuf type {@code google.cloud.vertexai.v1.RagRetrievalConfig.Ranking}
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/RagRetrievalConfig.java