public com.google.webrisk.v1.ThreatInfo.Confidence.ConfidenceLevel getLevel() {
      if (valueCase_ == 2) {
        com.google.webrisk.v1.ThreatInfo.Confidence.ConfidenceLevel result =
            com.google.webrisk.v1.ThreatInfo.Confidence.ConfidenceLevel.forNumber(
                (java.lang.Integer) value_);
        return result == null
            ? com.google.webrisk.v1.ThreatInfo.Confidence.ConfidenceLevel.UNRECOGNIZED
            : result;
      }
      return com.google.webrisk.v1.ThreatInfo.Confidence.ConfidenceLevel
          .CONFIDENCE_LEVEL_UNSPECIFIED;
    }
<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