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 messagegoogle.privacy.dlp.v2.RedactImageRequest
Namespace
Google \ Cloud \ Dlp \ V2
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ parent
string
Parent resource name. The format of this value varies depending on whether you havespecified 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 exampleparentstring specifies a parent project with the identifierexample-project, and specifies theeurope-west3location for processing data: parent=projects/example-project/locations/europe-west3
Projects scope, no location specified (defaults to global):projects/{project_id}The following exampleparentstring specifies a parent project with the
identifierexample-project, and specifies theeurope-west3location
for processing data:
parent=projects/example-project/locations/europe-west3
Projects scope, no location specified (defaults to global):projects/{project_id}The following exampleparentstring specifies a parent project with the
identifierexample-project, and specifies theeurope-west3location
for processing data:
parent=projects/example-project/locations/europe-west3
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Data Loss Prevention V2 Client - Class RedactImageRequest (2.6.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.6.1 (latest)](/php/docs/reference/cloud-dlp/latest/V2.RedactImageRequest)\n- [2.6.0](/php/docs/reference/cloud-dlp/2.6.0/V2.RedactImageRequest)\n- [2.4.1](/php/docs/reference/cloud-dlp/2.4.1/V2.RedactImageRequest)\n- [2.3.0](/php/docs/reference/cloud-dlp/2.3.0/V2.RedactImageRequest)\n- [2.2.3](/php/docs/reference/cloud-dlp/2.2.3/V2.RedactImageRequest)\n- [2.1.0](/php/docs/reference/cloud-dlp/2.1.0/V2.RedactImageRequest)\n- [2.0.0](/php/docs/reference/cloud-dlp/2.0.0/V2.RedactImageRequest)\n- [1.19.0](/php/docs/reference/cloud-dlp/1.19.0/V2.RedactImageRequest)\n- [1.18.0](/php/docs/reference/cloud-dlp/1.18.0/V2.RedactImageRequest)\n- [1.17.0](/php/docs/reference/cloud-dlp/1.17.0/V2.RedactImageRequest)\n- [1.16.0](/php/docs/reference/cloud-dlp/1.16.0/V2.RedactImageRequest)\n- [1.15.1](/php/docs/reference/cloud-dlp/1.15.1/V2.RedactImageRequest)\n- [1.14.0](/php/docs/reference/cloud-dlp/1.14.0/V2.RedactImageRequest)\n- [1.13.2](/php/docs/reference/cloud-dlp/1.13.2/V2.RedactImageRequest)\n- [1.12.0](/php/docs/reference/cloud-dlp/1.12.0/V2.RedactImageRequest)\n- [1.11.0](/php/docs/reference/cloud-dlp/1.11.0/V2.RedactImageRequest)\n- [1.10.2](/php/docs/reference/cloud-dlp/1.10.2/V2.RedactImageRequest)\n- [1.9.0](/php/docs/reference/cloud-dlp/1.9.0/V2.RedactImageRequest)\n- [1.8.6](/php/docs/reference/cloud-dlp/1.8.6/V2.RedactImageRequest) \nReference documentation and code samples for the Data Loss Prevention V2 Client class RedactImageRequest.\n\nRequest to search for potentially sensitive info in an image and redact it\nby covering it with a colored rectangle.\n\nGenerated from protobuf message `google.privacy.dlp.v2.RedactImageRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dlp \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getParent\n\nParent resource name.\n\nThe format of this value varies depending on whether you have [specified a\nprocessing\nlocation](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):\n\n- Projects scope, location specified: `projects/{project_id}/locations/{location_id}`\n- 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\n\n### setParent\n\nParent resource name.\n\nThe format of this value varies depending on whether you have [specified a\nprocessing\nlocation](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):\n\n- Projects scope, location specified: `projects/{project_id}/locations/{location_id}`\n- 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\n\n### getLocationId\n\nDeprecated. This field has no effect.\n\n### setLocationId\n\nDeprecated. This field has no effect.\n\n### getInspectConfig\n\nConfiguration for the inspector.\n\n### hasInspectConfig\n\n### clearInspectConfig\n\n### setInspectConfig\n\nConfiguration for the inspector.\n\n### getImageRedactionConfigs\n\nThe configuration for specifying what content to redact from images.\n\n### setImageRedactionConfigs\n\nThe configuration for specifying what content to redact from images.\n\n### getIncludeFindings\n\nWhether the response should include findings along with the redacted\nimage.\n\n### setIncludeFindings\n\nWhether the response should include findings along with the redacted\nimage.\n\n### getByteItem\n\nThe content must be PNG, JPEG, SVG or BMP.\n\n### hasByteItem\n\n### clearByteItem\n\n### setByteItem\n\nThe content must be PNG, JPEG, SVG or BMP."]]