<?php
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/ads/googleads/v24/resources/recommendation.proto

namespace Google\Ads\GoogleAds\V24\Resources\Recommendation;

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

/**
 * The Custom Audience Opt In recommendation.
 *
 * Generated from protobuf message <code>google.ads.googleads.v24.resources.Recommendation.CustomAudienceOptInRecommendation</code>
 */
class CustomAudienceOptInRecommendation extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. The list of keywords to use for custom audience creation.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.common.KeywordInfo keywords = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $keywords;

    /**
     * Constructor.
     *
     * @param array $data {
     *                    Optional. Data for populating the Message object.
     *
     * @type \Google\Ads\GoogleAds\V24\Common\KeywordInfo[] $keywords
     *           Output only. The list of keywords to use for custom audience creation.
     * }
     */
    public function __construct($data = null)
    {
        \GPBMetadata\Google\Ads\GoogleAds\V24\Resources\Recommendation::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. The list of keywords to use for custom audience creation.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.common.KeywordInfo keywords = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return RepeatedField<\Google\Ads\GoogleAds\V24\Common\KeywordInfo>
     */
    public function getKeywords()
    {
        return $this->keywords;
    }

    /**
     * Output only. The list of keywords to use for custom audience creation.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.common.KeywordInfo keywords = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param  \Google\Ads\GoogleAds\V24\Common\KeywordInfo[] $var
     * @return $this
     */
    public function setKeywords($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V24\Common\KeywordInfo::class);
        $this->keywords = $arr;

        return $this;
    }

}

