@java.lang.Override
    public boolean hasDynamicThreshold() {
      return ((bitField0_ & 0x00000002) != 0);
    }
<pre>
Optional. The threshold to be used in dynamic retrieval.
If not set, a system default value is used.
</pre>

<code>optional float dynamic_threshold = 2 [(.google.api.field_behavior) = OPTIONAL];</code>

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