public boolean hasThreatConfidence() {
      return ((bitField0_ & 0x00000002) != 0);
    }
<pre>
Confidence that the URI is unsafe.
</pre>

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

@return Whether the threatConfidence field is set.
java-webrisk/proto-google-cloud-webrisk-v1/src/main/java/com/google/webrisk/v1/ThreatInfo.java