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

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\API_v1_Groups_Request\GroupsRequest $groups_request
     *     @type \Rv\Data\API_v1_Groups_Request\TriggerGroup $trigger_group
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ProApiV1Groups::initOnce();
        parent::__construct($data);
    }

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

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

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

        return $this;
    }

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

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

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

        return $this;
    }

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

}

