Reference documentation and code samples for the Data Loss Prevention V2 Client class Finding.
Represents a piece of potentially sensitive content.
Generated from protobuf message google.privacy.dlp.v2.Finding
Namespace
Google \ Cloud \ Dlp \ V2Methods
__construct
Constructor.
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 if include_quote
is 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.
↳ info_type
Google\Cloud\Dlp\V2\InfoType
The type of content that might have been found. Provided if excluded_types
is false.
↳ likelihood
int
Confidence of how likely it is that the info_type
is correct.
↳ location
↳ create_time
↳ quote_info
Google\Cloud\Dlp\V2\QuoteInfo
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.
↳ labels
array| Google\Protobuf\Internal\MapField
The labels associated with this Finding
. 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"
↳ job_create_time
↳ job_name
string
The job that stored the finding.
↳ finding_id
string
The unique finding id.
getName
Resource name in format projects/{project}/locations/{location}/findings/{finding} Populated only when viewing persisted findings.
string
setName
Resource name in format projects/{project}/locations/{location}/findings/{finding} Populated only when viewing persisted findings.
var
string
$this
getQuote
The content that was found. Even if the content is not textual, it may be converted to a textual representation here.
Provided if include_quote
is 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.
string
setQuote
The content that was found. Even if the content is not textual, it may be converted to a textual representation here.
Provided if include_quote
is 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.
var
string
$this
getInfoType
The type of content that might have been found.
Provided if excluded_types
is false.
hasInfoType
clearInfoType
setInfoType
The type of content that might have been found.
Provided if excluded_types
is false.
$this
getLikelihood
Confidence of how likely it is that the info_type
is correct.
int
setLikelihood
Confidence of how likely it is that the info_type
is correct.
var
int
$this
getLocation
Where the content was found.
hasLocation
clearLocation
setLocation
Where the content was found.
$this
getCreateTime
Timestamp when finding was detected.
hasCreateTime
clearCreateTime
setCreateTime
Timestamp when finding was detected.
$this
getQuoteInfo
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.
hasQuoteInfo
clearQuoteInfo
setQuoteInfo
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.
$this
getResourceName
The job that stored the finding.
string
setResourceName
The job that stored the finding.
var
string
$this
getTriggerName
Job trigger name, if applicable, for this finding.
string
setTriggerName
Job trigger name, if applicable, for this finding.
var
string
$this
getLabels
The labels associated with this Finding
.
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"
setLabels
The labels associated with this Finding
.
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"
$this
getJobCreateTime
Time the job started that produced this finding.
hasJobCreateTime
clearJobCreateTime
setJobCreateTime
Time the job started that produced this finding.
$this
getJobName
The job that stored the finding.
string
setJobName
The job that stored the finding.
var
string
$this
getFindingId
The unique finding id.
string
setFindingId
The unique finding id.
var
string
$this