Cloud Data Loss Prevention (DLP) V2 API - Class Google::Cloud::Dlp::V2::RedactImageRequest::ImageRedactionConfig (v1.10.0)

Reference documentation and code samples for the Cloud Data Loss Prevention (DLP) V2 API class Google::Cloud::Dlp::V2::RedactImageRequest::ImageRedactionConfig.

Configuration for determining how redaction of images should occur.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#info_type

definfo_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.

    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.

#info_type=

definfo_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.

    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.

#redact_all_text

defredact_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.

    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.

#redact_all_text=

defredact_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.

    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.

#redaction_color

defredaction_color()->::Google::Cloud::Dlp::V2::Color
Returns

#redaction_color=

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

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.