@java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
        return true;
      }
      if (!(obj instanceof com.google.webrisk.v1.ThreatInfo.Confidence)) {
        return super.equals(obj);
      }
      com.google.webrisk.v1.ThreatInfo.Confidence other =
          (com.google.webrisk.v1.ThreatInfo.Confidence) obj;

      if (!getValueCase().equals(other.getValueCase())) return false;
      switch (valueCase_) {
        case 1:
          if (java.lang.Float.floatToIntBits(getScore())
              != java.lang.Float.floatToIntBits(other.getScore())) return false;
          break;
        case 2:
          if (getLevelValue() != other.getLevelValue()) return false;
          break;
        case 0:
        default:
      }
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }
<pre>
Enum representation of confidence.
</pre>

<code>.google.cloud.webrisk.v1.ThreatInfo.Confidence.ConfidenceLevel level = 2;</code>

@return The level.
java-webrisk/proto-google-cloud-webrisk-v1/src/main/java/com/google/webrisk/v1/ThreatInfo.java