<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: proCore.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.PropPauseRequest</code>
 */
class PropPauseRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.UUID prop_id = 1;</code>
     */
    protected $prop_id = null;
    protected $RequestType;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\UUID $prop_id
     *     @type \Rv\Data\PropPauseRequest\Pause $pause
     *     @type \Rv\Data\PropPauseRequest\Resume $resume
     *     @type \Rv\Data\PropPauseRequest\Status $status
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ProCore::initOnce();
        parent::__construct($data);
    }

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

    public function hasPropId()
    {
        return isset($this->prop_id);
    }

    public function clearPropId()
    {
        unset($this->prop_id);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.PropPauseRequest.Pause pause = 2;</code>
     * @return \Rv\Data\PropPauseRequest\Pause|null
     */
    public function getPause()
    {
        return $this->readOneof(2);
    }

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

    /**
     * Generated from protobuf field <code>.rv.data.PropPauseRequest.Pause pause = 2;</code>
     * @param \Rv\Data\PropPauseRequest\Pause $var
     * @return $this
     */
    public function setPause($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\PropPauseRequest\Pause::class);
        $this->writeOneof(2, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.PropPauseRequest.Resume resume = 3;</code>
     * @return \Rv\Data\PropPauseRequest\Resume|null
     */
    public function getResume()
    {
        return $this->readOneof(3);
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.PropPauseRequest.Status status = 4;</code>
     * @return \Rv\Data\PropPauseRequest\Status|null
     */
    public function getStatus()
    {
        return $this->readOneof(4);
    }

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

    /**
     * Generated from protobuf field <code>.rv.data.PropPauseRequest.Status status = 4;</code>
     * @param \Rv\Data\PropPauseRequest\Status $var
     * @return $this
     */
    public function setStatus($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\PropPauseRequest\Status::class);
        $this->writeOneof(4, $var);

        return $this;
    }

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

}

