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

namespace Rv\Data\Media;

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

/**
 * Generated from protobuf message <code>rv.data.Media.TransportProperties</code>
 */
class TransportProperties extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>double play_rate = 1;</code>
     */
    protected $play_rate = 0.0;
    /**
     * Generated from protobuf field <code>double in_point = 2;</code>
     */
    protected $in_point = 0.0;
    /**
     * Generated from protobuf field <code>double out_point = 3;</code>
     */
    protected $out_point = 0.0;
    /**
     * Generated from protobuf field <code>double fade_in_duration = 7;</code>
     */
    protected $fade_in_duration = 0.0;
    /**
     * Generated from protobuf field <code>double fade_out_duration = 8;</code>
     */
    protected $fade_out_duration = 0.0;
    /**
     * Generated from protobuf field <code>bool should_fade_in = 9;</code>
     */
    protected $should_fade_in = false;
    /**
     * Generated from protobuf field <code>bool should_fade_out = 10;</code>
     */
    protected $should_fade_out = false;
    /**
     * Generated from protobuf field <code>double end_point = 11;</code>
     */
    protected $end_point = 0.0;
    /**
     * Generated from protobuf field <code>.rv.data.Media.TransportProperties.PlaybackBehavior playback_behavior = 12;</code>
     */
    protected $playback_behavior = 0;
    /**
     * Generated from protobuf field <code>double loop_time = 13;</code>
     */
    protected $loop_time = 0.0;
    /**
     * Generated from protobuf field <code>uint32 times_to_loop = 14;</code>
     */
    protected $times_to_loop = 0;
    /**
     * Generated from protobuf field <code>.rv.data.Media.TransportProperties.RetriggerSetting retrigger = 15;</code>
     */
    protected $retrigger = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type float $play_rate
     *     @type float $in_point
     *     @type float $out_point
     *     @type float $fade_in_duration
     *     @type float $fade_out_duration
     *     @type bool $should_fade_in
     *     @type bool $should_fade_out
     *     @type float $end_point
     *     @type int $playback_behavior
     *     @type float $loop_time
     *     @type int $times_to_loop
     *     @type int $retrigger
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\GraphicsData::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool should_fade_in = 9;</code>
     * @return bool
     */
    public function getShouldFadeIn()
    {
        return $this->should_fade_in;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool should_fade_out = 10;</code>
     * @return bool
     */
    public function getShouldFadeOut()
    {
        return $this->should_fade_out;
    }

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

    /**
     * Generated from protobuf field <code>double loop_time = 13;</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 = 14;</code>
     * @return int
     */
    public function getTimesToLoop()
    {
        return $this->times_to_loop;
    }

    /**
     * Generated from protobuf field <code>uint32 times_to_loop = 14;</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>.rv.data.Media.TransportProperties.RetriggerSetting retrigger = 15;</code>
     * @return int
     */
    public function getRetrigger()
    {
        return $this->retrigger;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Media.TransportProperties.RetriggerSetting retrigger = 15;</code>
     * @param int $var
     * @return $this
     */
    public function setRetrigger($var)
    {
        GPBUtil::checkEnum($var, \Rv\Data\Media\TransportProperties\RetriggerSetting::class);
        $this->retrigger = $var;

        return $this;
    }

}

