# Web Risk V1 API - Class Google::Cloud::WebRisk::V1::ThreatInfo::Confidence (v1.8.0)

1.8.0 (latest) 1.7.1 1.6.1 1.5.0 1.4.0 1.3.1 1.2.0 1.1.0 1.0.2 0.12.0 0.11.2 0.10.0 0.9.1 0.8.0 0.7.0 0.6.0 0.5.0 0.4.5 Reference documentation and code samples for the Web Risk V1 API class Google::Cloud::WebRisk::V1::ThreatInfo::Confidence.

Confidence that a URI is unsafe.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #level

    def level() -> ::Google::Cloud::WebRisk::V1::ThreatInfo::Confidence::ConfidenceLevel

**Returns**

- ([::Google::Cloud::WebRisk::V1::ThreatInfo::Confidence::ConfidenceLevel](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_risk-v1/latest/Google-Cloud-WebRisk-V1-ThreatInfo-Confidence-ConfidenceLevel)) --- Enum representation of confidence.


  Note: The following fields are mutually exclusive: `level`, `score`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #level=

    def level=(value) -> ::Google::Cloud::WebRisk::V1::ThreatInfo::Confidence::ConfidenceLevel

**Parameter**

- **value** ([::Google::Cloud::WebRisk::V1::ThreatInfo::Confidence::ConfidenceLevel](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_risk-v1/latest/Google-Cloud-WebRisk-V1-ThreatInfo-Confidence-ConfidenceLevel)) --- Enum representation of confidence.


  Note: The following fields are mutually exclusive: `level`, `score`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::WebRisk::V1::ThreatInfo::Confidence::ConfidenceLevel](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_risk-v1/latest/Google-Cloud-WebRisk-V1-ThreatInfo-Confidence-ConfidenceLevel)) --- Enum representation of confidence.


  Note: The following fields are mutually exclusive: `level`, `score`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #score

    def score() -> ::Float

**Returns**

- (::Float) --- A decimal representation of confidence in the range of 0 to 1 where 0 indicates no confidence and 1 indicates complete confidence.

  Note: The following fields are mutually exclusive: `score`, `level`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #score=

    def score=(value) -> ::Float

**Parameter**

- **value** (::Float) --- A decimal representation of confidence in the range of 0 to 1 where 0 indicates no confidence and 1 indicates complete confidence.


  Note: The following fields are mutually exclusive: `score`, `level`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::Float) --- A decimal representation of confidence in the range of 0 to 1 where 0 indicates no confidence and 1 indicates complete confidence.

  Note: The following fields are mutually exclusive: `score`, `level`. If a field in that set is populated, all other fields in the set will automatically be cleared.