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

namespace Rv\Data\Slide\Element\DataLink;

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

/**
 * Generated from protobuf message <code>rv.data.Slide.Element.DataLink.ColorTrigger</code>
 */
class ColorTrigger extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>double time = 1;</code>
     */
    protected $time = 0.0;
    /**
     * Generated from protobuf field <code>.rv.data.Color color = 2;</code>
     */
    protected $color = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type float $time
     *     @type \Rv\Data\Color $color
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Slide::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

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

    public function hasColor()
    {
        return isset($this->color);
    }

    public function clearColor()
    {
        unset($this->color);
    }

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

        return $this;
    }

}

