Data Loss Prevention V2 Client - Class ImageTransformation (1.12.0)

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

Configuration for determining how redaction of images should occur.

Generated from protobuf message google.privacy.dlp.v2.ImageTransformations.ImageTransformation

Namespace

Google \ Cloud \ Dlp \ V2 \ ImageTransformations

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ selected_info_types Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation\SelectedInfoTypes

Apply transformation to the selected info_types.

↳ all_info_types Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation\AllInfoTypes

Apply transformation to all findings not specified in other ImageTransformation's selected_info_types. Only one instance is allowed within the ImageTransformations message.

↳ all_text Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation\AllText

Apply transformation to all text that doesn't match an infoType. Only one instance is allowed within the ImageTransformations message.

↳ redaction_color Google\Cloud\Dlp\V2\Color

The color to use when redacting content from an image. If not specified, the default is black.

getSelectedInfoTypes

Apply transformation to the selected info_types.

Returns
TypeDescription
Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation\SelectedInfoTypes|null

hasSelectedInfoTypes

setSelectedInfoTypes

Apply transformation to the selected info_types.

Parameter
NameDescription
var Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation\SelectedInfoTypes
Returns
TypeDescription
$this

getAllInfoTypes

Apply transformation to all findings not specified in other ImageTransformation's selected_info_types. Only one instance is allowed within the ImageTransformations message.

Returns
TypeDescription
Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation\AllInfoTypes|null

hasAllInfoTypes

setAllInfoTypes

Apply transformation to all findings not specified in other ImageTransformation's selected_info_types. Only one instance is allowed within the ImageTransformations message.

Parameter
NameDescription
var Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation\AllInfoTypes
Returns
TypeDescription
$this

getAllText

Apply transformation to all text that doesn't match an infoType. Only one instance is allowed within the ImageTransformations message.

Returns
TypeDescription
Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation\AllText|null

hasAllText

setAllText

Apply transformation to all text that doesn't match an infoType. Only one instance is allowed within the ImageTransformations message.

Parameter
NameDescription
var Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation\AllText
Returns
TypeDescription
$this

getRedactionColor

The color to use when redacting content from an image. If not specified, the default is black.

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

hasRedactionColor

clearRedactionColor

setRedactionColor

The color to use when redacting content from an image. If not specified, the default is black.

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

getTarget

Returns
TypeDescription
string