public com.google.cloud.vertexai.api.DynamicRetrievalConfigOrBuilder
        getDynamicRetrievalConfigOrBuilder() {
      if (dynamicRetrievalConfigBuilder_ != null) {
        return dynamicRetrievalConfigBuilder_.getMessageOrBuilder();
      } else {
        return dynamicRetrievalConfig_ == null
            ? com.google.cloud.vertexai.api.DynamicRetrievalConfig.getDefaultInstance()
            : dynamicRetrievalConfig_;
      }
    }
<pre>
Specifies the dynamic retrieval configuration for the given source.
</pre>

<code>.google.cloud.vertexai.v1.DynamicRetrievalConfig dynamic_retrieval_config = 2;</code>
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GoogleSearchRetrieval.java