<?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;

/**
 * First-party mobile application targeting.
 *
 * Generated from protobuf message <code>google.ads.admanager.v1.FirstPartyMobileApplicationTargeting</code>
 */
class FirstPartyMobileApplicationTargeting extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. The resource names of the first-party applications that should be
     * targeted.
     *
     * Generated from protobuf field <code>repeated string targeted_applications = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {</code>
     */
    private $targeted_applications;
    /**
     * Optional. The resource names of the first-party applications that should be
     * excluded.
     *
     * Generated from protobuf field <code>repeated string excluded_applications = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {</code>
     */
    private $excluded_applications;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $targeted_applications
     *           Optional. The resource names of the first-party applications that should be
     *           targeted.
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $excluded_applications
     *           Optional. The resource names of the first-party applications 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 first-party applications that should be
     * targeted.
     *
     * Generated from protobuf field <code>repeated string targeted_applications = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getTargetedApplications()
    {
        return $this->targeted_applications;
    }

    /**
     * Optional. The resource names of the first-party applications that should be
     * targeted.
     *
     * Generated from protobuf field <code>repeated string targeted_applications = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setTargetedApplications($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->targeted_applications = $arr;

        return $this;
    }

    /**
     * Optional. The resource names of the first-party applications that should be
     * excluded.
     *
     * Generated from protobuf field <code>repeated string excluded_applications = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getExcludedApplications()
    {
        return $this->excluded_applications;
    }

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

        return $this;
    }

}

