@java.lang.Override
      public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
          return true;
        }
        if (!(obj
            instanceof
            com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy
                .ConfidenceScoreIndexConfig)) {
          return super.equals(obj);
        }
        com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig
            other =
                (com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy
                        .ConfidenceScoreIndexConfig)
                    obj;

        if (!getFieldPath().equals(other.getFieldPath())) return false;
        if (java.lang.Float.floatToIntBits(getThreshold())
            != java.lang.Float.floatToIntBits(other.getThreshold())) return false;
        if (!getUnknownFields().equals(other.getUnknownFields())) return false;
        return true;
      }
<pre>
Required. The threshold.
</pre>

<code>float threshold = 2 [(.google.api.field_behavior) = REQUIRED];</code>

@return The threshold.
java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/DataSchemaDetails.java