<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/privacy/dlp/v2/dlp.proto

namespace Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * Apply transformation to the selected info_types.
 *
 * Generated from protobuf message <code>google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes</code>
 */
class SelectedInfoTypes extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. InfoTypes to apply the transformation to. Required. Provided
     * InfoType must be unique within the ImageTransformations message.
     *
     * Generated from protobuf field <code>repeated .google.privacy.dlp.v2.InfoType info_types = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $info_types;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Cloud\Dlp\V2\InfoType>|\Google\Protobuf\Internal\RepeatedField $info_types
     *           Required. InfoTypes to apply the transformation to. Required. Provided
     *           InfoType must be unique within the ImageTransformations message.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. InfoTypes to apply the transformation to. Required. Provided
     * InfoType must be unique within the ImageTransformations message.
     *
     * Generated from protobuf field <code>repeated .google.privacy.dlp.v2.InfoType info_types = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getInfoTypes()
    {
        return $this->info_types;
    }

    /**
     * Required. InfoTypes to apply the transformation to. Required. Provided
     * InfoType must be unique within the ImageTransformations message.
     *
     * Generated from protobuf field <code>repeated .google.privacy.dlp.v2.InfoType info_types = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param array<\Google\Cloud\Dlp\V2\InfoType>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setInfoTypes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InfoType::class);
        $this->info_types = $arr;

        return $this;
    }

}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SelectedInfoTypes::class, \Google\Cloud\Dlp\V2\ImageTransformations_ImageTransformation_SelectedInfoTypes::class);

