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

namespace Rv\Analytics\Trigger\Cue;

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

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

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Analytics\Trigger\Cue\Slide\Trigger $trigger
     *     @type \Rv\Analytics\Trigger\Cue\Slide\ScrollingTextElement $scrolling_text_element
     *     @type \Rv\Analytics\Trigger\Cue\Slide\RSSFeedElement $rss_feed_element
     *     @type \Rv\Analytics\Trigger\Cue\Slide\FileFeedElement $file_feed_element
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\AnalyticsTrigger::initOnce();
        parent::__construct($data);
    }

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

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.Trigger.Cue.Slide.ScrollingTextElement scrolling_text_element = 2;</code>
     * @return \Rv\Analytics\Trigger\Cue\Slide\ScrollingTextElement|null
     */
    public function getScrollingTextElement()
    {
        return $this->readOneof(2);
    }

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

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

        return $this;
    }

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

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.Trigger.Cue.Slide.FileFeedElement file_feed_element = 4;</code>
     * @return \Rv\Analytics\Trigger\Cue\Slide\FileFeedElement|null
     */
    public function getFileFeedElement()
    {
        return $this->readOneof(4);
    }

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

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

        return $this;
    }

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

}

