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

namespace Google\Ads\GoogleAds\V16\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.v16.common.VideoResponsiveAdInfo</code>
 */
class VideoResponsiveAdInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * List of text assets used for the short headline. Currently, only a single
     * value for the short headline is supported.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v16.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.v16.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.v16.common.AdTextAsset descriptions = 3;</code>
     */
    private $descriptions;
    /**
     * List of text assets used for the button, for example, the "Call To Action"
     * button. Currently, only a single value for the button is supported.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v16.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.v16.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.v16.common.AdImageAsset companion_banners = 6;</code>
     */
    private $companion_banners;
    /**
     * First part of text that appears in the ad with the displayed URL.
     *
     * Generated from protobuf field <code>string breadcrumb1 = 7;</code>
     */
    protected $breadcrumb1 = '';
    /**
     * Second part of text that appears in the ad with the displayed URL.
     *
     * Generated from protobuf field <code>string breadcrumb2 = 8;</code>
     */
    protected $breadcrumb2 = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Ads\GoogleAds\V16\Common\AdTextAsset>|\Google\Protobuf\Internal\RepeatedField $headlines
     *           List of text assets used for the short headline. Currently, only a single
     *           value for the short headline is supported.
     *     @type array<\Google\Ads\GoogleAds\V16\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 array<\Google\Ads\GoogleAds\V16\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 array<\Google\Ads\GoogleAds\V16\Common\AdTextAsset>|\Google\Protobuf\Internal\RepeatedField $call_to_actions
     *           List of text assets used for the button, for example, the "Call To Action"
     *           button. Currently, only a single value for the button is supported.
     *     @type array<\Google\Ads\GoogleAds\V16\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 array<\Google\Ads\GoogleAds\V16\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.
     *     @type string $breadcrumb1
     *           First part of text that appears in the ad with the displayed URL.
     *     @type string $breadcrumb2
     *           Second part of text that appears in the ad with the displayed URL.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V16\Common\AdTypeInfos::initOnce();
        parent::__construct($data);
    }

    /**
     * List of text assets used for the short headline. Currently, only a single
     * value for the short headline is supported.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v16.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. Currently, only a single
     * value for the short headline is supported.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v16.common.AdTextAsset headlines = 1;</code>
     * @param array<\Google\Ads\GoogleAds\V16\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\V16\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.v16.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.v16.common.AdTextAsset long_headlines = 2;</code>
     * @param array<\Google\Ads\GoogleAds\V16\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\V16\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.v16.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.v16.common.AdTextAsset descriptions = 3;</code>
     * @param array<\Google\Ads\GoogleAds\V16\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\V16\Common\AdTextAsset::class);
        $this->descriptions = $arr;

        return $this;
    }

    /**
     * List of text assets used for the button, for example, the "Call To Action"
     * button. Currently, only a single value for the button is supported.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v16.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, for example, the "Call To Action"
     * button. Currently, only a single value for the button is supported.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v16.common.AdTextAsset call_to_actions = 4;</code>
     * @param array<\Google\Ads\GoogleAds\V16\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\V16\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.v16.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.v16.common.AdVideoAsset videos = 5;</code>
     * @param array<\Google\Ads\GoogleAds\V16\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\V16\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.v16.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.v16.common.AdImageAsset companion_banners = 6;</code>
     * @param array<\Google\Ads\GoogleAds\V16\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\V16\Common\AdImageAsset::class);
        $this->companion_banners = $arr;

        return $this;
    }

    /**
     * First part of text that appears in the ad with the displayed URL.
     *
     * Generated from protobuf field <code>string breadcrumb1 = 7;</code>
     * @return string
     */
    public function getBreadcrumb1()
    {
        return $this->breadcrumb1;
    }

    /**
     * First part of text that appears in the ad with the displayed URL.
     *
     * Generated from protobuf field <code>string breadcrumb1 = 7;</code>
     * @param string $var
     * @return $this
     */
    public function setBreadcrumb1($var)
    {
        GPBUtil::checkString($var, True);
        $this->breadcrumb1 = $var;

        return $this;
    }

    /**
     * Second part of text that appears in the ad with the displayed URL.
     *
     * Generated from protobuf field <code>string breadcrumb2 = 8;</code>
     * @return string
     */
    public function getBreadcrumb2()
    {
        return $this->breadcrumb2;
    }

    /**
     * Second part of text that appears in the ad with the displayed URL.
     *
     * Generated from protobuf field <code>string breadcrumb2 = 8;</code>
     * @param string $var
     * @return $this
     */
    public function setBreadcrumb2($var)
    {
        GPBUtil::checkString($var, True);
        $this->breadcrumb2 = $var;

        return $this;
    }

}

