<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: rv2d.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.SlidePreview</code>
 */
class SlidePreview extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.Cue cue = 1;</code>
     */
    protected $cue = null;
    /**
     * Generated from protobuf field <code>.rv.data.Slide.Element element = 2;</code>
     */
    protected $element = null;
    /**
     * Generated from protobuf field <code>.rv.data.Color background = 3;</code>
     */
    protected $background = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\Cue $cue
     *     @type \Rv\Data\Slide\Element $element
     *     @type \Rv\Data\Color $background
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Rv2D::initOnce();
        parent::__construct($data);
    }

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

    public function hasCue()
    {
        return isset($this->cue);
    }

    public function clearCue()
    {
        unset($this->cue);
    }

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

        return $this;
    }

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

    public function hasElement()
    {
        return isset($this->element);
    }

    public function clearElement()
    {
        unset($this->element);
    }

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

        return $this;
    }

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

    public function hasBackground()
    {
        return isset($this->background);
    }

    public function clearBackground()
    {
        unset($this->background);
    }

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

        return $this;
    }

}

