Class: Google::Cloud::Dlp::V2::ImageTransformations

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

Overview

A type of transformation that is applied over images.

Defined Under Namespace

Classes: ImageTransformation

Instance Attribute Summary collapse

Instance Attribute Details

#transforms::Array<::Google::Cloud::Dlp::V2::ImageTransformations::ImageTransformation>

Returns List of transforms to make.

Returns:



2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 2288

class ImageTransformations
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Configuration for determining how redaction of images should occur.
  # @!attribute [rw] selected_info_types
  #   @return [::Google::Cloud::Dlp::V2::ImageTransformations::ImageTransformation::SelectedInfoTypes]
  #     Apply transformation to the selected info_types.
  #
  #     Note: The following fields are mutually exclusive: `selected_info_types`, `all_info_types`, `all_text`. If a field in that set is populated, all other fields in the set will automatically be cleared.
  # @!attribute [rw] all_info_types
  #   @return [::Google::Cloud::Dlp::V2::ImageTransformations::ImageTransformation::AllInfoTypes]
  #     Apply transformation to all findings not specified in other
  #     ImageTransformation's selected_info_types. Only one instance is allowed
  #     within the ImageTransformations message.
  #
  #     Note: The following fields are mutually exclusive: `all_info_types`, `selected_info_types`, `all_text`. If a field in that set is populated, all other fields in the set will automatically be cleared.
  # @!attribute [rw] all_text
  #   @return [::Google::Cloud::Dlp::V2::ImageTransformations::ImageTransformation::AllText]
  #     Apply transformation to all text that doesn't match an infoType. Only
  #     one instance is allowed within the ImageTransformations message.
  #
  #     Note: The following fields are mutually exclusive: `all_text`, `selected_info_types`, `all_info_types`. If a field in that set is populated, all other fields in the set will automatically be cleared.
  # @!attribute [rw] redaction_color
  #   @return [::Google::Cloud::Dlp::V2::Color]
  #     The color to use when redacting content from an image. If not
  #     specified, the default is black.
  class ImageTransformation
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Apply transformation to the selected info_types.
    # @!attribute [rw] info_types
    #   @return [::Array<::Google::Cloud::Dlp::V2::InfoType>]
    #     Required. InfoTypes to apply the transformation to. Required. Provided
    #     InfoType must be unique within the ImageTransformations message.
    class SelectedInfoTypes
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end

    # Apply transformation to all findings.
    class AllInfoTypes
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end

    # Apply to all text.
    class AllText
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end
end