<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: action.proto

namespace Rv\Data\Action\MediaType;

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

/**
 * Generated from protobuf message <code>rv.data.Action.MediaType.Video</code>
 */
class Video extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.Action.MediaType.PlaybackBehavior playback_behavior = 1;</code>
     */
    protected $playback_behavior = 0;
    /**
     * Generated from protobuf field <code>.rv.data.Action.MediaType.EndBehavior end_behavior = 2;</code>
     */
    protected $end_behavior = 0;
    /**
     * Generated from protobuf field <code>double loop_time = 3;</code>
     */
    protected $loop_time = 0.0;
    /**
     * Generated from protobuf field <code>uint32 times_to_loop = 4;</code>
     */
    protected $times_to_loop = 0;
    /**
     * Generated from protobuf field <code>bool soft_loop = 5;</code>
     */
    protected $soft_loop = false;
    /**
     * Generated from protobuf field <code>double soft_loop_duration = 6;</code>
     */
    protected $soft_loop_duration = 0.0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $playback_behavior
     *     @type int $end_behavior
     *     @type float $loop_time
     *     @type int $times_to_loop
     *     @type bool $soft_loop
     *     @type float $soft_loop_duration
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Action::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.rv.data.Action.MediaType.PlaybackBehavior playback_behavior = 1;</code>
     * @return int
     */
    public function getPlaybackBehavior()
    {
        return $this->playback_behavior;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Action.MediaType.PlaybackBehavior playback_behavior = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setPlaybackBehavior($var)
    {
        GPBUtil::checkEnum($var, \Rv\Data\Action\MediaType\PlaybackBehavior::class);
        $this->playback_behavior = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Action.MediaType.EndBehavior end_behavior = 2;</code>
     * @return int
     */
    public function getEndBehavior()
    {
        return $this->end_behavior;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Action.MediaType.EndBehavior end_behavior = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setEndBehavior($var)
    {
        GPBUtil::checkEnum($var, \Rv\Data\Action\MediaType\EndBehavior::class);
        $this->end_behavior = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>double loop_time = 3;</code>
     * @return float
     */
    public function getLoopTime()
    {
        return $this->loop_time;
    }

    /**
     * Generated from protobuf field <code>double loop_time = 3;</code>
     * @param float $var
     * @return $this
     */
    public function setLoopTime($var)
    {
        GPBUtil::checkDouble($var);
        $this->loop_time = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>uint32 times_to_loop = 4;</code>
     * @return int
     */
    public function getTimesToLoop()
    {
        return $this->times_to_loop;
    }

    /**
     * Generated from protobuf field <code>uint32 times_to_loop = 4;</code>
     * @param int $var
     * @return $this
     */
    public function setTimesToLoop($var)
    {
        GPBUtil::checkUint32($var);
        $this->times_to_loop = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool soft_loop = 5;</code>
     * @return bool
     */
    public function getSoftLoop()
    {
        return $this->soft_loop;
    }

    /**
     * Generated from protobuf field <code>bool soft_loop = 5;</code>
     * @param bool $var
     * @return $this
     */
    public function setSoftLoop($var)
    {
        GPBUtil::checkBool($var);
        $this->soft_loop = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>double soft_loop_duration = 6;</code>
     * @return float
     */
    public function getSoftLoopDuration()
    {
        return $this->soft_loop_duration;
    }

    /**
     * Generated from protobuf field <code>double soft_loop_duration = 6;</code>
     * @param float $var
     * @return $this
     */
    public function setSoftLoopDuration($var)
    {
        GPBUtil::checkDouble($var);
        $this->soft_loop_duration = $var;

        return $this;
    }

}

