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

namespace Google\Ads\GoogleAds\V23\Resources\Campaign\VideoCampaignSettings;

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

/**
 * Container for video ads sequencing definition.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.resources.Campaign.VideoCampaignSettings.VideoAdSequence</code>
 */
class VideoAdSequence extends \Google\Protobuf\Internal\Message
{
    /**
     * The list of sequence steps and data associated with them.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.resources.Campaign.VideoCampaignSettings.VideoAdSequenceStep steps = 1;</code>
     */
    private $steps;
    /**
     * Users are eligible to repeat sequence after this period. Defaults to
     * WEEK if not specified.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.enums.VideoAdSequenceMinimumDurationEnum.VideoAdSequenceMinimumDuration minimum_duration = 2;</code>
     */
    protected $minimum_duration = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Ads\GoogleAds\V23\Resources\Campaign\VideoCampaignSettings\VideoAdSequenceStep>|\Google\Protobuf\Internal\RepeatedField $steps
     *           The list of sequence steps and data associated with them.
     *     @type int $minimum_duration
     *           Users are eligible to repeat sequence after this period. Defaults to
     *           WEEK if not specified.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Resources\Campaign::initOnce();
        parent::__construct($data);
    }

    /**
     * The list of sequence steps and data associated with them.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.resources.Campaign.VideoCampaignSettings.VideoAdSequenceStep steps = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getSteps()
    {
        return $this->steps;
    }

    /**
     * The list of sequence steps and data associated with them.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.resources.Campaign.VideoCampaignSettings.VideoAdSequenceStep steps = 1;</code>
     * @param array<\Google\Ads\GoogleAds\V23\Resources\Campaign\VideoCampaignSettings\VideoAdSequenceStep>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setSteps($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V23\Resources\Campaign\VideoCampaignSettings\VideoAdSequenceStep::class);
        $this->steps = $arr;

        return $this;
    }

    /**
     * Users are eligible to repeat sequence after this period. Defaults to
     * WEEK if not specified.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.enums.VideoAdSequenceMinimumDurationEnum.VideoAdSequenceMinimumDuration minimum_duration = 2;</code>
     * @return int
     */
    public function getMinimumDuration()
    {
        return $this->minimum_duration;
    }

    /**
     * Users are eligible to repeat sequence after this period. Defaults to
     * WEEK if not specified.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.enums.VideoAdSequenceMinimumDurationEnum.VideoAdSequenceMinimumDuration minimum_duration = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setMinimumDuration($var)
    {
        GPBUtil::checkEnum($var, \Google\Ads\GoogleAds\V23\Enums\VideoAdSequenceMinimumDurationEnum\VideoAdSequenceMinimumDuration::class);
        $this->minimum_duration = $var;

        return $this;
    }

}

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

