Class Google::Cloud::Dlp::V2::RedactImageRequest::ImageRedactionConfig (v0.8.1)

Configuration for determining how redaction of images should occur.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#info_type

def info_type() -> ::Google::Cloud::Dlp::V2::InfoType
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.

#info_type=

def info_type=(value) -> ::Google::Cloud::Dlp::V2::InfoType
Parameter
  • value (::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.
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.

#redact_all_text

def redact_all_text() -> ::Boolean
Returns
  • (::Boolean) — If true, all text found in the image, regardless whether it matches an info_type, is redacted. Only one should be provided.

#redact_all_text=

def redact_all_text=(value) -> ::Boolean
Parameter
  • value (::Boolean) — 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.

#redaction_color

def redaction_color() -> ::Google::Cloud::Dlp::V2::Color
Returns

#redaction_color=

def redaction_color=(value) -> ::Google::Cloud::Dlp::V2::Color
Parameter
Returns