Reference documentation and code samples for the Data Loss Prevention V2 Client class Likelihood.
Coarse-grained confidence level of how well a particular finding
satisfies the criteria to match a particular infoType.
Likelihood is calculated based on the number of signals a
finding has that implies that the finding matches the infoType. For
example, a string that has an '@' and a '.com' is more likely to be a
match for an email address than a string that only has an '@'.
In general, the highest likelihood level has the strongest signals that
indicate a match. That is, a finding with a high likelihood has a low chance
of being a false positive.
For more information about each likelihood level
and how likelihood works, seeMatch
likelihood.
Protobuf typegoogle.privacy.dlp.v2.Likelihood
Namespace
Google \ Cloud \ Dlp \ V2
Methods
static::name
Parameter
Name
Description
value
mixed
static::value
Parameter
Name
Description
name
mixed
Constants
LIKELIHOOD_UNSPECIFIED
Value: 0
Default value; same as POSSIBLE.
Generated from protobuf enumLIKELIHOOD_UNSPECIFIED = 0;
VERY_UNLIKELY
Value: 1
Highest chance of a false positive.
Generated from protobuf enumVERY_UNLIKELY = 1;
UNLIKELY
Value: 2
High chance of a false positive.
Generated from protobuf enumUNLIKELY = 2;
POSSIBLE
Value: 3
Some matching signals. The default value.
Generated from protobuf enumPOSSIBLE = 3;
LIKELY
Value: 4
Low chance of a false positive.
Generated from protobuf enumLIKELY = 4;
VERY_LIKELY
Value: 5
Confidence level is high. Lowest chance of a false positive.
[[["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,["# Data Loss Prevention V2 Client - Class Likelihood (2.6.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.6.1 (latest)](/php/docs/reference/cloud-dlp/latest/V2.Likelihood)\n- [2.6.0](/php/docs/reference/cloud-dlp/2.6.0/V2.Likelihood)\n- [2.4.1](/php/docs/reference/cloud-dlp/2.4.1/V2.Likelihood)\n- [2.3.0](/php/docs/reference/cloud-dlp/2.3.0/V2.Likelihood)\n- [2.2.3](/php/docs/reference/cloud-dlp/2.2.3/V2.Likelihood)\n- [2.1.0](/php/docs/reference/cloud-dlp/2.1.0/V2.Likelihood)\n- [2.0.0](/php/docs/reference/cloud-dlp/2.0.0/V2.Likelihood)\n- [1.19.0](/php/docs/reference/cloud-dlp/1.19.0/V2.Likelihood)\n- [1.18.0](/php/docs/reference/cloud-dlp/1.18.0/V2.Likelihood)\n- [1.17.0](/php/docs/reference/cloud-dlp/1.17.0/V2.Likelihood)\n- [1.16.0](/php/docs/reference/cloud-dlp/1.16.0/V2.Likelihood)\n- [1.15.1](/php/docs/reference/cloud-dlp/1.15.1/V2.Likelihood)\n- [1.14.0](/php/docs/reference/cloud-dlp/1.14.0/V2.Likelihood)\n- [1.13.2](/php/docs/reference/cloud-dlp/1.13.2/V2.Likelihood)\n- [1.12.0](/php/docs/reference/cloud-dlp/1.12.0/V2.Likelihood)\n- [1.11.0](/php/docs/reference/cloud-dlp/1.11.0/V2.Likelihood)\n- [1.10.2](/php/docs/reference/cloud-dlp/1.10.2/V2.Likelihood)\n- [1.9.0](/php/docs/reference/cloud-dlp/1.9.0/V2.Likelihood)\n- [1.8.6](/php/docs/reference/cloud-dlp/1.8.6/V2.Likelihood) \nReference documentation and code samples for the Data Loss Prevention V2 Client class Likelihood.\n\nCoarse-grained confidence level of how well a particular finding\nsatisfies the criteria to match a particular infoType.\n\nLikelihood is calculated based on the number of signals a\nfinding has that implies that the finding matches the infoType. For\nexample, a string that has an '@' and a '.com' is more likely to be a\nmatch for an email address than a string that only has an '@'.\nIn general, the highest likelihood level has the strongest signals that\nindicate a match. That is, a finding with a high likelihood has a low chance\nof being a false positive.\nFor more information about each likelihood level\nand how likelihood works, see [Match\nlikelihood](https://cloud.google.com/sensitive-data-protection/docs/likelihood).\n\nProtobuf type `google.privacy.dlp.v2.Likelihood`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dlp \\\\ V2\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### LIKELIHOOD_UNSPECIFIED\n\n Value: 0\n\nDefault value; same as POSSIBLE.\n\nGenerated from protobuf enum `LIKELIHOOD_UNSPECIFIED = 0;`\n\n### VERY_UNLIKELY\n\n Value: 1\n\nHighest chance of a false positive.\n\nGenerated from protobuf enum `VERY_UNLIKELY = 1;`\n\n### UNLIKELY\n\n Value: 2\n\nHigh chance of a false positive.\n\nGenerated from protobuf enum `UNLIKELY = 2;`\n\n### POSSIBLE\n\n Value: 3\n\nSome matching signals. The default value.\n\nGenerated from protobuf enum `POSSIBLE = 3;`\n\n### LIKELY\n\n Value: 4\n\nLow chance of a false positive.\n\nGenerated from protobuf enum `LIKELY = 4;`\n\n### VERY_LIKELY\n\n Value: 5\n\nConfidence level is high. Lowest chance of a false positive.\n\nGenerated from protobuf enum `VERY_LIKELY = 5;`"]]