@java.lang.Override
  public boolean hasVertexAiSearch() {
    return sourceCase_ == 2;
  }
<pre>
Set to use data source powered by Vertex AI Search.
</pre>

<code>.google.cloud.vertexai.v1.VertexAISearch vertex_ai_search = 2;</code>

@return Whether the vertexAiSearch field is set.
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Retrieval.java