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

namespace Google\Ads\GoogleAds\V23\Common;

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

/**
 * A Smart campaign ad.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.common.SmartCampaignAdInfo</code>
 */
class SmartCampaignAdInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * List of text assets, each of which corresponds to a headline when the ad
     * serves. This list consists of a minimum of 3 and up to 15 text assets.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.common.AdTextAsset headlines = 1;</code>
     */
    private $headlines;
    /**
     * List of text assets, each of which corresponds to a description when the ad
     * serves. This list consists of a minimum of 2 and up to 4 text assets.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.common.AdTextAsset descriptions = 2;</code>
     */
    private $descriptions;

    /**
     * Constructor.
     *
     * @param array $data {
     *                    Optional. Data for populating the Message object.
     *
     * @type \Google\Ads\GoogleAds\V23\Common\AdTextAsset[] $headlines
     *           List of text assets, each of which corresponds to a headline when the ad
     *           serves. This list consists of a minimum of 3 and up to 15 text assets.
     * @type \Google\Ads\GoogleAds\V23\Common\AdTextAsset[] $descriptions
     *           List of text assets, each of which corresponds to a description when the ad
     *           serves. This list consists of a minimum of 2 and up to 4 text assets.
     * }
     */
    public function __construct($data = null)
    {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Common\AdTypeInfos::initOnce();
        parent::__construct($data);
    }

    /**
     * List of text assets, each of which corresponds to a headline when the ad
     * serves. This list consists of a minimum of 3 and up to 15 text assets.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.common.AdTextAsset headlines = 1;</code>
     *
     * @return RepeatedField<\Google\Ads\GoogleAds\V23\Common\AdTextAsset>
     */
    public function getHeadlines()
    {
        return $this->headlines;
    }

    /**
     * List of text assets, each of which corresponds to a headline when the ad
     * serves. This list consists of a minimum of 3 and up to 15 text assets.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.common.AdTextAsset headlines = 1;</code>
     *
     * @param  \Google\Ads\GoogleAds\V23\Common\AdTextAsset[] $var
     * @return $this
     */
    public function setHeadlines($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V23\Common\AdTextAsset::class);
        $this->headlines = $arr;

        return $this;
    }

    /**
     * List of text assets, each of which corresponds to a description when the ad
     * serves. This list consists of a minimum of 2 and up to 4 text assets.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.common.AdTextAsset descriptions = 2;</code>
     *
     * @return RepeatedField<\Google\Ads\GoogleAds\V23\Common\AdTextAsset>
     */
    public function getDescriptions()
    {
        return $this->descriptions;
    }

    /**
     * List of text assets, each of which corresponds to a description when the ad
     * serves. This list consists of a minimum of 2 and up to 4 text assets.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.common.AdTextAsset descriptions = 2;</code>
     *
     * @param  \Google\Ads\GoogleAds\V23\Common\AdTextAsset[] $var
     * @return $this
     */
    public function setDescriptions($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V23\Common\AdTextAsset::class);
        $this->descriptions = $arr;

        return $this;
    }

}

