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 \ ImageTransformationsMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ selected_info_types |
ImageTransformation\SelectedInfoTypes
Apply transformation to the selected info_types. |
↳ all_info_types |
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 |
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 | |
|---|---|
| Type | Description |
ImageTransformation\SelectedInfoTypes|null |
|
hasSelectedInfoTypes
setSelectedInfoTypes
Apply transformation to the selected info_types.
| Parameter | |
|---|---|
| Name | Description |
var |
ImageTransformation\SelectedInfoTypes
|
| Returns | |
|---|---|
| Type | Description |
$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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
var |
ImageTransformation\AllInfoTypes
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAllText
Apply transformation to all text that doesn't match an infoType. Only one instance is allowed within the ImageTransformations message.
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
var |
ImageTransformation\AllText
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getRedactionColor
The color to use when redacting content from an image. If not specified, the default is black.
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
var |
Google\Cloud\Dlp\V2\Color
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTarget
| Returns | |
|---|---|
| Type | Description |
string |
|