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

namespace Rv\Data\ControlTransport;

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

/**
 * Generated from protobuf message <code>rv.data.ControlTransport.SetAudioFadeType</code>
 */
class SetAudioFadeType extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>double fade_in_duration = 1;</code>
     */
    protected $fade_in_duration = 0.0;
    /**
     * Generated from protobuf field <code>double fade_out_duration = 2;</code>
     */
    protected $fade_out_duration = 0.0;
    /**
     * Generated from protobuf field <code>bool should_fade_in = 3;</code>
     */
    protected $should_fade_in = false;
    /**
     * Generated from protobuf field <code>bool should_fade_out = 4;</code>
     */
    protected $should_fade_out = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type float $fade_in_duration
     *     @type float $fade_out_duration
     *     @type bool $should_fade_in
     *     @type bool $should_fade_out
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ProCore::initOnce();
        parent::__construct($data);
    }

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

    /**
     * Generated from protobuf field <code>double fade_in_duration = 1;</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 = 2;</code>
     * @return float
     */
    public function getFadeOutDuration()
    {
        return $this->fade_out_duration;
    }

    /**
     * Generated from protobuf field <code>double fade_out_duration = 2;</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 = 3;</code>
     * @return bool
     */
    public function getShouldFadeIn()
    {
        return $this->should_fade_in;
    }

    /**
     * Generated from protobuf field <code>bool should_fade_in = 3;</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 = 4;</code>
     * @return bool
     */
    public function getShouldFadeOut()
    {
        return $this->should_fade_out;
    }

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

        return $this;
    }

}

