Data Loss Prevention V2 Client - Class InspectResult (1.10.2)

Reference documentation and code samples for the Data Loss Prevention V2 Client class InspectResult.

All the findings for a single scanned item.

Generated from protobuf message google.privacy.dlp.v2.InspectResult

Namespace

Google \ Cloud \ Dlp \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ findings array<Google\Cloud\Dlp\V2\Finding>

List of findings for an item.

↳ findings_truncated bool

If true, then this item might have more findings than were returned, and the findings returned are an arbitrary subset of all findings. The findings list might be truncated because the input items were too large, or because the server reached the maximum amount of resources allowed for a single API call. For best results, divide the input into smaller batches.

getFindings

List of findings for an item.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setFindings

List of findings for an item.

Parameter
NameDescription
var array<Google\Cloud\Dlp\V2\Finding>
Returns
TypeDescription
$this

getFindingsTruncated

If true, then this item might have more findings than were returned, and the findings returned are an arbitrary subset of all findings.

The findings list might be truncated because the input items were too large, or because the server reached the maximum amount of resources allowed for a single API call. For best results, divide the input into smaller batches.

Returns
TypeDescription
bool

setFindingsTruncated

If true, then this item might have more findings than were returned, and the findings returned are an arbitrary subset of all findings.

The findings list might be truncated because the input items were too large, or because the server reached the maximum amount of resources allowed for a single API call. For best results, divide the input into smaller batches.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this