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

/**
 * Mobile Carrier Targeting.
 * Can be used to target/exclude a variety of mobile carriers, such as AT&T,
 * Verizon, or T-Mobile.
 *
 * Generated from protobuf message <code>google.ads.admanager.v1.MobileCarrierTargeting</code>
 */
class MobileCarrierTargeting extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. A list of mobile carrier resource names that should be
     * targeted/included.
     *
     * Generated from protobuf field <code>repeated string targeted_mobile_carriers = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {</code>
     */
    private $targeted_mobile_carriers;
    /**
     * Optional. A list of mobile carrier resource names that should be excluded.
     *
     * Generated from protobuf field <code>repeated string excluded_mobile_carriers = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {</code>
     */
    private $excluded_mobile_carriers;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $targeted_mobile_carriers
     *           Optional. A list of mobile carrier resource names that should be
     *           targeted/included.
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $excluded_mobile_carriers
     *           Optional. A list of mobile carrier resource names that should be excluded.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\Admanager\V1\Targeting::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. A list of mobile carrier resource names that should be
     * targeted/included.
     *
     * Generated from protobuf field <code>repeated string targeted_mobile_carriers = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getTargetedMobileCarriers()
    {
        return $this->targeted_mobile_carriers;
    }

    /**
     * Optional. A list of mobile carrier resource names that should be
     * targeted/included.
     *
     * Generated from protobuf field <code>repeated string targeted_mobile_carriers = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setTargetedMobileCarriers($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->targeted_mobile_carriers = $arr;

        return $this;
    }

    /**
     * Optional. A list of mobile carrier resource names that should be excluded.
     *
     * Generated from protobuf field <code>repeated string excluded_mobile_carriers = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getExcludedMobileCarriers()
    {
        return $this->excluded_mobile_carriers;
    }

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

        return $this;
    }

}

