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

namespace Rv\Data\NetworkAPI\Action\API_Stage;

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

/**
 * Generated from protobuf message <code>rv.data.NetworkAPI.Action.API_Stage.StageMessage</code>
 */
class StageMessage extends \Google\Protobuf\Internal\Message
{
    protected $Action;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\NetworkAPI\Action\API_Stage\StageMessage\ShowMessage $show_message
     *     @type \Rv\Data\NetworkAPI\Action\API_Stage\StageMessage\ClearMessage $clear_message
     *     @type \Rv\Data\NetworkAPI\Action\API_Stage\StageMessage\HideMessage $hide_message
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ProApi::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.rv.data.NetworkAPI.Action.API_Stage.StageMessage.ShowMessage show_message = 1;</code>
     * @return \Rv\Data\NetworkAPI\Action\API_Stage\StageMessage\ShowMessage|null
     */
    public function getShowMessage()
    {
        return $this->readOneof(1);
    }

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

    /**
     * Generated from protobuf field <code>.rv.data.NetworkAPI.Action.API_Stage.StageMessage.ShowMessage show_message = 1;</code>
     * @param \Rv\Data\NetworkAPI\Action\API_Stage\StageMessage\ShowMessage $var
     * @return $this
     */
    public function setShowMessage($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\NetworkAPI\Action\API_Stage\StageMessage\ShowMessage::class);
        $this->writeOneof(1, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.NetworkAPI.Action.API_Stage.StageMessage.ClearMessage clear_message = 2;</code>
     * @return \Rv\Data\NetworkAPI\Action\API_Stage\StageMessage\ClearMessage|null
     */
    public function getClearMessage()
    {
        return $this->readOneof(2);
    }

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

    /**
     * Generated from protobuf field <code>.rv.data.NetworkAPI.Action.API_Stage.StageMessage.ClearMessage clear_message = 2;</code>
     * @param \Rv\Data\NetworkAPI\Action\API_Stage\StageMessage\ClearMessage $var
     * @return $this
     */
    public function setClearMessage($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\NetworkAPI\Action\API_Stage\StageMessage\ClearMessage::class);
        $this->writeOneof(2, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.NetworkAPI.Action.API_Stage.StageMessage.HideMessage hide_message = 3;</code>
     * @return \Rv\Data\NetworkAPI\Action\API_Stage\StageMessage\HideMessage|null
     */
    public function getHideMessage()
    {
        return $this->readOneof(3);
    }

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

    /**
     * Generated from protobuf field <code>.rv.data.NetworkAPI.Action.API_Stage.StageMessage.HideMessage hide_message = 3;</code>
     * @param \Rv\Data\NetworkAPI\Action\API_Stage\StageMessage\HideMessage $var
     * @return $this
     */
    public function setHideMessage($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\NetworkAPI\Action\API_Stage\StageMessage\HideMessage::class);
        $this->writeOneof(3, $var);

        return $this;
    }

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

}

