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

namespace Rv\Data\API_v1_Theme_Response;

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_Response.GetTheme</code>
 */
class GetTheme extends \Google\Protobuf\Internal\Message
{
    protected $Value;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\API_v1_Theme $theme
     *     @type \Rv\Data\API_v1_ThemeGroup $group
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ProApiV1Theme::initOnce();
        parent::__construct($data);
    }

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

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

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

        return $this;
    }

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

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

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

        return $this;
    }

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

}

