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

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\API_v1_Clear_Request\ClearLayer $clear_layer
     *     @type \Rv\Data\API_v1_Clear_Request\CreateGroup $create_group
     *     @type \Rv\Data\API_v1_Clear_Request\GetGroup $get_group
     *     @type \Rv\Data\API_v1_Clear_Request\PutGroup $put_group
     *     @type \Rv\Data\API_v1_Clear_Request\GetGroupIcon $get_group_icon
     *     @type \Rv\Data\API_v1_Clear_Request\PutGroupIcon $put_group_icon
     *     @type \Rv\Data\API_v1_Clear_Request\DeleteGroup $delete_group
     *     @type \Rv\Data\API_v1_Clear_Request\TriggerGroup $trigger_group
     *     @type \Rv\Data\API_v1_Clear_Request\GetGroups $get_groups
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ProApiV1Clear::initOnce();
        parent::__construct($data);
    }

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

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

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

        return $this;
    }

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

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

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

        return $this;
    }

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

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

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

        return $this;
    }

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

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

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

        return $this;
    }

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

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

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

        return $this;
    }

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

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

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

        return $this;
    }

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

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

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

        return $this;
    }

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

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

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

        return $this;
    }

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

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

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

        return $this;
    }

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

}

