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

namespace Rv\Data\NetworkAPI\Action;

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</code>
 */
class API_Stage extends \Google\Protobuf\Internal\Message
{
    protected $StageAction;

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

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

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

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

        return $this;
    }

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

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

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

        return $this;
    }

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

}

