<?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\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * A video responsive ad.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.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.v23.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.v23.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.v23.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.v23.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.v23.common.AdVideoAsset videos = 5;</code>
     */
    private $videos;
    /**
     * Optional advertiser/brand name. Maximum display width is 25 characters.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.common.AdTextAsset business_name = 9;</code>
     */
    protected $business_name = null;
    /**
     * Optional logo image to be used in the ad. The minimum size is 128x128 and
     * the aspect ratio must be 1:1(+-1%).
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.common.AdImageAsset logo_images = 10;</code>
     */
    private $logo_images;
    /**
     * 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.v23.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\V23\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\V23\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\V23\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\V23\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\V23\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\V23\Common\AdTextAsset $business_name
     *           Optional advertiser/brand name. Maximum display width is 25 characters.
     *     @type array<\Google\Ads\GoogleAds\V23\Common\AdImageAsset>|\Google\Protobuf\Internal\RepeatedField $logo_images
     *           Optional logo image to be used in the ad. The minimum size is 128x128 and
     *           the aspect ratio must be 1:1(+-1%).
     *     @type array<\Google\Ads\GoogleAds\V23\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\V23\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.v23.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.v23.common.AdTextAsset headlines = 1;</code>
     * @param array<\Google\Ads\GoogleAds\V23\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\V23\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.v23.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.v23.common.AdTextAsset long_headlines = 2;</code>
     * @param array<\Google\Ads\GoogleAds\V23\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\V23\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.v23.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.v23.common.AdTextAsset descriptions = 3;</code>
     * @param array<\Google\Ads\GoogleAds\V23\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\V23\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.v23.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.v23.common.AdTextAsset call_to_actions = 4;</code>
     * @param array<\Google\Ads\GoogleAds\V23\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\V23\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.v23.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.v23.common.AdVideoAsset videos = 5;</code>
     * @param array<\Google\Ads\GoogleAds\V23\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\V23\Common\AdVideoAsset::class);
        $this->videos = $arr;

        return $this;
    }

    /**
     * Optional advertiser/brand name. Maximum display width is 25 characters.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.common.AdTextAsset business_name = 9;</code>
     * @return \Google\Ads\GoogleAds\V23\Common\AdTextAsset|null
     */
    public function getBusinessName()
    {
        return $this->business_name;
    }

    public function hasBusinessName()
    {
        return isset($this->business_name);
    }

    public function clearBusinessName()
    {
        unset($this->business_name);
    }

    /**
     * Optional advertiser/brand name. Maximum display width is 25 characters.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.common.AdTextAsset business_name = 9;</code>
     * @param \Google\Ads\GoogleAds\V23\Common\AdTextAsset $var
     * @return $this
     */
    public function setBusinessName($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V23\Common\AdTextAsset::class);
        $this->business_name = $var;

        return $this;
    }

    /**
     * Optional logo image to be used in the ad. The minimum size is 128x128 and
     * the aspect ratio must be 1:1(+-1%).
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.common.AdImageAsset logo_images = 10;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getLogoImages()
    {
        return $this->logo_images;
    }

    /**
     * Optional logo image to be used in the ad. The minimum size is 128x128 and
     * the aspect ratio must be 1:1(+-1%).
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.common.AdImageAsset logo_images = 10;</code>
     * @param array<\Google\Ads\GoogleAds\V23\Common\AdImageAsset>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setLogoImages($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V23\Common\AdImageAsset::class);
        $this->logo_images = $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.v23.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.v23.common.AdImageAsset companion_banners = 6;</code>
     * @param array<\Google\Ads\GoogleAds\V23\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\V23\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;
    }

}

