<?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.TriggerCue</code>
 */
class TriggerCue extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>uint64 trigger_handle = 1;</code>
     */
    protected $trigger_handle = 0;
    /**
     * Generated from protobuf field <code>.rv.data.TriggerOptions trigger_options = 2;</code>
     */
    protected $trigger_options = null;
    /**
     * Generated from protobuf field <code>.rv.data.Cue cue = 3;</code>
     */
    protected $cue = null;
    /**
     * Generated from protobuf field <code>.rv.data.TriggerCue.PresentationCue presentation = 4;</code>
     */
    protected $presentation = null;
    /**
     * Generated from protobuf field <code>.rv.data.Playlist playlist = 5;</code>
     */
    protected $playlist = null;
    /**
     * Generated from protobuf field <code>uint64 client_data = 6;</code>
     */
    protected $client_data = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $trigger_handle
     *     @type \Rv\Data\TriggerOptions $trigger_options
     *     @type \Rv\Data\Cue $cue
     *     @type \Rv\Data\TriggerCue\PresentationCue $presentation
     *     @type \Rv\Data\Playlist $playlist
     *     @type int|string $client_data
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ProCore::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>uint64 trigger_handle = 1;</code>
     * @return int|string
     */
    public function getTriggerHandle()
    {
        return $this->trigger_handle;
    }

    /**
     * Generated from protobuf field <code>uint64 trigger_handle = 1;</code>
     * @param int|string $var
     * @return $this
     */
    public function setTriggerHandle($var)
    {
        GPBUtil::checkUint64($var);
        $this->trigger_handle = $var;

        return $this;
    }

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

    public function hasCue()
    {
        return isset($this->cue);
    }

    public function clearCue()
    {
        unset($this->cue);
    }

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

        return $this;
    }

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

    public function hasPresentation()
    {
        return isset($this->presentation);
    }

    public function clearPresentation()
    {
        unset($this->presentation);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Playlist playlist = 5;</code>
     * @return \Rv\Data\Playlist|null
     */
    public function getPlaylist()
    {
        return $this->playlist;
    }

    public function hasPlaylist()
    {
        return isset($this->playlist);
    }

    public function clearPlaylist()
    {
        unset($this->playlist);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>uint64 client_data = 6;</code>
     * @return int|string
     */
    public function getClientData()
    {
        return $this->client_data;
    }

    /**
     * Generated from protobuf field <code>uint64 client_data = 6;</code>
     * @param int|string $var
     * @return $this
     */
    public function setClientData($var)
    {
        GPBUtil::checkUint64($var);
        $this->client_data = $var;

        return $this;
    }

}

