Web Risk V1 API - Class Google::Cloud::WebRisk::V1::ThreatInfo::Confidence (v0.10.0)

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

#level=

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

#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.