<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: proApiV1Theme.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.API_v1_Theme_Request</code>
 */
class API_v1_Theme_Request extends \Google\Protobuf\Internal\Message
{
    protected $Request;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\API_v1_Theme_Request\GetAll $get_all
     *     @type \Rv\Data\API_v1_Theme_Request\GetTheme $get_theme
     *     @type \Rv\Data\API_v1_Theme_Request\DeleteTheme $delete_theme
     *     @type \Rv\Data\API_v1_Theme_Request\GetThemeName $get_theme_name
     *     @type \Rv\Data\API_v1_Theme_Request\PutThemeName $put_theme_name
     *     @type \Rv\Data\API_v1_Theme_Request\GetThemeSlide $get_theme_slide
     *     @type \Rv\Data\API_v1_Theme_Request\PutThemeSlide $put_theme_slide
     *     @type \Rv\Data\API_v1_Theme_Request\DeleteThemeSlide $delete_theme_slide
     *     @type \Rv\Data\API_v1_Theme_Request\GetThemeSlideThumbnail $get_theme_slide_thumbnail
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ProApiV1Theme::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Theme_Request.GetAll get_all = 1;</code>
     * @return \Rv\Data\API_v1_Theme_Request\GetAll|null
     */
    public function getGetAll()
    {
        return $this->readOneof(1);
    }

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

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

        return $this;
    }

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

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

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

        return $this;
    }

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

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

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

        return $this;
    }

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

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Theme_Request.PutThemeName put_theme_name = 5;</code>
     * @return \Rv\Data\API_v1_Theme_Request\PutThemeName|null
     */
    public function getPutThemeName()
    {
        return $this->readOneof(5);
    }

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

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Theme_Request.PutThemeName put_theme_name = 5;</code>
     * @param \Rv\Data\API_v1_Theme_Request\PutThemeName $var
     * @return $this
     */
    public function setPutThemeName($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\API_v1_Theme_Request\PutThemeName::class);
        $this->writeOneof(5, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Theme_Request.GetThemeSlide get_theme_slide = 6;</code>
     * @return \Rv\Data\API_v1_Theme_Request\GetThemeSlide|null
     */
    public function getGetThemeSlide()
    {
        return $this->readOneof(6);
    }

    public function hasGetThemeSlide()
    {
        return $this->hasOneof(6);
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Theme_Request.GetThemeSlide get_theme_slide = 6;</code>
     * @param \Rv\Data\API_v1_Theme_Request\GetThemeSlide $var
     * @return $this
     */
    public function setGetThemeSlide($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\API_v1_Theme_Request\GetThemeSlide::class);
        $this->writeOneof(6, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Theme_Request.PutThemeSlide put_theme_slide = 7;</code>
     * @return \Rv\Data\API_v1_Theme_Request\PutThemeSlide|null
     */
    public function getPutThemeSlide()
    {
        return $this->readOneof(7);
    }

    public function hasPutThemeSlide()
    {
        return $this->hasOneof(7);
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Theme_Request.PutThemeSlide put_theme_slide = 7;</code>
     * @param \Rv\Data\API_v1_Theme_Request\PutThemeSlide $var
     * @return $this
     */
    public function setPutThemeSlide($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\API_v1_Theme_Request\PutThemeSlide::class);
        $this->writeOneof(7, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Theme_Request.DeleteThemeSlide delete_theme_slide = 8;</code>
     * @return \Rv\Data\API_v1_Theme_Request\DeleteThemeSlide|null
     */
    public function getDeleteThemeSlide()
    {
        return $this->readOneof(8);
    }

    public function hasDeleteThemeSlide()
    {
        return $this->hasOneof(8);
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Theme_Request.DeleteThemeSlide delete_theme_slide = 8;</code>
     * @param \Rv\Data\API_v1_Theme_Request\DeleteThemeSlide $var
     * @return $this
     */
    public function setDeleteThemeSlide($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\API_v1_Theme_Request\DeleteThemeSlide::class);
        $this->writeOneof(8, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Theme_Request.GetThemeSlideThumbnail get_theme_slide_thumbnail = 9;</code>
     * @return \Rv\Data\API_v1_Theme_Request\GetThemeSlideThumbnail|null
     */
    public function getGetThemeSlideThumbnail()
    {
        return $this->readOneof(9);
    }

    public function hasGetThemeSlideThumbnail()
    {
        return $this->hasOneof(9);
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Theme_Request.GetThemeSlideThumbnail get_theme_slide_thumbnail = 9;</code>
     * @param \Rv\Data\API_v1_Theme_Request\GetThemeSlideThumbnail $var
     * @return $this
     */
    public function setGetThemeSlideThumbnail($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\API_v1_Theme_Request\GetThemeSlideThumbnail::class);
        $this->writeOneof(9, $var);

        return $this;
    }

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

}

