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

namespace Rv\Data\Slide;

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

/**
 * Generated from protobuf message <code>rv.data.Slide.Element</code>
 */
class Element extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.Graphics.Element element = 1;</code>
     */
    protected $element = null;
    /**
     * Generated from protobuf field <code>.rv.data.Slide.Element.Build build_in = 2;</code>
     */
    protected $build_in = null;
    /**
     * Generated from protobuf field <code>.rv.data.Slide.Element.Build build_out = 3;</code>
     */
    protected $build_out = null;
    /**
     * Generated from protobuf field <code>uint32 info = 4;</code>
     */
    protected $info = 0;
    /**
     * Generated from protobuf field <code>.rv.data.Slide.Element.TextRevealType reveal_type = 5;</code>
     */
    protected $reveal_type = 0;
    /**
     * Generated from protobuf field <code>repeated .rv.data.Slide.Element.DataLink data_links = 6;</code>
     */
    private $data_links;
    /**
     * Generated from protobuf field <code>repeated .rv.data.Slide.Element.ChildBuild childBuilds = 7;</code>
     */
    private $childBuilds;
    /**
     * Generated from protobuf field <code>uint32 reveal_from_index = 8;</code>
     */
    protected $reveal_from_index = 0;
    /**
     * Generated from protobuf field <code>.rv.data.Slide.Element.TextScroller text_scroller = 9;</code>
     */
    protected $text_scroller = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\Graphics\Element $element
     *     @type \Rv\Data\Slide\Element\Build $build_in
     *     @type \Rv\Data\Slide\Element\Build $build_out
     *     @type int $info
     *     @type int $reveal_type
     *     @type array<\Rv\Data\Slide\Element\DataLink>|\Google\Protobuf\Internal\RepeatedField $data_links
     *     @type array<\Rv\Data\Slide\Element\ChildBuild>|\Google\Protobuf\Internal\RepeatedField $childBuilds
     *     @type int $reveal_from_index
     *     @type \Rv\Data\Slide\Element\TextScroller $text_scroller
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Slide::initOnce();
        parent::__construct($data);
    }

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

        return $this;
    }

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

    public function hasBuildIn()
    {
        return isset($this->build_in);
    }

    public function clearBuildIn()
    {
        unset($this->build_in);
    }

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

        return $this;
    }

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

    public function hasBuildOut()
    {
        return isset($this->build_out);
    }

    public function clearBuildOut()
    {
        unset($this->build_out);
    }

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Slide.Element.TextRevealType reveal_type = 5;</code>
     * @return int
     */
    public function getRevealType()
    {
        return $this->reveal_type;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .rv.data.Slide.Element.DataLink data_links = 6;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getDataLinks()
    {
        return $this->data_links;
    }

    /**
     * Generated from protobuf field <code>repeated .rv.data.Slide.Element.DataLink data_links = 6;</code>
     * @param array<\Rv\Data\Slide\Element\DataLink>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setDataLinks($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Rv\Data\Slide\Element\DataLink::class);
        $this->data_links = $arr;

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .rv.data.Slide.Element.ChildBuild childBuilds = 7;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getChildBuilds()
    {
        return $this->childBuilds;
    }

    /**
     * Generated from protobuf field <code>repeated .rv.data.Slide.Element.ChildBuild childBuilds = 7;</code>
     * @param array<\Rv\Data\Slide\Element\ChildBuild>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setChildBuilds($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Rv\Data\Slide\Element\ChildBuild::class);
        $this->childBuilds = $arr;

        return $this;
    }

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

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

        return $this;
    }

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

    public function hasTextScroller()
    {
        return isset($this->text_scroller);
    }

    public function clearTextScroller()
    {
        unset($this->text_scroller);
    }

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

        return $this;
    }

}

