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

namespace Rv\Analytics\UI\PreviewArea;

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

/**
 * Generated from protobuf message <code>rv.analytics.UI.PreviewArea.ClearGroups</code>
 */
class ClearGroups extends \Google\Protobuf\Internal\Message
{
    protected $Component;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Analytics\UI\PreviewArea\ClearGroups\Trigger $trigger
     *     @type \Rv\Analytics\UI\PreviewArea\ClearGroups\Changed $changed
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\AnalyticsUI::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.UI.PreviewArea.ClearGroups.Trigger trigger = 1;</code>
     * @return \Rv\Analytics\UI\PreviewArea\ClearGroups\Trigger|null
     */
    public function getTrigger()
    {
        return $this->readOneof(1);
    }

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

    /**
     * Generated from protobuf field <code>.rv.analytics.UI.PreviewArea.ClearGroups.Trigger trigger = 1;</code>
     * @param \Rv\Analytics\UI\PreviewArea\ClearGroups\Trigger $var
     * @return $this
     */
    public function setTrigger($var)
    {
        GPBUtil::checkMessage($var, \Rv\Analytics\UI\PreviewArea\ClearGroups\Trigger::class);
        $this->writeOneof(1, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.UI.PreviewArea.ClearGroups.Changed changed = 2;</code>
     * @return \Rv\Analytics\UI\PreviewArea\ClearGroups\Changed|null
     */
    public function getChanged()
    {
        return $this->readOneof(2);
    }

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

    /**
     * Generated from protobuf field <code>.rv.analytics.UI.PreviewArea.ClearGroups.Changed changed = 2;</code>
     * @param \Rv\Analytics\UI\PreviewArea\ClearGroups\Changed $var
     * @return $this
     */
    public function setChanged($var)
    {
        GPBUtil::checkMessage($var, \Rv\Analytics\UI\PreviewArea\ClearGroups\Changed::class);
        $this->writeOneof(2, $var);

        return $this;
    }

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

}

