Reference documentation and code samples for the Data Loss Prevention V2 Client class RedactImageResponse.
Results of redacting an image.
Generated from protobuf messagegoogle.privacy.dlp.v2.RedactImageResponse
Namespace
Google \ Cloud \ Dlp \ V2
Methods
__construct
Constructor.
Parameters
Name
Description
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.
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
Type
Description
string
setRedactedImage
The redacted image. The type will be the same as the original image.
Parameter
Name
Description
var
string
Returns
Type
Description
$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
Type
Description
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
Name
Description
var
string
Returns
Type
Description
$this
getInspectResult
The findings. Populated when include_findings in the request is true.
[[["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-04 UTC."],[],[],null,["# Data Loss Prevention V2 Client - Class RedactImageResponse (2.6.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.6.1 (latest)](/php/docs/reference/cloud-dlp/latest/V2.RedactImageResponse)\n- [2.6.0](/php/docs/reference/cloud-dlp/2.6.0/V2.RedactImageResponse)\n- [2.4.1](/php/docs/reference/cloud-dlp/2.4.1/V2.RedactImageResponse)\n- [2.3.0](/php/docs/reference/cloud-dlp/2.3.0/V2.RedactImageResponse)\n- [2.2.3](/php/docs/reference/cloud-dlp/2.2.3/V2.RedactImageResponse)\n- [2.1.0](/php/docs/reference/cloud-dlp/2.1.0/V2.RedactImageResponse)\n- [2.0.0](/php/docs/reference/cloud-dlp/2.0.0/V2.RedactImageResponse)\n- [1.19.0](/php/docs/reference/cloud-dlp/1.19.0/V2.RedactImageResponse)\n- [1.18.0](/php/docs/reference/cloud-dlp/1.18.0/V2.RedactImageResponse)\n- [1.17.0](/php/docs/reference/cloud-dlp/1.17.0/V2.RedactImageResponse)\n- [1.16.0](/php/docs/reference/cloud-dlp/1.16.0/V2.RedactImageResponse)\n- [1.15.1](/php/docs/reference/cloud-dlp/1.15.1/V2.RedactImageResponse)\n- [1.14.0](/php/docs/reference/cloud-dlp/1.14.0/V2.RedactImageResponse)\n- [1.13.2](/php/docs/reference/cloud-dlp/1.13.2/V2.RedactImageResponse)\n- [1.12.0](/php/docs/reference/cloud-dlp/1.12.0/V2.RedactImageResponse)\n- [1.11.0](/php/docs/reference/cloud-dlp/1.11.0/V2.RedactImageResponse)\n- [1.10.2](/php/docs/reference/cloud-dlp/1.10.2/V2.RedactImageResponse)\n- [1.9.0](/php/docs/reference/cloud-dlp/1.9.0/V2.RedactImageResponse)\n- [1.8.6](/php/docs/reference/cloud-dlp/1.8.6/V2.RedactImageResponse) \nReference documentation and code samples for the Data Loss Prevention V2 Client class RedactImageResponse.\n\nResults of redacting an image.\n\nGenerated from protobuf message `google.privacy.dlp.v2.RedactImageResponse`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dlp \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getRedactedImage\n\nThe redacted image. The type will be the same as the original image.\n\n### setRedactedImage\n\nThe redacted image. The type will be the same as the original image.\n\n### getExtractedText\n\nIf an image was being inspected and the InspectConfig's include_quote was\nset to true, then this field will include all text, if any, that was found\nin the image.\n\n### setExtractedText\n\nIf an image was being inspected and the InspectConfig's include_quote was\nset to true, then this field will include all text, if any, that was found\nin the image.\n\n### getInspectResult\n\nThe findings. Populated when include_findings in the request is true.\n\n### hasInspectResult\n\n### clearInspectResult\n\n### setInspectResult\n\nThe findings. Populated when include_findings in the request is true."]]