<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/ads/googleads/v11/common/audiences.proto

namespace Google\Ads\GoogleAds\V11\Common;

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

/**
 * Negative dimension specifying users to exclude from the audience.
 *
 * Generated from protobuf message <code>google.ads.googleads.v11.common.AudienceExclusionDimension</code>
 */
class AudienceExclusionDimension extends \Google\Protobuf\Internal\Message
{
    /**
     * Audience segment to be excluded.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v11.common.ExclusionSegment exclusions = 1;</code>
     */
    private $exclusions;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Ads\GoogleAds\V11\Common\ExclusionSegment[]|\Google\Protobuf\Internal\RepeatedField $exclusions
     *           Audience segment to be excluded.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V11\Common\Audiences::initOnce();
        parent::__construct($data);
    }

    /**
     * Audience segment to be excluded.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v11.common.ExclusionSegment exclusions = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getExclusions()
    {
        return $this->exclusions;
    }

    /**
     * Audience segment to be excluded.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v11.common.ExclusionSegment exclusions = 1;</code>
     * @param \Google\Ads\GoogleAds\V11\Common\ExclusionSegment[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setExclusions($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V11\Common\ExclusionSegment::class);
        $this->exclusions = $arr;

        return $this;
    }

}

