@java.lang.Override
    public com.google.cloud.vertexai.api.DynamicRetrievalConfig.Mode getMode() {
      com.google.cloud.vertexai.api.DynamicRetrievalConfig.Mode result =
          com.google.cloud.vertexai.api.DynamicRetrievalConfig.Mode.forNumber(mode_);
      return result == null
          ? com.google.cloud.vertexai.api.DynamicRetrievalConfig.Mode.UNRECOGNIZED
          : result;
    }
<pre>
The mode of the predictor to be used in dynamic retrieval.
</pre>

<code>.google.cloud.vertexai.v1.DynamicRetrievalConfig.Mode mode = 1;</code>

@return The mode.
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/DynamicRetrievalConfig.java