@java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
      return true;
    }
    if (!(obj instanceof com.google.cloud.vertexai.api.DynamicRetrievalConfig)) {
      return super.equals(obj);
    }
    com.google.cloud.vertexai.api.DynamicRetrievalConfig other =
        (com.google.cloud.vertexai.api.DynamicRetrievalConfig) obj;

    if (mode_ != other.mode_) return false;
    if (hasDynamicThreshold() != other.hasDynamicThreshold()) return false;
    if (hasDynamicThreshold()) {
      if (java.lang.Float.floatToIntBits(getDynamicThreshold())
          != java.lang.Float.floatToIntBits(other.getDynamicThreshold())) return false;
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }
<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