Reference documentation and code samples for the Data Loss Prevention V2 Client class RedactImageResponse.
Results of redacting an image.
Generated from protobuf message google.privacy.dlp.v2.RedactImageResponse
Namespace
Google \ Cloud \ Dlp \ V2Methods
__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. |
↳ inspect_result |
InspectResult
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.
Returns | |
---|---|
Type | Description |
InspectResult|null |
hasInspectResult
clearInspectResult
setInspectResult
The findings. Populated when include_findings in the request is true.
Parameter | |
---|---|
Name | Description |
var |
InspectResult
|
Returns | |
---|---|
Type | Description |
$this |