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

namespace Rv\Analytics\Trigger;

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

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

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

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

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

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

        return $this;
    }

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

}

