public Builder mergeFrom(com.google.cloud.vertexai.api.Retrieval other) {
      if (other == com.google.cloud.vertexai.api.Retrieval.getDefaultInstance()) return this;
      if (other.getDisableAttribution() != false) {
        setDisableAttribution(other.getDisableAttribution());
      }
      switch (other.getSourceCase()) {
        case VERTEX_AI_SEARCH:
          {
            mergeVertexAiSearch(other.getVertexAiSearch());
            break;
          }
        case VERTEX_RAG_STORE:
          {
            mergeVertexRagStore(other.getVertexRagStore());
            break;
          }
        case SOURCE_NOT_SET:
          {
            break;
          }
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }
<pre>
Defines a retrieval tool that model can call to access external knowledge.
</pre>

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