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) — Enum representation of confidence.
#level=
def level=(value) -> ::Google::Cloud::WebRisk::V1::ThreatInfo::Confidence::ConfidenceLevel
Parameter
- value (::Google::Cloud::WebRisk::V1::ThreatInfo::Confidence::ConfidenceLevel) — Enum representation of confidence.
Returns
- (::Google::Cloud::WebRisk::V1::ThreatInfo::Confidence::ConfidenceLevel) — Enum representation of confidence.
#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.
#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.
Returns
- (::Float) — A decimal representation of confidence in the range of 0 to 1 where 0 indicates no confidence and 1 indicates complete confidence.