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

namespace Google\Cloud\Dlp\V2;

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

/**
 * Tags to match against for filtering.
 *
 * Generated from protobuf message <code>google.privacy.dlp.v2.TagFilters</code>
 */
class TagFilters extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. A resource must match ALL of the specified tag filters to be
     * included in the collection.
     *
     * Generated from protobuf field <code>repeated .google.privacy.dlp.v2.TagFilter tag_filters = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $tag_filters;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Cloud\Dlp\V2\TagFilter>|\Google\Protobuf\Internal\RepeatedField $tag_filters
     *           Required. A resource must match ALL of the specified tag filters to be
     *           included in the collection.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. A resource must match ALL of the specified tag filters to be
     * included in the collection.
     *
     * Generated from protobuf field <code>repeated .google.privacy.dlp.v2.TagFilter tag_filters = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getTagFilters()
    {
        return $this->tag_filters;
    }

    /**
     * Required. A resource must match ALL of the specified tag filters to be
     * included in the collection.
     *
     * Generated from protobuf field <code>repeated .google.privacy.dlp.v2.TagFilter tag_filters = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param array<\Google\Cloud\Dlp\V2\TagFilter>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setTagFilters($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\TagFilter::class);
        $this->tag_filters = $arr;

        return $this;
    }

}

