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.

Note: The following fields are mutually exclusive: info_type, redact_all_text. If a field in that set is populated, all other fields in the set will automatically be cleared.

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.

    Note: The following fields are mutually exclusive: info_type, redact_all_text. If a field in that set is populated, all other fields in the set will automatically be cleared.



764
765
766
767
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 764

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.

Note: The following fields are mutually exclusive: redact_all_text, info_type. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::Boolean)

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

    Note: The following fields are mutually exclusive: redact_all_text, info_type. If a field in that set is populated, all other fields in the set will automatically be cleared.



764
765
766
767
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 764

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:



764
765
766
767
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 764

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