Class: Google::Cloud::Dlp::V2::RedactImageRequest::ImageRedactionConfig

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/privacy/dlp/v2/dlp.rb

Overview

Configuration for determining how redaction of images should occur.

Instance Attribute Summary collapse

Instance Attribute Details

#info_type::Google::Cloud::Dlp::V2::InfoType

Returns Only one per info_type should be provided per request. If not specified, and redact_all_text is false, the DLP API will redact all text that it matches against all info_types that are found, but not specified in another ImageRedactionConfig.

Returns:

  • (::Google::Cloud::Dlp::V2::InfoType)

    Only one per info_type should be provided per request. If not specified, and redact_all_text is false, the DLP API will redact all text that it matches against all info_types that are found, but not specified in another ImageRedactionConfig.



728
729
730
731
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 728

class ImageRedactionConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#redact_all_text::Boolean

Returns If true, all text found in the image, regardless whether it matches an info_type, is redacted. Only one should be provided.

Returns:

  • (::Boolean)

    If true, all text found in the image, regardless whether it matches an info_type, is redacted. Only one should be provided.



728
729
730
731
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 728

class ImageRedactionConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#redaction_color::Google::Cloud::Dlp::V2::Color

Returns The color to use when redacting content from an image. If not specified, the default is black.

Returns:



728
729
730
731
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 728

class ImageRedactionConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end