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

namespace Rv\Data\Slide\Element;

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

/**
 * Generated from protobuf message <code>rv.data.Slide.Element.ChildBuild</code>
 */
class ChildBuild extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.UUID uuid = 1;</code>
     */
    protected $uuid = null;
    /**
     * Generated from protobuf field <code>.rv.data.Slide.Element.Build.Start start = 2;</code>
     */
    protected $start = 0;
    /**
     * Generated from protobuf field <code>double delayTime = 3;</code>
     */
    protected $delayTime = 0.0;
    /**
     * Generated from protobuf field <code>uint32 index = 4;</code>
     */
    protected $index = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\UUID $uuid
     *     @type int $start
     *     @type float $delayTime
     *     @type int $index
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Slide::initOnce();
        parent::__construct($data);
    }

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

    public function hasUuid()
    {
        return isset($this->uuid);
    }

    public function clearUuid()
    {
        unset($this->uuid);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Slide.Element.Build.Start start = 2;</code>
     * @return int
     */
    public function getStart()
    {
        return $this->start;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Slide.Element.Build.Start start = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setStart($var)
    {
        GPBUtil::checkEnum($var, \Rv\Data\Slide\Element\Build\Start::class);
        $this->start = $var;

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>uint32 index = 4;</code>
     * @return int
     */
    public function getIndex()
    {
        return $this->index;
    }

    /**
     * Generated from protobuf field <code>uint32 index = 4;</code>
     * @param int $var
     * @return $this
     */
    public function setIndex($var)
    {
        GPBUtil::checkUint32($var);
        $this->index = $var;

        return $this;
    }

}

