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

namespace Google\Ads\GoogleAds\V23\Services;

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

/**
 * Response message for
 * [ReachPlanService.ListPlannableUserInterests][google.ads.googleads.v23.services.ReachPlanService.ListPlannableUserInterests].
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.services.ListPlannableUserInterestsResponse</code>
 */
class ListPlannableUserInterestsResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * The list of plannable user interests.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.services.PlannableUserInterest plannable_user_interests = 1;</code>
     */
    private $plannable_user_interests;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Ads\GoogleAds\V23\Services\PlannableUserInterest>|\Google\Protobuf\Internal\RepeatedField $plannable_user_interests
     *           The list of plannable user interests.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Services\ReachPlanService::initOnce();
        parent::__construct($data);
    }

    /**
     * The list of plannable user interests.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.services.PlannableUserInterest plannable_user_interests = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getPlannableUserInterests()
    {
        return $this->plannable_user_interests;
    }

    /**
     * The list of plannable user interests.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.services.PlannableUserInterest plannable_user_interests = 1;</code>
     * @param array<\Google\Ads\GoogleAds\V23\Services\PlannableUserInterest>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setPlannableUserInterests($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V23\Services\PlannableUserInterest::class);
        $this->plannable_user_interests = $arr;

        return $this;
    }

}

