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

namespace Rv\Analytics;

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

/**
 * Generated from protobuf message <code>rv.analytics.Timeline</code>
 */
class Timeline extends \Google\Protobuf\Internal\Message
{
    protected $Event;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Analytics\Timeline\TriggerCue $trigger_cue
     *     @type \Rv\Analytics\Timeline\Action $action
     *     @type \Rv\Analytics\Timeline\RecordCue $record_cue
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\AnalyticsTimeline::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.Timeline.TriggerCue trigger_cue = 1;</code>
     * @return \Rv\Analytics\Timeline\TriggerCue|null
     */
    public function getTriggerCue()
    {
        return $this->readOneof(1);
    }

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

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

        return $this;
    }

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

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.Timeline.RecordCue record_cue = 3;</code>
     * @return \Rv\Analytics\Timeline\RecordCue|null
     */
    public function getRecordCue()
    {
        return $this->readOneof(3);
    }

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

    /**
     * Generated from protobuf field <code>.rv.analytics.Timeline.RecordCue record_cue = 3;</code>
     * @param \Rv\Analytics\Timeline\RecordCue $var
     * @return $this
     */
    public function setRecordCue($var)
    {
        GPBUtil::checkMessage($var, \Rv\Analytics\Timeline\RecordCue::class);
        $this->writeOneof(3, $var);

        return $this;
    }

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

}

