<?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 Demand Gen video responsive ad.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.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.v23.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.v23.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.v23.common.AdTextAsset descriptions = 3;</code>
     */
    private $descriptions;
    /**
     * List of YouTube video assets used for the ad.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.common.AdVideoAsset videos = 4;</code>
     */
    private $videos;
    /**
     * 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.v23.common.AdImageAsset logo_images = 5;</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 = 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.v23.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.v23.common.AdCallToActionAsset call_to_actions = 9;</code>
     */
    private $call_to_actions;

    /**
     * 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.
     *     @type array<\Google\Ads\GoogleAds\V23\Common\AdTextAsset>|\Google\Protobuf\Internal\RepeatedField $long_headlines
     *           List of text assets used for the long headline.
     *     @type array<\Google\Ads\GoogleAds\V23\Common\AdTextAsset>|\Google\Protobuf\Internal\RepeatedField $descriptions
     *           List of text assets used for the description.
     *     @type array<\Google\Ads\GoogleAds\V23\Common\AdVideoAsset>|\Google\Protobuf\Internal\RepeatedField $videos
     *           List of YouTube video assets used for the ad.
     *     @type array<\Google\Ads\GoogleAds\V23\Common\AdImageAsset>|\Google\Protobuf\Internal\RepeatedField $logo_images
     *           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 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.
     *     @type \Google\Ads\GoogleAds\V23\Common\AdTextAsset $business_name
     *           Required. The advertiser/brand name.
     *     @type array<\Google\Ads\GoogleAds\V23\Common\AdCallToActionAsset>|\Google\Protobuf\Internal\RepeatedField $call_to_actions
     *           Assets of type CallToActionAsset used for the "Call To Action" button.
     * }
     */
    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.
     *
     * 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.
     *
     * 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.
     *
     * 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.
     *
     * 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.
     *
     * 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.
     *
     * 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 YouTube video assets used for the ad.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.common.AdVideoAsset videos = 4;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getVideos()
    {
        return $this->videos;
    }

    /**
     * List of YouTube video assets used for the ad.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.common.AdVideoAsset videos = 4;</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;
    }

    /**
     * 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.v23.common.AdImageAsset logo_images = 5;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getLogoImages()
    {
        return $this->logo_images;
    }

    /**
     * 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.v23.common.AdImageAsset logo_images = 5;</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 = 10;</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 = 10;</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 = 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.v23.common.AdTextAsset business_name = 8 [(.google.api.field_behavior) = REQUIRED];</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);
    }

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

    /**
     * Assets of type CallToActionAsset used for the "Call To Action" button.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.common.AdCallToActionAsset call_to_actions = 9;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    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.v23.common.AdCallToActionAsset call_to_actions = 9;</code>
     * @param array<\Google\Ads\GoogleAds\V23\Common\AdCallToActionAsset>|\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\AdCallToActionAsset::class);
        $this->call_to_actions = $arr;

        return $this;
    }

}

