<?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;

/**
 * App engagement ads allow you to write text encouraging a specific action in
 * the app, like checking in, making a purchase, or booking a flight.
 * They allow you to send users to a specific part of your app where they can
 * find what they're looking for easier and faster.
 *
 * Generated from protobuf message <code>google.ads.googleads.v24.common.AppEngagementAdInfo</code>
 */
class AppEngagementAdInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * List of text assets for headlines. When the ad serves the headlines will
     * be selected from this list.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.common.AdTextAsset headlines = 1;</code>
     */
    private $headlines;
    /**
     * List of text assets for descriptions. When the ad serves the descriptions
     * will be selected from this list.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.common.AdTextAsset descriptions = 2;</code>
     */
    private $descriptions;
    /**
     * List of image assets that may be displayed with the ad.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.common.AdImageAsset images = 3;</code>
     */
    private $images;
    /**
     * List of video assets that may be displayed with the ad.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.common.AdVideoAsset videos = 4;</code>
     */
    private $videos;

    /**
     * Constructor.
     *
     * @param array $data {
     *                    Optional. Data for populating the Message object.
     *
     * @type \Google\Ads\GoogleAds\V24\Common\AdTextAsset[] $headlines
     *           List of text assets for headlines. When the ad serves the headlines will
     *           be selected from this list.
     * @type \Google\Ads\GoogleAds\V24\Common\AdTextAsset[] $descriptions
     *           List of text assets for descriptions. When the ad serves the descriptions
     *           will be selected from this list.
     * @type \Google\Ads\GoogleAds\V24\Common\AdImageAsset[] $images
     *           List of image assets that may be displayed with the ad.
     * @type \Google\Ads\GoogleAds\V24\Common\AdVideoAsset[] $videos
     *           List of video assets that may be displayed with the ad.
     * }
     */
    public function __construct($data = null)
    {
        \GPBMetadata\Google\Ads\GoogleAds\V24\Common\AdTypeInfos::initOnce();
        parent::__construct($data);
    }

    /**
     * List of text assets for headlines. When the ad serves the headlines will
     * be selected from this list.
     *
     * 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 for headlines. When the ad serves the headlines will
     * be selected from this list.
     *
     * 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 for descriptions. When the ad serves the descriptions
     * will be selected from this list.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.common.AdTextAsset descriptions = 2;</code>
     *
     * @return RepeatedField<\Google\Ads\GoogleAds\V24\Common\AdTextAsset>
     */
    public function getDescriptions()
    {
        return $this->descriptions;
    }

    /**
     * List of text assets for descriptions. When the ad serves the descriptions
     * will be selected from this list.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.common.AdTextAsset descriptions = 2;</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;
    }

    /**
     * List of image assets that may be displayed with the ad.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.common.AdImageAsset images = 3;</code>
     *
     * @return RepeatedField<\Google\Ads\GoogleAds\V24\Common\AdImageAsset>
     */
    public function getImages()
    {
        return $this->images;
    }

    /**
     * List of image assets that may be displayed with the ad.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.common.AdImageAsset images = 3;</code>
     *
     * @param  \Google\Ads\GoogleAds\V24\Common\AdImageAsset[] $var
     * @return $this
     */
    public function setImages($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V24\Common\AdImageAsset::class);
        $this->images = $arr;

        return $this;
    }

    /**
     * List of video assets that may be displayed with the ad.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.common.AdVideoAsset videos = 4;</code>
     *
     * @return RepeatedField<\Google\Ads\GoogleAds\V24\Common\AdVideoAsset>
     */
    public function getVideos()
    {
        return $this->videos;
    }

    /**
     * List of video assets that may be displayed with the ad.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.common.AdVideoAsset videos = 4;</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;
    }

}

