<?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\GPBUtil;
use Google\Protobuf\RepeatedField;

/**
 * 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 \Google\Cloud\Dlp\V2\InfoType[] $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 RepeatedField<\Google\Cloud\Dlp\V2\InfoType>
     */
    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 \Google\Cloud\Dlp\V2\InfoType[] $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;
    }

}

