private void buildPartialOneofs(
          com.google.cloud.vertexai.api.RagRetrievalConfig.Ranking result) {
        result.rankingConfigCase_ = rankingConfigCase_;
        result.rankingConfig_ = this.rankingConfig_;
        if (rankingConfigCase_ == 1 && rankServiceBuilder_ != null) {
          result.rankingConfig_ = rankServiceBuilder_.build();
        }
        if (rankingConfigCase_ == 3 && llmRankerBuilder_ != null) {
          result.rankingConfig_ = llmRankerBuilder_.build();
        }
      }
<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