<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/ads/googleads/v22/services/reach_plan_service.proto

namespace Google\Ads\GoogleAds\V22\Services;

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

/**
 * Audience targeting for reach forecast.
 *
 * Generated from protobuf message <code>google.ads.googleads.v22.services.AudienceTargeting</code>
 */
class AudienceTargeting extends \Google\Protobuf\Internal\Message
{
    /**
     * List of audiences based on user interests to be targeted.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v22.common.UserInterestInfo user_interest = 1;</code>
     */
    private $user_interest;
    /**
     * List of audiences based on user lists to be targeted.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v22.common.UserListInfo user_lists = 2;</code>
     */
    private $user_lists;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Ads\GoogleAds\V22\Common\UserInterestInfo>|\Google\Protobuf\Internal\RepeatedField $user_interest
     *           List of audiences based on user interests to be targeted.
     *     @type array<\Google\Ads\GoogleAds\V22\Common\UserListInfo>|\Google\Protobuf\Internal\RepeatedField $user_lists
     *           List of audiences based on user lists to be targeted.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V22\Services\ReachPlanService::initOnce();
        parent::__construct($data);
    }

    /**
     * List of audiences based on user interests to be targeted.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v22.common.UserInterestInfo user_interest = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getUserInterest()
    {
        return $this->user_interest;
    }

    /**
     * List of audiences based on user interests to be targeted.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v22.common.UserInterestInfo user_interest = 1;</code>
     * @param array<\Google\Ads\GoogleAds\V22\Common\UserInterestInfo>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setUserInterest($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V22\Common\UserInterestInfo::class);
        $this->user_interest = $arr;

        return $this;
    }

    /**
     * List of audiences based on user lists to be targeted.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v22.common.UserListInfo user_lists = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getUserLists()
    {
        return $this->user_lists;
    }

    /**
     * List of audiences based on user lists to be targeted.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v22.common.UserListInfo user_lists = 2;</code>
     * @param array<\Google\Ads\GoogleAds\V22\Common\UserListInfo>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setUserLists($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V22\Common\UserListInfo::class);
        $this->user_lists = $arr;

        return $this;
    }

}

