Data Loss Prevention V2 Client - Class RedactImageResponse (1.9.0)

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

Results of redacting an image.

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

Namespace

Google \ Cloud \ Dlp \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ redacted_image string

The redacted image. The type will be the same as the original image.

↳ extracted_text string

If an image was being inspected and the InspectConfig's include_quote was set to true, then this field will include all text, if any, that was found in the image.

↳ inspect_result Google\Cloud\Dlp\V2\InspectResult

The findings. Populated when include_findings in the request is true.

getRedactedImage

The redacted image. The type will be the same as the original image.

Returns
TypeDescription
string

setRedactedImage

The redacted image. The type will be the same as the original image.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getExtractedText

If an image was being inspected and the InspectConfig's include_quote was set to true, then this field will include all text, if any, that was found in the image.

Returns
TypeDescription
string

setExtractedText

If an image was being inspected and the InspectConfig's include_quote was set to true, then this field will include all text, if any, that was found in the image.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getInspectResult

The findings. Populated when include_findings in the request is true.

Returns
TypeDescription
Google\Cloud\Dlp\V2\InspectResult|null

hasInspectResult

clearInspectResult

setInspectResult

The findings. Populated when include_findings in the request is true.

Parameter
NameDescription
var Google\Cloud\Dlp\V2\InspectResult
Returns
TypeDescription
$this