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.
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.
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
defscore()->::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=
defscore=(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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Web Risk V1 API - Class Google::Cloud::WebRisk::V1::ThreatInfo::Confidence (v1.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.0 (latest)](/ruby/docs/reference/google-cloud-web_risk-v1/latest/Google-Cloud-WebRisk-V1-ThreatInfo-Confidence)\n- [1.3.1](/ruby/docs/reference/google-cloud-web_risk-v1/1.3.1/Google-Cloud-WebRisk-V1-ThreatInfo-Confidence)\n- [1.2.0](/ruby/docs/reference/google-cloud-web_risk-v1/1.2.0/Google-Cloud-WebRisk-V1-ThreatInfo-Confidence)\n- [1.1.0](/ruby/docs/reference/google-cloud-web_risk-v1/1.1.0/Google-Cloud-WebRisk-V1-ThreatInfo-Confidence)\n- [1.0.2](/ruby/docs/reference/google-cloud-web_risk-v1/1.0.2/Google-Cloud-WebRisk-V1-ThreatInfo-Confidence)\n- [0.12.0](/ruby/docs/reference/google-cloud-web_risk-v1/0.12.0/Google-Cloud-WebRisk-V1-ThreatInfo-Confidence)\n- [0.11.2](/ruby/docs/reference/google-cloud-web_risk-v1/0.11.2/Google-Cloud-WebRisk-V1-ThreatInfo-Confidence)\n- [0.10.0](/ruby/docs/reference/google-cloud-web_risk-v1/0.10.0/Google-Cloud-WebRisk-V1-ThreatInfo-Confidence)\n- [0.9.1](/ruby/docs/reference/google-cloud-web_risk-v1/0.9.1/Google-Cloud-WebRisk-V1-ThreatInfo-Confidence)\n- [0.8.0](/ruby/docs/reference/google-cloud-web_risk-v1/0.8.0/Google-Cloud-WebRisk-V1-ThreatInfo-Confidence)\n- [0.7.0](/ruby/docs/reference/google-cloud-web_risk-v1/0.7.0/Google-Cloud-WebRisk-V1-ThreatInfo-Confidence)\n- [0.6.0](/ruby/docs/reference/google-cloud-web_risk-v1/0.6.0/Google-Cloud-WebRisk-V1-ThreatInfo-Confidence)\n- [0.5.0](/ruby/docs/reference/google-cloud-web_risk-v1/0.5.0/Google-Cloud-WebRisk-V1-ThreatInfo-Confidence)\n- [0.4.5](/ruby/docs/reference/google-cloud-web_risk-v1/0.4.5/Google-Cloud-WebRisk-V1-ThreatInfo-Confidence) \nReference documentation and code samples for the Web Risk V1 API class Google::Cloud::WebRisk::V1::ThreatInfo::Confidence.\n\nConfidence that a URI is unsafe. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #level\n\n def level() -\u003e ::Google::Cloud::WebRisk::V1::ThreatInfo::Confidence::ConfidenceLevel\n\n**Returns**\n\n- ([::Google::Cloud::WebRisk::V1::ThreatInfo::Confidence::ConfidenceLevel](./Google-Cloud-WebRisk-V1-ThreatInfo-Confidence-ConfidenceLevel)) --- Enum representation of confidence.\n\n\n 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.\n\n### #level=\n\n def level=(value) -\u003e ::Google::Cloud::WebRisk::V1::ThreatInfo::Confidence::ConfidenceLevel\n\n**Parameter**\n\n- **value** ([::Google::Cloud::WebRisk::V1::ThreatInfo::Confidence::ConfidenceLevel](./Google-Cloud-WebRisk-V1-ThreatInfo-Confidence-ConfidenceLevel)) --- Enum representation of confidence.\n\n\nNote: 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. \n**Returns**\n\n- ([::Google::Cloud::WebRisk::V1::ThreatInfo::Confidence::ConfidenceLevel](./Google-Cloud-WebRisk-V1-ThreatInfo-Confidence-ConfidenceLevel)) --- Enum representation of confidence.\n\n\n 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.\n\n### #score\n\n def score() -\u003e ::Float\n\n**Returns**\n\n- (::Float) --- A decimal representation of confidence in the range of 0 to 1 where 0 indicates no confidence and 1 indicates complete confidence.\n\n 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.\n\n### #score=\n\n def score=(value) -\u003e ::Float\n\n**Parameter**\n\n- **value** (::Float) --- A decimal representation of confidence in the range of 0 to 1 where 0 indicates no confidence and 1 indicates complete confidence.\n\n\nNote: 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. \n**Returns**\n\n- (::Float) --- A decimal representation of confidence in the range of 0 to 1 where 0 indicates no confidence and 1 indicates complete confidence.\n\n 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."]]