public Builder mergeVertexAiSearch(com.google.cloud.vertexai.api.VertexAISearch value) {
      if (vertexAiSearchBuilder_ == null) {
        if (sourceCase_ == 2
            && source_ != com.google.cloud.vertexai.api.VertexAISearch.getDefaultInstance()) {
          source_ =
              com.google.cloud.vertexai.api.VertexAISearch.newBuilder(
                      (com.google.cloud.vertexai.api.VertexAISearch) source_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          source_ = value;
        }
        onChanged();
      } else {
        if (sourceCase_ == 2) {
          vertexAiSearchBuilder_.mergeFrom(value);
        } else {
          vertexAiSearchBuilder_.setMessage(value);
        }
      }
      sourceCase_ = 2;
      return this;
    }
<pre>
Set to use data source powered by Vertex AI Search.
</pre>

<code>.google.cloud.vertexai.v1.VertexAISearch vertex_ai_search = 2;</code>
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Retrieval.java