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

namespace Rv\Analytics\UI\LowerRight;

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

/**
 * Generated from protobuf message <code>rv.analytics.UI.LowerRight.Stage</code>
 */
class Stage extends \Google\Protobuf\Internal\Message
{
    protected $Component;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Analytics\UI\LowerRight\Stage\Shown $shown
     *     @type \Rv\Analytics\UI\LowerRight\Stage\ChangeLayout $change_layout
     *     @type \Rv\Analytics\UI\LowerRight\Stage\MessageState $message_state
     *     @type \Rv\Analytics\UI\LowerRight\Stage\ConfigureScreens $configure_screens
     *     @type \Rv\Analytics\UI\LowerRight\Stage\EditLayouts $edit_layouts
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\AnalyticsUI::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.UI.LowerRight.Stage.Shown shown = 1;</code>
     * @return \Rv\Analytics\UI\LowerRight\Stage\Shown|null
     */
    public function getShown()
    {
        return $this->readOneof(1);
    }

    public function hasShown()
    {
        return $this->hasOneof(1);
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.UI.LowerRight.Stage.Shown shown = 1;</code>
     * @param \Rv\Analytics\UI\LowerRight\Stage\Shown $var
     * @return $this
     */
    public function setShown($var)
    {
        GPBUtil::checkMessage($var, \Rv\Analytics\UI\LowerRight\Stage\Shown::class);
        $this->writeOneof(1, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.UI.LowerRight.Stage.ChangeLayout change_layout = 2;</code>
     * @return \Rv\Analytics\UI\LowerRight\Stage\ChangeLayout|null
     */
    public function getChangeLayout()
    {
        return $this->readOneof(2);
    }

    public function hasChangeLayout()
    {
        return $this->hasOneof(2);
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.UI.LowerRight.Stage.ChangeLayout change_layout = 2;</code>
     * @param \Rv\Analytics\UI\LowerRight\Stage\ChangeLayout $var
     * @return $this
     */
    public function setChangeLayout($var)
    {
        GPBUtil::checkMessage($var, \Rv\Analytics\UI\LowerRight\Stage\ChangeLayout::class);
        $this->writeOneof(2, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.UI.LowerRight.Stage.MessageState message_state = 3;</code>
     * @return \Rv\Analytics\UI\LowerRight\Stage\MessageState|null
     */
    public function getMessageState()
    {
        return $this->readOneof(3);
    }

    public function hasMessageState()
    {
        return $this->hasOneof(3);
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.UI.LowerRight.Stage.MessageState message_state = 3;</code>
     * @param \Rv\Analytics\UI\LowerRight\Stage\MessageState $var
     * @return $this
     */
    public function setMessageState($var)
    {
        GPBUtil::checkMessage($var, \Rv\Analytics\UI\LowerRight\Stage\MessageState::class);
        $this->writeOneof(3, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.UI.LowerRight.Stage.ConfigureScreens configure_screens = 4;</code>
     * @return \Rv\Analytics\UI\LowerRight\Stage\ConfigureScreens|null
     */
    public function getConfigureScreens()
    {
        return $this->readOneof(4);
    }

    public function hasConfigureScreens()
    {
        return $this->hasOneof(4);
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.UI.LowerRight.Stage.ConfigureScreens configure_screens = 4;</code>
     * @param \Rv\Analytics\UI\LowerRight\Stage\ConfigureScreens $var
     * @return $this
     */
    public function setConfigureScreens($var)
    {
        GPBUtil::checkMessage($var, \Rv\Analytics\UI\LowerRight\Stage\ConfigureScreens::class);
        $this->writeOneof(4, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.UI.LowerRight.Stage.EditLayouts edit_layouts = 5;</code>
     * @return \Rv\Analytics\UI\LowerRight\Stage\EditLayouts|null
     */
    public function getEditLayouts()
    {
        return $this->readOneof(5);
    }

    public function hasEditLayouts()
    {
        return $this->hasOneof(5);
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.UI.LowerRight.Stage.EditLayouts edit_layouts = 5;</code>
     * @param \Rv\Analytics\UI\LowerRight\Stage\EditLayouts $var
     * @return $this
     */
    public function setEditLayouts($var)
    {
        GPBUtil::checkMessage($var, \Rv\Analytics\UI\LowerRight\Stage\EditLayouts::class);
        $this->writeOneof(5, $var);

        return $this;
    }

    /**
     * @return string
     */
    public function getComponent()
    {
        return $this->whichOneof("Component");
    }

}

