public sealed class ThreatInfo.Types.Confidence : IMessage<ThreatInfo.Types.Confidence>, IEquatable<ThreatInfo.Types.Confidence>, IDeepCloneable<ThreatInfo.Types.Confidence>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Web Risk v1 API class ThreatInfo.Types.Confidence.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe latest version of the Google Cloud Web Risk v1 API documentation for \u003ccode\u003eThreatInfo.Types.Confidence\u003c/code\u003e is version 2.6.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eThreatInfo.Types.Confidence\u003c/code\u003e class in the Google Cloud Web Risk v1 API represents the confidence level that a URI is unsafe.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties such as \u003ccode\u003eHasLevel\u003c/code\u003e, \u003ccode\u003eHasScore\u003c/code\u003e, \u003ccode\u003eLevel\u003c/code\u003e, and \u003ccode\u003eScore\u003c/code\u003e to specify different aspects of the confidence level, along with two constructors.\u003c/p\u003e\n"],["\u003cp\u003eThis class offers two ways of expressing the level of confidence: a categorical \u003ccode\u003eConfidenceLevel\u003c/code\u003e or a decimal \u003ccode\u003eScore\u003c/code\u003e ranging from 0 to 1.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Web Risk v1 API - Class ThreatInfo.Types.Confidence (2.7.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.7.0 (latest)](/dotnet/docs/reference/Google.Cloud.WebRisk.V1/latest/Google.Cloud.WebRisk.V1.ThreatInfo.Types.Confidence)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.WebRisk.V1/2.6.0/Google.Cloud.WebRisk.V1.ThreatInfo.Types.Confidence)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.WebRisk.V1/2.5.0/Google.Cloud.WebRisk.V1.ThreatInfo.Types.Confidence)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.WebRisk.V1/2.4.0/Google.Cloud.WebRisk.V1.ThreatInfo.Types.Confidence)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.WebRisk.V1/2.3.0/Google.Cloud.WebRisk.V1.ThreatInfo.Types.Confidence)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.WebRisk.V1/2.2.0/Google.Cloud.WebRisk.V1.ThreatInfo.Types.Confidence)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.WebRisk.V1/2.1.0/Google.Cloud.WebRisk.V1.ThreatInfo.Types.Confidence)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.WebRisk.V1/2.0.0/Google.Cloud.WebRisk.V1.ThreatInfo.Types.Confidence)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.WebRisk.V1/1.3.0/Google.Cloud.WebRisk.V1.ThreatInfo.Types.Confidence)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.WebRisk.V1/1.2.0/Google.Cloud.WebRisk.V1.ThreatInfo.Types.Confidence) \n\n public sealed class ThreatInfo.Types.Confidence : IMessage\u003cThreatInfo.Types.Confidence\u003e, IEquatable\u003cThreatInfo.Types.Confidence\u003e, IDeepCloneable\u003cThreatInfo.Types.Confidence\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Web Risk v1 API class ThreatInfo.Types.Confidence.\n\nConfidence that a URI is unsafe. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ThreatInfo.Types.Confidence \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ThreatInfo](/dotnet/docs/reference/Google.Cloud.WebRisk.V1/latest/Google.Cloud.WebRisk.V1.ThreatInfo)[Types](/dotnet/docs/reference/Google.Cloud.WebRisk.V1/latest/Google.Cloud.WebRisk.V1.ThreatInfo.Types)[Confidence](/dotnet/docs/reference/Google.Cloud.WebRisk.V1/latest/Google.Cloud.WebRisk.V1.ThreatInfo.Types.Confidence), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ThreatInfo](/dotnet/docs/reference/Google.Cloud.WebRisk.V1/latest/Google.Cloud.WebRisk.V1.ThreatInfo)[Types](/dotnet/docs/reference/Google.Cloud.WebRisk.V1/latest/Google.Cloud.WebRisk.V1.ThreatInfo.Types)[Confidence](/dotnet/docs/reference/Google.Cloud.WebRisk.V1/latest/Google.Cloud.WebRisk.V1.ThreatInfo.Types.Confidence), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ThreatInfo](/dotnet/docs/reference/Google.Cloud.WebRisk.V1/latest/Google.Cloud.WebRisk.V1.ThreatInfo)[Types](/dotnet/docs/reference/Google.Cloud.WebRisk.V1/latest/Google.Cloud.WebRisk.V1.ThreatInfo.Types)[Confidence](/dotnet/docs/reference/Google.Cloud.WebRisk.V1/latest/Google.Cloud.WebRisk.V1.ThreatInfo.Types.Confidence), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.WebRisk.V1](/dotnet/docs/reference/Google.Cloud.WebRisk.V1/latest/Google.Cloud.WebRisk.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.WebRisk.V1.dll\n\nConstructors\n------------\n\n### Confidence()\n\n public Confidence()\n\n### Confidence(Confidence)\n\n public Confidence(ThreatInfo.Types.Confidence other)\n\nProperties\n----------\n\n### HasLevel\n\n public bool HasLevel { get; }\n\nGets whether the \"level\" field is set\n\n### HasScore\n\n public bool HasScore { get; }\n\nGets whether the \"score\" field is set\n\n### Level\n\n public ThreatInfo.Types.Confidence.Types.ConfidenceLevel Level { get; set; }\n\nEnum representation of confidence.\n\n### Score\n\n public float Score { get; set; }\n\nA decimal representation of confidence in the range of 0\nto 1 where 0 indicates no confidence and 1 indicates\ncomplete confidence.\n\n### ValueCase\n\n public ThreatInfo.Types.Confidence.ValueOneofCase ValueCase { get; }"]]