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

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Analytics\UI $ui
     *     @type \Rv\Analytics\Startup $startup
     *     @type \Rv\Analytics\Trigger $trigger
     *     @type \Rv\Analytics\Create $create
     *     @type \Rv\Analytics\Import $import
     *     @type \Rv\Analytics\Timeline $timeline
     *     @type \Rv\Analytics\Sync $sync
     *     @type \Rv\Analytics\API $api
     *     @type \Rv\Analytics\Timecode $timecode
     *     @type \Rv\Analytics\PlaybackMarker $playback_marker
     *     @type \Rv\Analytics\Update $update
     *     @type \Rv\Analytics\WHMStore $whm_store
     *     @type \Rv\Analytics\ProContent $proContent
     *     @type \Rv\Analytics\Capture $capture
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\AnalyticsEvent::initOnce();
        parent::__construct($data);
    }

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

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

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

        return $this;
    }

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

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

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

        return $this;
    }

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

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.Create create = 4;</code>
     * @return \Rv\Analytics\Create|null
     */
    public function getCreate()
    {
        return $this->readOneof(4);
    }

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

    /**
     * Generated from protobuf field <code>.rv.analytics.Create create = 4;</code>
     * @param \Rv\Analytics\Create $var
     * @return $this
     */
    public function setCreate($var)
    {
        GPBUtil::checkMessage($var, \Rv\Analytics\Create::class);
        $this->writeOneof(4, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.Import import = 5;</code>
     * @return \Rv\Analytics\Import|null
     */
    public function getImport()
    {
        return $this->readOneof(5);
    }

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

    /**
     * Generated from protobuf field <code>.rv.analytics.Import import = 5;</code>
     * @param \Rv\Analytics\Import $var
     * @return $this
     */
    public function setImport($var)
    {
        GPBUtil::checkMessage($var, \Rv\Analytics\Import::class);
        $this->writeOneof(5, $var);

        return $this;
    }

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

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.Sync sync = 7;</code>
     * @return \Rv\Analytics\Sync|null
     */
    public function getSync()
    {
        return $this->readOneof(7);
    }

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

    /**
     * Generated from protobuf field <code>.rv.analytics.Sync sync = 7;</code>
     * @param \Rv\Analytics\Sync $var
     * @return $this
     */
    public function setSync($var)
    {
        GPBUtil::checkMessage($var, \Rv\Analytics\Sync::class);
        $this->writeOneof(7, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.API api = 8;</code>
     * @return \Rv\Analytics\API|null
     */
    public function getApi()
    {
        return $this->readOneof(8);
    }

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

    /**
     * Generated from protobuf field <code>.rv.analytics.API api = 8;</code>
     * @param \Rv\Analytics\API $var
     * @return $this
     */
    public function setApi($var)
    {
        GPBUtil::checkMessage($var, \Rv\Analytics\API::class);
        $this->writeOneof(8, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.Timecode timecode = 9;</code>
     * @return \Rv\Analytics\Timecode|null
     */
    public function getTimecode()
    {
        return $this->readOneof(9);
    }

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

    /**
     * Generated from protobuf field <code>.rv.analytics.Timecode timecode = 9;</code>
     * @param \Rv\Analytics\Timecode $var
     * @return $this
     */
    public function setTimecode($var)
    {
        GPBUtil::checkMessage($var, \Rv\Analytics\Timecode::class);
        $this->writeOneof(9, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.PlaybackMarker playback_marker = 10;</code>
     * @return \Rv\Analytics\PlaybackMarker|null
     */
    public function getPlaybackMarker()
    {
        return $this->readOneof(10);
    }

    public function hasPlaybackMarker()
    {
        return $this->hasOneof(10);
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.PlaybackMarker playback_marker = 10;</code>
     * @param \Rv\Analytics\PlaybackMarker $var
     * @return $this
     */
    public function setPlaybackMarker($var)
    {
        GPBUtil::checkMessage($var, \Rv\Analytics\PlaybackMarker::class);
        $this->writeOneof(10, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.Update update = 11;</code>
     * @return \Rv\Analytics\Update|null
     */
    public function getUpdate()
    {
        return $this->readOneof(11);
    }

    public function hasUpdate()
    {
        return $this->hasOneof(11);
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.Update update = 11;</code>
     * @param \Rv\Analytics\Update $var
     * @return $this
     */
    public function setUpdate($var)
    {
        GPBUtil::checkMessage($var, \Rv\Analytics\Update::class);
        $this->writeOneof(11, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.WHMStore whm_store = 12;</code>
     * @return \Rv\Analytics\WHMStore|null
     */
    public function getWhmStore()
    {
        return $this->readOneof(12);
    }

    public function hasWhmStore()
    {
        return $this->hasOneof(12);
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.WHMStore whm_store = 12;</code>
     * @param \Rv\Analytics\WHMStore $var
     * @return $this
     */
    public function setWhmStore($var)
    {
        GPBUtil::checkMessage($var, \Rv\Analytics\WHMStore::class);
        $this->writeOneof(12, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.ProContent proContent = 13;</code>
     * @return \Rv\Analytics\ProContent|null
     */
    public function getProContent()
    {
        return $this->readOneof(13);
    }

    public function hasProContent()
    {
        return $this->hasOneof(13);
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.ProContent proContent = 13;</code>
     * @param \Rv\Analytics\ProContent $var
     * @return $this
     */
    public function setProContent($var)
    {
        GPBUtil::checkMessage($var, \Rv\Analytics\ProContent::class);
        $this->writeOneof(13, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.Capture capture = 14;</code>
     * @return \Rv\Analytics\Capture|null
     */
    public function getCapture()
    {
        return $this->readOneof(14);
    }

    public function hasCapture()
    {
        return $this->hasOneof(14);
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.Capture capture = 14;</code>
     * @param \Rv\Analytics\Capture $var
     * @return $this
     */
    public function setCapture($var)
    {
        GPBUtil::checkMessage($var, \Rv\Analytics\Capture::class);
        $this->writeOneof(14, $var);

        return $this;
    }

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

}

