@java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (mode_
        != com.google.cloud.vertexai.api.DynamicRetrievalConfig.Mode.MODE_UNSPECIFIED.getNumber()) {
      output.writeEnum(1, mode_);
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      output.writeFloat(2, dynamicThreshold_);
    }
    getUnknownFields().writeTo(output);
  }
<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 The dynamicThreshold.
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/DynamicRetrievalConfig.java