Class: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2RedactImageResponse
- Inherits:
-
Object
- Object
- Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2RedactImageResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dlp_v2beta2/classes.rb,
generated/google/apis/dlp_v2beta2/representations.rb,
generated/google/apis/dlp_v2beta2/representations.rb
Overview
Results of redacting an image.
Instance Attribute Summary collapse
-
#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.
-
#redacted_image ⇒ String
The redacted image.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GooglePrivacyDlpV2beta2RedactImageResponse
constructor
A new instance of GooglePrivacyDlpV2beta2RedactImageResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GooglePrivacyDlpV2beta2RedactImageResponse
Returns a new instance of GooglePrivacyDlpV2beta2RedactImageResponse
4670 4671 4672 |
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 4670 def initialize(**args) update!(**args) end |
Instance Attribute Details
#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.
Corresponds to the JSON property extractedText
4662 4663 4664 |
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 4662 def extracted_text @extracted_text end |
#redacted_image ⇒ String
The redacted image. The type will be the same as the original image.
Corresponds to the JSON property redactedImage
NOTE: Values are automatically base64 encoded/decoded in the client library.
4668 4669 4670 |
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 4668 def redacted_image @redacted_image end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4675 4676 4677 4678 |
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 4675 def update!(**args) @extracted_text = args[:extracted_text] if args.key?(:extracted_text) @redacted_image = args[:redacted_image] if args.key?(:redacted_image) end |