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

namespace Rv\Data;

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

/**
 * Generated from protobuf message <code>rv.data.PropSlide</code>
 */
class PropSlide extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.Slide base_slide = 1;</code>
     */
    protected $base_slide = null;
    /**
     * Generated from protobuf field <code>.rv.data.Transition transition = 2;</code>
     */
    protected $transition = null;
    /**
     * Generated from protobuf field <code>bool auto_clear_enabled = 3;</code>
     */
    protected $auto_clear_enabled = false;
    /**
     * Generated from protobuf field <code>double auto_clear_duration = 4;</code>
     */
    protected $auto_clear_duration = 0.0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\Slide $base_slide
     *     @type \Rv\Data\Transition $transition
     *     @type bool $auto_clear_enabled
     *     @type float $auto_clear_duration
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PropSlide::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.rv.data.Slide base_slide = 1;</code>
     * @return \Rv\Data\Slide|null
     */
    public function getBaseSlide()
    {
        return $this->base_slide;
    }

    public function hasBaseSlide()
    {
        return isset($this->base_slide);
    }

    public function clearBaseSlide()
    {
        unset($this->base_slide);
    }

    /**
     * Generated from protobuf field <code>.rv.data.Slide base_slide = 1;</code>
     * @param \Rv\Data\Slide $var
     * @return $this
     */
    public function setBaseSlide($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\Slide::class);
        $this->base_slide = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Transition transition = 2;</code>
     * @return \Rv\Data\Transition|null
     */
    public function getTransition()
    {
        return $this->transition;
    }

    public function hasTransition()
    {
        return isset($this->transition);
    }

    public function clearTransition()
    {
        unset($this->transition);
    }

    /**
     * Generated from protobuf field <code>.rv.data.Transition transition = 2;</code>
     * @param \Rv\Data\Transition $var
     * @return $this
     */
    public function setTransition($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\Transition::class);
        $this->transition = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool auto_clear_enabled = 3;</code>
     * @return bool
     */
    public function getAutoClearEnabled()
    {
        return $this->auto_clear_enabled;
    }

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

        return $this;
    }

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

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

        return $this;
    }

}

