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

namespace Google\Ads\GoogleAds\V24\Common;

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

/**
 * A Demand Gen video responsive ad.
 *
 * Generated from protobuf message <code>google.ads.googleads.v24.common.DemandGenVideoResponsiveAdInfo</code>
 */
class DemandGenVideoResponsiveAdInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * List of text assets used for the short headline.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.common.AdTextAsset headlines = 1;</code>
     */
    private $headlines;
    /**
     * List of text assets used for the long headline.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.common.AdTextAsset long_headlines = 2;</code>
     */
    private $long_headlines;
    /**
     * List of text assets used for the description.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.common.AdTextAsset descriptions = 3;</code>
     */
    private $descriptions;
    /**
     * Required. List of YouTube video assets used for the ad.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.common.AdVideoAsset videos = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $videos;
    /**
     * Required. Logo image to be used in the ad. Valid image types are GIF, JPEG,
     * and PNG. The minimum size is 128x128 and the aspect ratio must be 1:1
     * (+-1%).
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.common.AdImageAsset logo_images = 5 [(.google.api.field_behavior) = REQUIRED];</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.v24.common.AdImageAsset companion_banners = 10;</code>
     */
    private $companion_banners;
    /**
     * First part of text that appears in the ad with the displayed URL.
     *
     * Generated from protobuf field <code>string breadcrumb1 = 6;</code>
     */
    protected $breadcrumb1 = '';
    /**
     * Second part of text that appears in the ad with the displayed URL.
     *
     * Generated from protobuf field <code>string breadcrumb2 = 7;</code>
     */
    protected $breadcrumb2 = '';
    /**
     * Required. The advertiser/brand name.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v24.common.AdTextAsset business_name = 8 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $business_name = null;
    /**
     * Assets of type CallToActionAsset used for the "Call To Action" button.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.common.AdCallToActionAsset call_to_actions = 9;</code>
     */
    private $call_to_actions;

    /**
     * Constructor.
     *
     * @param array $data {
     *                    Optional. Data for populating the Message object.
     *
     * @type \Google\Ads\GoogleAds\V24\Common\AdTextAsset[] $headlines
     *           List of text assets used for the short headline.
     * @type \Google\Ads\GoogleAds\V24\Common\AdTextAsset[] $long_headlines
     *           List of text assets used for the long headline.
     * @type \Google\Ads\GoogleAds\V24\Common\AdTextAsset[] $descriptions
     *           List of text assets used for the description.
     * @type \Google\Ads\GoogleAds\V24\Common\AdVideoAsset[] $videos
     *           Required. List of YouTube video assets used for the ad.
     * @type \Google\Ads\GoogleAds\V24\Common\AdImageAsset[] $logo_images
     *           Required. Logo image to be used in the ad. Valid image types are GIF, JPEG,
     *           and PNG. The minimum size is 128x128 and the aspect ratio must be 1:1
     *           (+-1%).
     * @type \Google\Ads\GoogleAds\V24\Common\AdImageAsset[] $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.
     * @type \Google\Ads\GoogleAds\V24\Common\AdTextAsset $business_name
     *           Required. The advertiser/brand name.
     * @type \Google\Ads\GoogleAds\V24\Common\AdCallToActionAsset[] $call_to_actions
     *           Assets of type CallToActionAsset used for the "Call To Action" button.
     * }
     */
    public function __construct($data = null)
    {
        \GPBMetadata\Google\Ads\GoogleAds\V24\Common\AdTypeInfos::initOnce();
        parent::__construct($data);
    }

    /**
     * List of text assets used for the short headline.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.common.AdTextAsset headlines = 1;</code>
     *
     * @return RepeatedField<\Google\Ads\GoogleAds\V24\Common\AdTextAsset>
     */
    public function getHeadlines()
    {
        return $this->headlines;
    }

    /**
     * List of text assets used for the short headline.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.common.AdTextAsset headlines = 1;</code>
     *
     * @param  \Google\Ads\GoogleAds\V24\Common\AdTextAsset[] $var
     * @return $this
     */
    public function setHeadlines($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V24\Common\AdTextAsset::class);
        $this->headlines = $arr;

        return $this;
    }

    /**
     * List of text assets used for the long headline.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.common.AdTextAsset long_headlines = 2;</code>
     *
     * @return RepeatedField<\Google\Ads\GoogleAds\V24\Common\AdTextAsset>
     */
    public function getLongHeadlines()
    {
        return $this->long_headlines;
    }

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

        return $this;
    }

    /**
     * List of text assets used for the description.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.common.AdTextAsset descriptions = 3;</code>
     *
     * @return RepeatedField<\Google\Ads\GoogleAds\V24\Common\AdTextAsset>
     */
    public function getDescriptions()
    {
        return $this->descriptions;
    }

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

        return $this;
    }

    /**
     * Required. List of YouTube video assets used for the ad.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.common.AdVideoAsset videos = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return RepeatedField<\Google\Ads\GoogleAds\V24\Common\AdVideoAsset>
     */
    public function getVideos()
    {
        return $this->videos;
    }

    /**
     * Required. List of YouTube video assets used for the ad.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.common.AdVideoAsset videos = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @param  \Google\Ads\GoogleAds\V24\Common\AdVideoAsset[] $var
     * @return $this
     */
    public function setVideos($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V24\Common\AdVideoAsset::class);
        $this->videos = $arr;

        return $this;
    }

    /**
     * Required. Logo image to be used in the ad. Valid image types are GIF, JPEG,
     * and PNG. The minimum size is 128x128 and the aspect ratio must be 1:1
     * (+-1%).
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.common.AdImageAsset logo_images = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return RepeatedField<\Google\Ads\GoogleAds\V24\Common\AdImageAsset>
     */
    public function getLogoImages()
    {
        return $this->logo_images;
    }

    /**
     * Required. Logo image to be used in the ad. Valid image types are GIF, JPEG,
     * and PNG. The minimum size is 128x128 and the aspect ratio must be 1:1
     * (+-1%).
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.common.AdImageAsset logo_images = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @param  \Google\Ads\GoogleAds\V24\Common\AdImageAsset[] $var
     * @return $this
     */
    public function setLogoImages($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V24\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.v24.common.AdImageAsset companion_banners = 10;</code>
     *
     * @return RepeatedField<\Google\Ads\GoogleAds\V24\Common\AdImageAsset>
     */
    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.v24.common.AdImageAsset companion_banners = 10;</code>
     *
     * @param  \Google\Ads\GoogleAds\V24\Common\AdImageAsset[] $var
     * @return $this
     */
    public function setCompanionBanners($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V24\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 = 6;</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 = 6;</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 = 7;</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 = 7;</code>
     *
     * @param  string $var
     * @return $this
     */
    public function setBreadcrumb2($var)
    {
        GPBUtil::checkString($var, true);
        $this->breadcrumb2 = $var;

        return $this;
    }

    /**
     * Required. The advertiser/brand name.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v24.common.AdTextAsset business_name = 8 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return \Google\Ads\GoogleAds\V24\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);
    }

    /**
     * Required. The advertiser/brand name.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v24.common.AdTextAsset business_name = 8 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @param  \Google\Ads\GoogleAds\V24\Common\AdTextAsset $var
     * @return $this
     */
    public function setBusinessName($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V24\Common\AdTextAsset::class);
        $this->business_name = $var;

        return $this;
    }

    /**
     * Assets of type CallToActionAsset used for the "Call To Action" button.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.common.AdCallToActionAsset call_to_actions = 9;</code>
     *
     * @return RepeatedField<\Google\Ads\GoogleAds\V24\Common\AdCallToActionAsset>
     */
    public function getCallToActions()
    {
        return $this->call_to_actions;
    }

    /**
     * Assets of type CallToActionAsset used for the "Call To Action" button.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.common.AdCallToActionAsset call_to_actions = 9;</code>
     *
     * @param  \Google\Ads\GoogleAds\V24\Common\AdCallToActionAsset[] $var
     * @return $this
     */
    public function setCallToActions($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V24\Common\AdCallToActionAsset::class);
        $this->call_to_actions = $arr;

        return $this;
    }

}

