Data Loss Prevention V2 Client - Class RedactImageRequest (1.12.0)

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

Request to search for potentially sensitive info in an image and redact it by covering it with a colored rectangle.

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

Namespace

Google \ Cloud \ Dlp \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Parent resource name. The format of this value varies depending on whether you have specified a processing location: + Projects scope, location specified:
projects/PROJECT_ID/locations/LOCATION_ID + Projects scope, no location specified (defaults to global):
projects/PROJECT_ID The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data: parent=projects/example-project/locations/europe-west3

↳ location_id string

Deprecated. This field has no effect.

↳ inspect_config Google\Cloud\Dlp\V2\InspectConfig

Configuration for the inspector.

↳ image_redaction_configs array<Google\Cloud\Dlp\V2\RedactImageRequest\ImageRedactionConfig>

The configuration for specifying what content to redact from images.

↳ include_findings bool

Whether the response should include findings along with the redacted image.

↳ byte_item Google\Cloud\Dlp\V2\ByteContentItem

The content must be PNG, JPEG, SVG or BMP.

getParent

Parent resource name.

The format of this value varies depending on whether you have specified a processing location:

  • Projects scope, location specified:
    projects/PROJECT_ID/locations/LOCATION_ID
  • Projects scope, no location specified (defaults to global):
    projects/PROJECT_ID The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data: parent=projects/example-project/locations/europe-west3
Returns
TypeDescription
string

setParent

Parent resource name.

The format of this value varies depending on whether you have specified a processing location:

  • Projects scope, location specified:
    projects/PROJECT_ID/locations/LOCATION_ID
  • Projects scope, no location specified (defaults to global):
    projects/PROJECT_ID The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data: parent=projects/example-project/locations/europe-west3
Parameter
NameDescription
var string
Returns
TypeDescription
$this

getLocationId

Deprecated. This field has no effect.

Returns
TypeDescription
string

setLocationId

Deprecated. This field has no effect.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getInspectConfig

Configuration for the inspector.

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

hasInspectConfig

clearInspectConfig

setInspectConfig

Configuration for the inspector.

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

getImageRedactionConfigs

The configuration for specifying what content to redact from images.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setImageRedactionConfigs

The configuration for specifying what content to redact from images.

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

getIncludeFindings

Whether the response should include findings along with the redacted image.

Returns
TypeDescription
bool

setIncludeFindings

Whether the response should include findings along with the redacted image.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getByteItem

The content must be PNG, JPEG, SVG or BMP.

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

hasByteItem

clearByteItem

setByteItem

The content must be PNG, JPEG, SVG or BMP.

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