public Builder mergeRetrievalConfig(com.google.cloud.vertexai.api.RetrievalConfig value) {
      if (retrievalConfigBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0)
            && retrievalConfig_ != null
            && retrievalConfig_
                != com.google.cloud.vertexai.api.RetrievalConfig.getDefaultInstance()) {
          getRetrievalConfigBuilder().mergeFrom(value);
        } else {
          retrievalConfig_ = value;
        }
      } else {
        retrievalConfigBuilder_.mergeFrom(value);
      }
      if (retrievalConfig_ != null) {
        bitField0_ |= 0x00000002;
        onChanged();
      }
      return this;
    }
<pre>
Optional. Retrieval config.
</pre>

<code>
.google.cloud.vertexai.v1.RetrievalConfig retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL];
</code>
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ToolConfig.java