<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: proCore.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.NetworkTriggerDataItem</code>
 */
class NetworkTriggerDataItem extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.TriggerOptions trigger_options = 3;</code>
     */
    protected $trigger_options = null;
    /**
     * Generated from protobuf field <code>.rv.data.TriggerCue trigger_cue = 4;</code>
     */
    protected $trigger_cue = null;
    protected $Type;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\TriggerOptions $trigger_options
     *     @type \Rv\Data\TriggerCue $trigger_cue
     *     @type \Rv\Data\Action $action
     *     @type \Rv\Data\Cue $cue
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ProCore::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.rv.data.TriggerOptions trigger_options = 3;</code>
     * @return \Rv\Data\TriggerOptions|null
     */
    public function getTriggerOptions()
    {
        return $this->trigger_options;
    }

    public function hasTriggerOptions()
    {
        return isset($this->trigger_options);
    }

    public function clearTriggerOptions()
    {
        unset($this->trigger_options);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.TriggerCue trigger_cue = 4;</code>
     * @return \Rv\Data\TriggerCue|null
     */
    public function getTriggerCue()
    {
        return $this->trigger_cue;
    }

    public function hasTriggerCue()
    {
        return isset($this->trigger_cue);
    }

    public function clearTriggerCue()
    {
        unset($this->trigger_cue);
    }

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

        return $this;
    }

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

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

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

        return $this;
    }

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

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

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

        return $this;
    }

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

}

