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

namespace Rv\Data\Action;

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

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

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\PresentationSlide $presentation
     *     @type \Rv\Data\PropSlide $prop
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Action::initOnce();
        parent::__construct($data);
    }

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

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

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

        return $this;
    }

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

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

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

        return $this;
    }

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

}

