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

namespace Google\Ads\GoogleAds\V9\Common;

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

/**
 * A video responsive ad.
 *
 * Generated from protobuf message <code>google.ads.googleads.v9.common.VideoResponsiveAdInfo</code>
 */
class VideoResponsiveAdInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * List of text assets used for the short headline, e.g. the "Call To Action"
     * banner. Currently, only a single value for the short headline is supported.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v9.common.AdTextAsset headlines = 1;</code>
     */
    private $headlines;
    /**
     * List of text assets used for the long headline.
     * Currently, only a single value for the long headline is supported.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v9.common.AdTextAsset long_headlines = 2;</code>
     */
    private $long_headlines;
    /**
     * List of text assets used for the description.
     * Currently, only a single value for the description is supported.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v9.common.AdTextAsset descriptions = 3;</code>
     */
    private $descriptions;
    /**
     * List of text assets used for the button, e.g. the "Call To Action" button.
     * Currently, only a single value for the button is supported.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v9.common.AdTextAsset call_to_actions = 4;</code>
     */
    private $call_to_actions;
    /**
     * List of YouTube video assets used for the ad.
     * Currently, only a single value for the YouTube video asset is supported.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v9.common.AdVideoAsset videos = 5;</code>
     */
    private $videos;
    /**
     * List of image assets used for the companion banner.
     * Currently, only a single value for the companion banner asset is supported.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v9.common.AdImageAsset companion_banners = 6;</code>
     */
    private $companion_banners;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Ads\GoogleAds\V9\Common\AdTextAsset[]|\Google\Protobuf\Internal\RepeatedField $headlines
     *           List of text assets used for the short headline, e.g. the "Call To Action"
     *           banner. Currently, only a single value for the short headline is supported.
     *     @type \Google\Ads\GoogleAds\V9\Common\AdTextAsset[]|\Google\Protobuf\Internal\RepeatedField $long_headlines
     *           List of text assets used for the long headline.
     *           Currently, only a single value for the long headline is supported.
     *     @type \Google\Ads\GoogleAds\V9\Common\AdTextAsset[]|\Google\Protobuf\Internal\RepeatedField $descriptions
     *           List of text assets used for the description.
     *           Currently, only a single value for the description is supported.
     *     @type \Google\Ads\GoogleAds\V9\Common\AdTextAsset[]|\Google\Protobuf\Internal\RepeatedField $call_to_actions
     *           List of text assets used for the button, e.g. the "Call To Action" button.
     *           Currently, only a single value for the button is supported.
     *     @type \Google\Ads\GoogleAds\V9\Common\AdVideoAsset[]|\Google\Protobuf\Internal\RepeatedField $videos
     *           List of YouTube video assets used for the ad.
     *           Currently, only a single value for the YouTube video asset is supported.
     *     @type \Google\Ads\GoogleAds\V9\Common\AdImageAsset[]|\Google\Protobuf\Internal\RepeatedField $companion_banners
     *           List of image assets used for the companion banner.
     *           Currently, only a single value for the companion banner asset is supported.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V9\Common\AdTypeInfos::initOnce();
        parent::__construct($data);
    }

    /**
     * List of text assets used for the short headline, e.g. the "Call To Action"
     * banner. Currently, only a single value for the short headline is supported.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v9.common.AdTextAsset headlines = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getHeadlines()
    {
        return $this->headlines;
    }

    /**
     * List of text assets used for the short headline, e.g. the "Call To Action"
     * banner. Currently, only a single value for the short headline is supported.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v9.common.AdTextAsset headlines = 1;</code>
     * @param \Google\Ads\GoogleAds\V9\Common\AdTextAsset[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setHeadlines($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V9\Common\AdTextAsset::class);
        $this->headlines = $arr;

        return $this;
    }

    /**
     * List of text assets used for the long headline.
     * Currently, only a single value for the long headline is supported.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v9.common.AdTextAsset long_headlines = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getLongHeadlines()
    {
        return $this->long_headlines;
    }

    /**
     * List of text assets used for the long headline.
     * Currently, only a single value for the long headline is supported.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v9.common.AdTextAsset long_headlines = 2;</code>
     * @param \Google\Ads\GoogleAds\V9\Common\AdTextAsset[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setLongHeadlines($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V9\Common\AdTextAsset::class);
        $this->long_headlines = $arr;

        return $this;
    }

    /**
     * List of text assets used for the description.
     * Currently, only a single value for the description is supported.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v9.common.AdTextAsset descriptions = 3;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getDescriptions()
    {
        return $this->descriptions;
    }

    /**
     * List of text assets used for the description.
     * Currently, only a single value for the description is supported.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v9.common.AdTextAsset descriptions = 3;</code>
     * @param \Google\Ads\GoogleAds\V9\Common\AdTextAsset[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setDescriptions($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V9\Common\AdTextAsset::class);
        $this->descriptions = $arr;

        return $this;
    }

    /**
     * List of text assets used for the button, e.g. the "Call To Action" button.
     * Currently, only a single value for the button is supported.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v9.common.AdTextAsset call_to_actions = 4;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getCallToActions()
    {
        return $this->call_to_actions;
    }

    /**
     * List of text assets used for the button, e.g. the "Call To Action" button.
     * Currently, only a single value for the button is supported.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v9.common.AdTextAsset call_to_actions = 4;</code>
     * @param \Google\Ads\GoogleAds\V9\Common\AdTextAsset[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setCallToActions($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V9\Common\AdTextAsset::class);
        $this->call_to_actions = $arr;

        return $this;
    }

    /**
     * List of YouTube video assets used for the ad.
     * Currently, only a single value for the YouTube video asset is supported.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v9.common.AdVideoAsset videos = 5;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getVideos()
    {
        return $this->videos;
    }

    /**
     * List of YouTube video assets used for the ad.
     * Currently, only a single value for the YouTube video asset is supported.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v9.common.AdVideoAsset videos = 5;</code>
     * @param \Google\Ads\GoogleAds\V9\Common\AdVideoAsset[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setVideos($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V9\Common\AdVideoAsset::class);
        $this->videos = $arr;

        return $this;
    }

    /**
     * List of image assets used for the companion banner.
     * Currently, only a single value for the companion banner asset is supported.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v9.common.AdImageAsset companion_banners = 6;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getCompanionBanners()
    {
        return $this->companion_banners;
    }

    /**
     * List of image assets used for the companion banner.
     * Currently, only a single value for the companion banner asset is supported.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v9.common.AdImageAsset companion_banners = 6;</code>
     * @param \Google\Ads\GoogleAds\V9\Common\AdImageAsset[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setCompanionBanners($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V9\Common\AdImageAsset::class);
        $this->companion_banners = $arr;

        return $this;
    }

}

