<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/ads/admanager/v1/targeting.proto

namespace Google\Ads\AdManager\V1;

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

/**
 * Content Targeting
 * Targeted/excluded content entities and bundles.
 *
 * Generated from protobuf message <code>google.ads.admanager.v1.ContentTargeting</code>
 */
class ContentTargeting extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. The resource names of the
     * [Content][google.ads.admanager.v1.Content] that should be
     * targeted/included.
     *
     * Generated from protobuf field <code>repeated string targeted_content = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {</code>
     */
    private $targeted_content;
    /**
     * Optional. The resource names of the
     * [Content][google.ads.admanager.v1.Content] that should be
     * excluded.
     *
     * Generated from protobuf field <code>repeated string excluded_content = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {</code>
     */
    private $excluded_content;
    /**
     * Optional. The resource names of the
     * [ContentBundles][google.ads.admanager.v1.ContentBundle] that
     * should be targeted/included.
     *
     * Generated from protobuf field <code>repeated string targeted_content_bundles = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {</code>
     */
    private $targeted_content_bundles;
    /**
     * Optional. The resource names of the
     * [ContentBundles][google.ads.admanager.v1.ContentBundle] that
     * should be excluded.
     *
     * Generated from protobuf field <code>repeated string excluded_content_bundles = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {</code>
     */
    private $excluded_content_bundles;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $targeted_content
     *           Optional. The resource names of the
     *           [Content][google.ads.admanager.v1.Content] that should be
     *           targeted/included.
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $excluded_content
     *           Optional. The resource names of the
     *           [Content][google.ads.admanager.v1.Content] that should be
     *           excluded.
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $targeted_content_bundles
     *           Optional. The resource names of the
     *           [ContentBundles][google.ads.admanager.v1.ContentBundle] that
     *           should be targeted/included.
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $excluded_content_bundles
     *           Optional. The resource names of the
     *           [ContentBundles][google.ads.admanager.v1.ContentBundle] that
     *           should be excluded.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\Admanager\V1\Targeting::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. The resource names of the
     * [Content][google.ads.admanager.v1.Content] that should be
     * targeted/included.
     *
     * Generated from protobuf field <code>repeated string targeted_content = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getTargetedContent()
    {
        return $this->targeted_content;
    }

    /**
     * Optional. The resource names of the
     * [Content][google.ads.admanager.v1.Content] that should be
     * targeted/included.
     *
     * Generated from protobuf field <code>repeated string targeted_content = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setTargetedContent($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->targeted_content = $arr;

        return $this;
    }

    /**
     * Optional. The resource names of the
     * [Content][google.ads.admanager.v1.Content] that should be
     * excluded.
     *
     * Generated from protobuf field <code>repeated string excluded_content = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getExcludedContent()
    {
        return $this->excluded_content;
    }

    /**
     * Optional. The resource names of the
     * [Content][google.ads.admanager.v1.Content] that should be
     * excluded.
     *
     * Generated from protobuf field <code>repeated string excluded_content = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setExcludedContent($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->excluded_content = $arr;

        return $this;
    }

    /**
     * Optional. The resource names of the
     * [ContentBundles][google.ads.admanager.v1.ContentBundle] that
     * should be targeted/included.
     *
     * Generated from protobuf field <code>repeated string targeted_content_bundles = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getTargetedContentBundles()
    {
        return $this->targeted_content_bundles;
    }

    /**
     * Optional. The resource names of the
     * [ContentBundles][google.ads.admanager.v1.ContentBundle] that
     * should be targeted/included.
     *
     * Generated from protobuf field <code>repeated string targeted_content_bundles = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setTargetedContentBundles($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->targeted_content_bundles = $arr;

        return $this;
    }

    /**
     * Optional. The resource names of the
     * [ContentBundles][google.ads.admanager.v1.ContentBundle] that
     * should be excluded.
     *
     * Generated from protobuf field <code>repeated string excluded_content_bundles = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getExcludedContentBundles()
    {
        return $this->excluded_content_bundles;
    }

    /**
     * Optional. The resource names of the
     * [ContentBundles][google.ads.admanager.v1.ContentBundle] that
     * should be excluded.
     *
     * Generated from protobuf field <code>repeated string excluded_content_bundles = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setExcludedContentBundles($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->excluded_content_bundles = $arr;

        return $this;
    }

}

