<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/ads/googleads/v21/resources/ad_group.proto

namespace Google\Ads\GoogleAds\V21\Resources\AdGroup;

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

/**
 * Settings for video ad groups.
 *
 * Generated from protobuf message <code>google.ads.googleads.v21.resources.AdGroup.VideoAdGroupSettings</code>
 */
class VideoAdGroupSettings extends \Google\Protobuf\Internal\Message
{
    /**
     * The video ads sequence step settings containing step ID.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v21.resources.AdGroup.VideoAdGroupSettings.VideoAdSequenceStepSetting video_ad_sequence = 1;</code>
     */
    protected $video_ad_sequence = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Ads\GoogleAds\V21\Resources\AdGroup\VideoAdGroupSettings\VideoAdSequenceStepSetting $video_ad_sequence
     *           The video ads sequence step settings containing step ID.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V21\Resources\AdGroup::initOnce();
        parent::__construct($data);
    }

    /**
     * The video ads sequence step settings containing step ID.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v21.resources.AdGroup.VideoAdGroupSettings.VideoAdSequenceStepSetting video_ad_sequence = 1;</code>
     * @return \Google\Ads\GoogleAds\V21\Resources\AdGroup\VideoAdGroupSettings\VideoAdSequenceStepSetting|null
     */
    public function getVideoAdSequence()
    {
        return $this->video_ad_sequence;
    }

    public function hasVideoAdSequence()
    {
        return isset($this->video_ad_sequence);
    }

    public function clearVideoAdSequence()
    {
        unset($this->video_ad_sequence);
    }

    /**
     * The video ads sequence step settings containing step ID.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v21.resources.AdGroup.VideoAdGroupSettings.VideoAdSequenceStepSetting video_ad_sequence = 1;</code>
     * @param \Google\Ads\GoogleAds\V21\Resources\AdGroup\VideoAdGroupSettings\VideoAdSequenceStepSetting $var
     * @return $this
     */
    public function setVideoAdSequence($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V21\Resources\AdGroup\VideoAdGroupSettings\VideoAdSequenceStepSetting::class);
        $this->video_ad_sequence = $var;

        return $this;
    }

}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(VideoAdGroupSettings::class, \Google\Ads\GoogleAds\V21\Resources\AdGroup_VideoAdGroupSettings::class);

