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

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

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

/**
 * The Custom Audience Opt In recommendation.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.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.v23.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 array<\Google\Ads\GoogleAds\V23\Common\KeywordInfo>|\Google\Protobuf\Internal\RepeatedField $keywords
     *           Output only. The list of keywords to use for custom audience creation.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V23\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.v23.common.KeywordInfo keywords = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    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.v23.common.KeywordInfo keywords = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param array<\Google\Ads\GoogleAds\V23\Common\KeywordInfo>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setKeywords($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V23\Common\KeywordInfo::class);
        $this->keywords = $arr;

        return $this;
    }

}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomAudienceOptInRecommendation::class, \Google\Ads\GoogleAds\V23\Resources\Recommendation_CustomAudienceOptInRecommendation::class);

