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

namespace Google\Ads\GoogleAds\V25\Common;

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

/**
 * A Demand Gen multi asset ad.
 *
 * Generated from protobuf message <code>google.ads.googleads.v25.common.DemandGenMultiAssetAdInfo</code>
 */
class DemandGenMultiAssetAdInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Marketing image assets to be used in the ad. Valid image types are GIF,
     * JPEG, and PNG. The minimum size is 600x314 and the aspect ratio must
     * be 1.91:1 (+-1%). Required if square_marketing_images is
     * not present. Combined with
     * `square_marketing_images`, `portrait_marketing_images`, and
     * `tall_portrait_marketing_images` the maximum is 20.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.common.AdImageAsset marketing_images = 1;</code>
     */
    private $marketing_images;
    /**
     * Square marketing image assets to be used in the ad. Valid image types are
     * GIF, JPEG, and PNG. The minimum size is 300x300 and the aspect ratio must
     * be 1:1 (+-1%). Required if marketing_images is not present. Combined with
     * `marketing_images`, `portrait_marketing_images`, and
     * `tall_portrait_marketing_images` the maximum is 20.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.common.AdImageAsset square_marketing_images = 2;</code>
     */
    private $square_marketing_images;
    /**
     * Portrait marketing image assets to be used in the ad. Valid image types are
     * GIF, JPEG, and PNG. The minimum size is 480x600 and the aspect ratio must
     * be 4:5 (+-1%). Combined
     * with `marketing_images`, `square_marketing_images`, and
     * `tall_portrait_marketing_images` the maximum is 20.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.common.AdImageAsset portrait_marketing_images = 3;</code>
     */
    private $portrait_marketing_images;
    /**
     * Tall portrait marketing image assets to be used in the ad. Valid image
     * types are GIF, JPEG, and PNG. The minimum size is 600x1067 and the aspect
     * ratio must be 9:16 (+-1%). Combined with `marketing_images`,
     * `square_marketing_images`, and `portrait_marketing_images`, the maximum
     * is 20.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.common.AdImageAsset tall_portrait_marketing_images = 10;</code>
     */
    private $tall_portrait_marketing_images;
    /**
     * Logo image assets 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%). At least 1 and max 5 logo images can be specified.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.common.AdImageAsset logo_images = 4;</code>
     */
    private $logo_images;
    /**
     * Classic display image assets to be used in the ad. Valid image types are
     * GIF, JPEG, and PNG. At most 20 classic display images can be specified per
     * ad.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.common.AdImageAsset classic_display_images = 11;</code>
     */
    private $classic_display_images;
    /**
     * Headline text asset of the ad. Maximum display width is 30. At least 1 and
     * max 5 headlines can be specified.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.common.AdTextAsset headlines = 5;</code>
     */
    private $headlines;
    /**
     * The descriptive text of the ad. Maximum display width is 90. At least 1 and
     * max 5 descriptions can be specified.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.common.AdTextAsset descriptions = 6;</code>
     */
    private $descriptions;
    /**
     * The Advertiser/brand name. Maximum display width is 25. Required.
     *
     * Generated from protobuf field <code>optional string business_name = 7;</code>
     */
    protected $business_name = null;
    /**
     * Call to action text.
     *
     * Generated from protobuf field <code>optional string call_to_action_text = 8;</code>
     */
    protected $call_to_action_text = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Ads\GoogleAds\V25\Common\AdImageAsset[] $marketing_images
     *           Marketing image assets to be used in the ad. Valid image types are GIF,
     *           JPEG, and PNG. The minimum size is 600x314 and the aspect ratio must
     *           be 1.91:1 (+-1%). Required if square_marketing_images is
     *           not present. Combined with
     *           `square_marketing_images`, `portrait_marketing_images`, and
     *           `tall_portrait_marketing_images` the maximum is 20.
     *     @type \Google\Ads\GoogleAds\V25\Common\AdImageAsset[] $square_marketing_images
     *           Square marketing image assets to be used in the ad. Valid image types are
     *           GIF, JPEG, and PNG. The minimum size is 300x300 and the aspect ratio must
     *           be 1:1 (+-1%). Required if marketing_images is not present. Combined with
     *           `marketing_images`, `portrait_marketing_images`, and
     *           `tall_portrait_marketing_images` the maximum is 20.
     *     @type \Google\Ads\GoogleAds\V25\Common\AdImageAsset[] $portrait_marketing_images
     *           Portrait marketing image assets to be used in the ad. Valid image types are
     *           GIF, JPEG, and PNG. The minimum size is 480x600 and the aspect ratio must
     *           be 4:5 (+-1%). Combined
     *           with `marketing_images`, `square_marketing_images`, and
     *           `tall_portrait_marketing_images` the maximum is 20.
     *     @type \Google\Ads\GoogleAds\V25\Common\AdImageAsset[] $tall_portrait_marketing_images
     *           Tall portrait marketing image assets to be used in the ad. Valid image
     *           types are GIF, JPEG, and PNG. The minimum size is 600x1067 and the aspect
     *           ratio must be 9:16 (+-1%). Combined with `marketing_images`,
     *           `square_marketing_images`, and `portrait_marketing_images`, the maximum
     *           is 20.
     *     @type \Google\Ads\GoogleAds\V25\Common\AdImageAsset[] $logo_images
     *           Logo image assets 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%). At least 1 and max 5 logo images can be specified.
     *     @type \Google\Ads\GoogleAds\V25\Common\AdImageAsset[] $classic_display_images
     *           Classic display image assets to be used in the ad. Valid image types are
     *           GIF, JPEG, and PNG. At most 20 classic display images can be specified per
     *           ad.
     *     @type \Google\Ads\GoogleAds\V25\Common\AdTextAsset[] $headlines
     *           Headline text asset of the ad. Maximum display width is 30. At least 1 and
     *           max 5 headlines can be specified.
     *     @type \Google\Ads\GoogleAds\V25\Common\AdTextAsset[] $descriptions
     *           The descriptive text of the ad. Maximum display width is 90. At least 1 and
     *           max 5 descriptions can be specified.
     *     @type string $business_name
     *           The Advertiser/brand name. Maximum display width is 25. Required.
     *     @type string $call_to_action_text
     *           Call to action text.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V25\Common\AdTypeInfos::initOnce();
        parent::__construct($data);
    }

    /**
     * Marketing image assets to be used in the ad. Valid image types are GIF,
     * JPEG, and PNG. The minimum size is 600x314 and the aspect ratio must
     * be 1.91:1 (+-1%). Required if square_marketing_images is
     * not present. Combined with
     * `square_marketing_images`, `portrait_marketing_images`, and
     * `tall_portrait_marketing_images` the maximum is 20.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.common.AdImageAsset marketing_images = 1;</code>
     * @return RepeatedField<\Google\Ads\GoogleAds\V25\Common\AdImageAsset>
     */
    public function getMarketingImages()
    {
        return $this->marketing_images;
    }

    /**
     * Marketing image assets to be used in the ad. Valid image types are GIF,
     * JPEG, and PNG. The minimum size is 600x314 and the aspect ratio must
     * be 1.91:1 (+-1%). Required if square_marketing_images is
     * not present. Combined with
     * `square_marketing_images`, `portrait_marketing_images`, and
     * `tall_portrait_marketing_images` the maximum is 20.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.common.AdImageAsset marketing_images = 1;</code>
     * @param \Google\Ads\GoogleAds\V25\Common\AdImageAsset[] $var
     * @return $this
     */
    public function setMarketingImages($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V25\Common\AdImageAsset::class);
        $this->marketing_images = $arr;

        return $this;
    }

    /**
     * Square marketing image assets to be used in the ad. Valid image types are
     * GIF, JPEG, and PNG. The minimum size is 300x300 and the aspect ratio must
     * be 1:1 (+-1%). Required if marketing_images is not present. Combined with
     * `marketing_images`, `portrait_marketing_images`, and
     * `tall_portrait_marketing_images` the maximum is 20.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.common.AdImageAsset square_marketing_images = 2;</code>
     * @return RepeatedField<\Google\Ads\GoogleAds\V25\Common\AdImageAsset>
     */
    public function getSquareMarketingImages()
    {
        return $this->square_marketing_images;
    }

    /**
     * Square marketing image assets to be used in the ad. Valid image types are
     * GIF, JPEG, and PNG. The minimum size is 300x300 and the aspect ratio must
     * be 1:1 (+-1%). Required if marketing_images is not present. Combined with
     * `marketing_images`, `portrait_marketing_images`, and
     * `tall_portrait_marketing_images` the maximum is 20.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.common.AdImageAsset square_marketing_images = 2;</code>
     * @param \Google\Ads\GoogleAds\V25\Common\AdImageAsset[] $var
     * @return $this
     */
    public function setSquareMarketingImages($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V25\Common\AdImageAsset::class);
        $this->square_marketing_images = $arr;

        return $this;
    }

    /**
     * Portrait marketing image assets to be used in the ad. Valid image types are
     * GIF, JPEG, and PNG. The minimum size is 480x600 and the aspect ratio must
     * be 4:5 (+-1%). Combined
     * with `marketing_images`, `square_marketing_images`, and
     * `tall_portrait_marketing_images` the maximum is 20.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.common.AdImageAsset portrait_marketing_images = 3;</code>
     * @return RepeatedField<\Google\Ads\GoogleAds\V25\Common\AdImageAsset>
     */
    public function getPortraitMarketingImages()
    {
        return $this->portrait_marketing_images;
    }

    /**
     * Portrait marketing image assets to be used in the ad. Valid image types are
     * GIF, JPEG, and PNG. The minimum size is 480x600 and the aspect ratio must
     * be 4:5 (+-1%). Combined
     * with `marketing_images`, `square_marketing_images`, and
     * `tall_portrait_marketing_images` the maximum is 20.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.common.AdImageAsset portrait_marketing_images = 3;</code>
     * @param \Google\Ads\GoogleAds\V25\Common\AdImageAsset[] $var
     * @return $this
     */
    public function setPortraitMarketingImages($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V25\Common\AdImageAsset::class);
        $this->portrait_marketing_images = $arr;

        return $this;
    }

    /**
     * Tall portrait marketing image assets to be used in the ad. Valid image
     * types are GIF, JPEG, and PNG. The minimum size is 600x1067 and the aspect
     * ratio must be 9:16 (+-1%). Combined with `marketing_images`,
     * `square_marketing_images`, and `portrait_marketing_images`, the maximum
     * is 20.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.common.AdImageAsset tall_portrait_marketing_images = 10;</code>
     * @return RepeatedField<\Google\Ads\GoogleAds\V25\Common\AdImageAsset>
     */
    public function getTallPortraitMarketingImages()
    {
        return $this->tall_portrait_marketing_images;
    }

    /**
     * Tall portrait marketing image assets to be used in the ad. Valid image
     * types are GIF, JPEG, and PNG. The minimum size is 600x1067 and the aspect
     * ratio must be 9:16 (+-1%). Combined with `marketing_images`,
     * `square_marketing_images`, and `portrait_marketing_images`, the maximum
     * is 20.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.common.AdImageAsset tall_portrait_marketing_images = 10;</code>
     * @param \Google\Ads\GoogleAds\V25\Common\AdImageAsset[] $var
     * @return $this
     */
    public function setTallPortraitMarketingImages($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V25\Common\AdImageAsset::class);
        $this->tall_portrait_marketing_images = $arr;

        return $this;
    }

    /**
     * Logo image assets 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%). At least 1 and max 5 logo images can be specified.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.common.AdImageAsset logo_images = 4;</code>
     * @return RepeatedField<\Google\Ads\GoogleAds\V25\Common\AdImageAsset>
     */
    public function getLogoImages()
    {
        return $this->logo_images;
    }

    /**
     * Logo image assets 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%). At least 1 and max 5 logo images can be specified.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.common.AdImageAsset logo_images = 4;</code>
     * @param \Google\Ads\GoogleAds\V25\Common\AdImageAsset[] $var
     * @return $this
     */
    public function setLogoImages($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V25\Common\AdImageAsset::class);
        $this->logo_images = $arr;

        return $this;
    }

    /**
     * Classic display image assets to be used in the ad. Valid image types are
     * GIF, JPEG, and PNG. At most 20 classic display images can be specified per
     * ad.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.common.AdImageAsset classic_display_images = 11;</code>
     * @return RepeatedField<\Google\Ads\GoogleAds\V25\Common\AdImageAsset>
     */
    public function getClassicDisplayImages()
    {
        return $this->classic_display_images;
    }

    /**
     * Classic display image assets to be used in the ad. Valid image types are
     * GIF, JPEG, and PNG. At most 20 classic display images can be specified per
     * ad.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.common.AdImageAsset classic_display_images = 11;</code>
     * @param \Google\Ads\GoogleAds\V25\Common\AdImageAsset[] $var
     * @return $this
     */
    public function setClassicDisplayImages($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V25\Common\AdImageAsset::class);
        $this->classic_display_images = $arr;

        return $this;
    }

    /**
     * Headline text asset of the ad. Maximum display width is 30. At least 1 and
     * max 5 headlines can be specified.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.common.AdTextAsset headlines = 5;</code>
     * @return RepeatedField<\Google\Ads\GoogleAds\V25\Common\AdTextAsset>
     */
    public function getHeadlines()
    {
        return $this->headlines;
    }

    /**
     * Headline text asset of the ad. Maximum display width is 30. At least 1 and
     * max 5 headlines can be specified.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.common.AdTextAsset headlines = 5;</code>
     * @param \Google\Ads\GoogleAds\V25\Common\AdTextAsset[] $var
     * @return $this
     */
    public function setHeadlines($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V25\Common\AdTextAsset::class);
        $this->headlines = $arr;

        return $this;
    }

    /**
     * The descriptive text of the ad. Maximum display width is 90. At least 1 and
     * max 5 descriptions can be specified.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.common.AdTextAsset descriptions = 6;</code>
     * @return RepeatedField<\Google\Ads\GoogleAds\V25\Common\AdTextAsset>
     */
    public function getDescriptions()
    {
        return $this->descriptions;
    }

    /**
     * The descriptive text of the ad. Maximum display width is 90. At least 1 and
     * max 5 descriptions can be specified.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.common.AdTextAsset descriptions = 6;</code>
     * @param \Google\Ads\GoogleAds\V25\Common\AdTextAsset[] $var
     * @return $this
     */
    public function setDescriptions($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V25\Common\AdTextAsset::class);
        $this->descriptions = $arr;

        return $this;
    }

    /**
     * The Advertiser/brand name. Maximum display width is 25. Required.
     *
     * Generated from protobuf field <code>optional string business_name = 7;</code>
     * @return string
     */
    public function getBusinessName()
    {
        return isset($this->business_name) ? $this->business_name : '';
    }

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

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

    /**
     * The Advertiser/brand name. Maximum display width is 25. Required.
     *
     * Generated from protobuf field <code>optional string business_name = 7;</code>
     * @param string $var
     * @return $this
     */
    public function setBusinessName($var)
    {
        GPBUtil::checkString($var, True);
        $this->business_name = $var;

        return $this;
    }

    /**
     * Call to action text.
     *
     * Generated from protobuf field <code>optional string call_to_action_text = 8;</code>
     * @return string
     */
    public function getCallToActionText()
    {
        return isset($this->call_to_action_text) ? $this->call_to_action_text : '';
    }

    public function hasCallToActionText()
    {
        return isset($this->call_to_action_text);
    }

    public function clearCallToActionText()
    {
        unset($this->call_to_action_text);
    }

    /**
     * Call to action text.
     *
     * Generated from protobuf field <code>optional string call_to_action_text = 8;</code>
     * @param string $var
     * @return $this
     */
    public function setCallToActionText($var)
    {
        GPBUtil::checkString($var, True);
        $this->call_to_action_text = $var;

        return $this;
    }

}

