<?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.VideoProperties</code>
 */
class VideoProperties extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>double frame_rate = 1;</code>
     */
    protected $frame_rate = 0.0;
    /**
     * Generated from protobuf field <code>.rv.data.Media.VideoProperties.FieldType field_type = 2;</code>
     */
    protected $field_type = 0;
    /**
     * Generated from protobuf field <code>double thumbnail_position = 3;</code>
     */
    protected $thumbnail_position = 0.0;
    /**
     * Generated from protobuf field <code>.rv.data.Media.VideoProperties.EndBehavior end_behavior = 4;</code>
     */
    protected $end_behavior = 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 float $frame_rate
     *     @type int $field_type
     *     @type float $thumbnail_position
     *     @type int $end_behavior
     *     @type bool $soft_loop
     *     @type float $soft_loop_duration
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\GraphicsData::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Media.VideoProperties.FieldType field_type = 2;</code>
     * @return int
     */
    public function getFieldType()
    {
        return $this->field_type;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Media.VideoProperties.FieldType field_type = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setFieldType($var)
    {
        GPBUtil::checkEnum($var, \Rv\Data\Media\VideoProperties\FieldType::class);
        $this->field_type = $var;

        return $this;
    }

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

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

        return $this;
    }

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

    /**
     * Generated from protobuf field <code>.rv.data.Media.VideoProperties.EndBehavior end_behavior = 4;</code>
     * @param int $var
     * @return $this
     */
    public function setEndBehavior($var)
    {
        GPBUtil::checkEnum($var, \Rv\Data\Media\VideoProperties\EndBehavior::class);
        $this->end_behavior = $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;
    }

}

