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

namespace Google\Ads\GoogleAds\V22\Common;

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

/**
 * A YouTube video list asset.
 *
 * Generated from protobuf message <code>google.ads.googleads.v22.common.YouTubeVideoListAsset</code>
 */
class YouTubeVideoListAsset extends \Google\Protobuf\Internal\Message
{
    /**
     * List of videos. Each is a reference to a YouTube video asset. Minimum of 2
     * videos required and maximum of 5 allowed.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v22.common.AdVideoAsset youtube_videos = 1;</code>
     */
    private $youtube_videos;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Ads\GoogleAds\V22\Common\AdVideoAsset>|\Google\Protobuf\Internal\RepeatedField $youtube_videos
     *           List of videos. Each is a reference to a YouTube video asset. Minimum of 2
     *           videos required and maximum of 5 allowed.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V22\Common\AssetTypes::initOnce();
        parent::__construct($data);
    }

    /**
     * List of videos. Each is a reference to a YouTube video asset. Minimum of 2
     * videos required and maximum of 5 allowed.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v22.common.AdVideoAsset youtube_videos = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getYoutubeVideos()
    {
        return $this->youtube_videos;
    }

    /**
     * List of videos. Each is a reference to a YouTube video asset. Minimum of 2
     * videos required and maximum of 5 allowed.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v22.common.AdVideoAsset youtube_videos = 1;</code>
     * @param array<\Google\Ads\GoogleAds\V22\Common\AdVideoAsset>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setYoutubeVideos($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V22\Common\AdVideoAsset::class);
        $this->youtube_videos = $arr;

        return $this;
    }

}

