Reference documentation and code samples for the Data Loss Prevention V2 Client class Finding.
Represents a piece of potentially sensitive content.
Generated from protobuf messagegoogle.privacy.dlp.v2.Finding
Namespace
Google \ Cloud \ Dlp \ V2
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
Resource name in format projects/{project}/locations/{location}/findings/{finding} Populated only when viewing persisted findings.
↳ quote
string
The content that was found. Even if the content is not textual, it may be converted to a textual representation here. Provided ifinclude_quoteis true and the finding is less than or equal to 4096 bytes long. If the finding exceeds 4096 bytes in length, the quote may be omitted.
Contains data parsed from quotes. Only populated if include_quote was set to true and a supported infoType was requested. Currently supported infoTypes: DATE, DATE_OF_BIRTH and TIME.
↳ resource_name
string
The job that stored the finding.
↳ trigger_name
string
Job trigger name, if applicable, for this finding.
The labels associated with thisFinding. Label keys must be between 1 and 63 characters long and must conform to the following regular expression:[a-z]([-a-z0-9]*[a-z0-9])?. Label values must be between 0 and 63 characters long and must conform to the regular expression([a-z]([-a-z0-9]*[a-z0-9])?)?. No more than 10 labels can be associated with a given finding. Examples: * *"environment" : "production"* *"pipeline" : "etl"
Resource name in format
projects/{project}/locations/{location}/findings/{finding} Populated only
when viewing persisted findings.
Returns
Type
Description
string
setName
Resource name in format
projects/{project}/locations/{location}/findings/{finding} Populated only
when viewing persisted findings.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getQuote
The content that was found. Even if the content is not textual, it
may be converted to a textual representation here.
Provided ifinclude_quoteis true and the finding is
less than or equal to 4096 bytes long. If the finding exceeds 4096 bytes
in length, the quote may be omitted.
Returns
Type
Description
string
setQuote
The content that was found. Even if the content is not textual, it
may be converted to a textual representation here.
Provided ifinclude_quoteis true and the finding is
less than or equal to 4096 bytes long. If the finding exceeds 4096 bytes
in length, the quote may be omitted.
Contains data parsed from quotes. Only populated if include_quote was set
to true and a supported infoType was requested. Currently supported
infoTypes: DATE, DATE_OF_BIRTH and TIME.
Contains data parsed from quotes. Only populated if include_quote was set
to true and a supported infoType was requested. Currently supported
infoTypes: DATE, DATE_OF_BIRTH and TIME.
Job trigger name, if applicable, for this finding.
Returns
Type
Description
string
setTriggerName
Job trigger name, if applicable, for this finding.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getLabels
The labels associated with thisFinding.
Label keys must be between 1 and 63 characters long and must conform
to the following regular expression:[a-z]([-a-z0-9]*[a-z0-9])?.
Label values must be between 0 and 63 characters long and must conform
to the regular expression([a-z]([-a-z0-9]*[a-z0-9])?)?.
No more than 10 labels can be associated with a given finding.
Examples:
Label keys must be between 1 and 63 characters long and must conform
to the following regular expression:[a-z]([-a-z0-9]*[a-z0-9])?.
Label values must be between 0 and 63 characters long and must conform
to the regular expression([a-z]([-a-z0-9]*[a-z0-9])?)?.
No more than 10 labels can be associated with a given finding.
Examples:
[[["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-04 UTC."],[],[],null,["# Data Loss Prevention V2 Client - Class Finding (2.6.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.6.1 (latest)](/php/docs/reference/cloud-dlp/latest/V2.Finding)\n- [2.6.0](/php/docs/reference/cloud-dlp/2.6.0/V2.Finding)\n- [2.4.1](/php/docs/reference/cloud-dlp/2.4.1/V2.Finding)\n- [2.3.0](/php/docs/reference/cloud-dlp/2.3.0/V2.Finding)\n- [2.2.3](/php/docs/reference/cloud-dlp/2.2.3/V2.Finding)\n- [2.1.0](/php/docs/reference/cloud-dlp/2.1.0/V2.Finding)\n- [2.0.0](/php/docs/reference/cloud-dlp/2.0.0/V2.Finding)\n- [1.19.0](/php/docs/reference/cloud-dlp/1.19.0/V2.Finding)\n- [1.18.0](/php/docs/reference/cloud-dlp/1.18.0/V2.Finding)\n- [1.17.0](/php/docs/reference/cloud-dlp/1.17.0/V2.Finding)\n- [1.16.0](/php/docs/reference/cloud-dlp/1.16.0/V2.Finding)\n- [1.15.1](/php/docs/reference/cloud-dlp/1.15.1/V2.Finding)\n- [1.14.0](/php/docs/reference/cloud-dlp/1.14.0/V2.Finding)\n- [1.13.2](/php/docs/reference/cloud-dlp/1.13.2/V2.Finding)\n- [1.12.0](/php/docs/reference/cloud-dlp/1.12.0/V2.Finding)\n- [1.11.0](/php/docs/reference/cloud-dlp/1.11.0/V2.Finding)\n- [1.10.2](/php/docs/reference/cloud-dlp/1.10.2/V2.Finding)\n- [1.9.0](/php/docs/reference/cloud-dlp/1.9.0/V2.Finding)\n- [1.8.6](/php/docs/reference/cloud-dlp/1.8.6/V2.Finding) \nReference documentation and code samples for the Data Loss Prevention V2 Client class Finding.\n\nRepresents a piece of potentially sensitive content.\n\nGenerated from protobuf message `google.privacy.dlp.v2.Finding`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dlp \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nResource name in format\nprojects/{project}/locations/{location}/findings/{finding} Populated only\nwhen viewing persisted findings.\n\n### setName\n\nResource name in format\nprojects/{project}/locations/{location}/findings/{finding} Populated only\nwhen viewing persisted findings.\n\n### getQuote\n\nThe content that was found. Even if the content is not textual, it\nmay be converted to a textual representation here.\n\nProvided if `include_quote` is true and the finding is\nless than or equal to 4096 bytes long. If the finding exceeds 4096 bytes\nin length, the quote may be omitted.\n\n### setQuote\n\nThe content that was found. Even if the content is not textual, it\nmay be converted to a textual representation here.\n\nProvided if `include_quote` is true and the finding is\nless than or equal to 4096 bytes long. If the finding exceeds 4096 bytes\nin length, the quote may be omitted.\n\n### getInfoType\n\nThe type of content that might have been found.\n\nProvided if `excluded_types` is false.\n\n### hasInfoType\n\n### clearInfoType\n\n### setInfoType\n\nThe type of content that might have been found.\n\nProvided if `excluded_types` is false.\n\n### getLikelihood\n\nConfidence of how likely it is that the `info_type` is correct.\n\n### setLikelihood\n\nConfidence of how likely it is that the `info_type` is correct.\n\n### getLocation\n\nWhere the content was found.\n\n### hasLocation\n\n### clearLocation\n\n### setLocation\n\nWhere the content was found.\n\n### getCreateTime\n\nTimestamp when finding was detected.\n\n### hasCreateTime\n\n### clearCreateTime\n\n### setCreateTime\n\nTimestamp when finding was detected.\n\n### getQuoteInfo\n\nContains data parsed from quotes. Only populated if include_quote was set\nto true and a supported infoType was requested. Currently supported\ninfoTypes: DATE, DATE_OF_BIRTH and TIME.\n\n### hasQuoteInfo\n\n### clearQuoteInfo\n\n### setQuoteInfo\n\nContains data parsed from quotes. Only populated if include_quote was set\nto true and a supported infoType was requested. Currently supported\ninfoTypes: DATE, DATE_OF_BIRTH and TIME.\n\n### getResourceName\n\nThe job that stored the finding.\n\n### setResourceName\n\nThe job that stored the finding.\n\n### getTriggerName\n\nJob trigger name, if applicable, for this finding.\n\n### setTriggerName\n\nJob trigger name, if applicable, for this finding.\n\n### getLabels\n\nThe labels associated with this `Finding`.\n\nLabel keys must be between 1 and 63 characters long and must conform\nto the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.\nLabel values must be between 0 and 63 characters long and must conform\nto the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.\nNo more than 10 labels can be associated with a given finding.\nExamples:\n\n- `\"environment\" : \"production\"`\n- `\"pipeline\" : \"etl\"`\n\n### setLabels\n\nThe labels associated with this `Finding`.\n\nLabel keys must be between 1 and 63 characters long and must conform\nto the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.\nLabel values must be between 0 and 63 characters long and must conform\nto the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.\nNo more than 10 labels can be associated with a given finding.\nExamples:\n\n- `\"environment\" : \"production\"`\n- `\"pipeline\" : \"etl\"`\n\n### getJobCreateTime\n\nTime the job started that produced this finding.\n\n### hasJobCreateTime\n\n### clearJobCreateTime\n\n### setJobCreateTime\n\nTime the job started that produced this finding.\n\n### getJobName\n\nThe job that stored the finding.\n\n### setJobName\n\nThe job that stored the finding.\n\n### getFindingId\n\nThe unique finding id.\n\n### setFindingId\n\nThe unique finding id."]]