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

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\API_v1_Media_Request\Playlists $playlists
     *     @type \Rv\Data\API_v1_Media_Request\GetPlaylist $get_playlist
     *     @type \Rv\Data\API_v1_Media_Request\GetPlaylistUpdates $get_playlist_updates
     *     @type \Rv\Data\API_v1_Media_Request\GetThumbnail $get_thumbnail
     *     @type \Rv\Data\API_v1_Media_Request\EmptyMessage $playlist_focused
     *     @type \Rv\Data\API_v1_Media_Request\EmptyMessage $playlist_active
     *     @type \Rv\Data\API_v1_Media_Request\FocusMessage $focus
     *     @type \Rv\Data\API_v1_Media_Request\TriggerMessage $trigger
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ProApiV1Media::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Media_Request.Playlists playlists = 1;</code>
     * @return \Rv\Data\API_v1_Media_Request\Playlists|null
     */
    public function getPlaylists()
    {
        return $this->readOneof(1);
    }

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

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Media_Request.Playlists playlists = 1;</code>
     * @param \Rv\Data\API_v1_Media_Request\Playlists $var
     * @return $this
     */
    public function setPlaylists($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\API_v1_Media_Request\Playlists::class);
        $this->writeOneof(1, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Media_Request.GetPlaylist get_playlist = 2;</code>
     * @return \Rv\Data\API_v1_Media_Request\GetPlaylist|null
     */
    public function getGetPlaylist()
    {
        return $this->readOneof(2);
    }

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

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Media_Request.GetPlaylist get_playlist = 2;</code>
     * @param \Rv\Data\API_v1_Media_Request\GetPlaylist $var
     * @return $this
     */
    public function setGetPlaylist($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\API_v1_Media_Request\GetPlaylist::class);
        $this->writeOneof(2, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Media_Request.GetPlaylistUpdates get_playlist_updates = 3;</code>
     * @return \Rv\Data\API_v1_Media_Request\GetPlaylistUpdates|null
     */
    public function getGetPlaylistUpdates()
    {
        return $this->readOneof(3);
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Media_Request.GetThumbnail get_thumbnail = 4;</code>
     * @return \Rv\Data\API_v1_Media_Request\GetThumbnail|null
     */
    public function getGetThumbnail()
    {
        return $this->readOneof(4);
    }

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

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Media_Request.GetThumbnail get_thumbnail = 4;</code>
     * @param \Rv\Data\API_v1_Media_Request\GetThumbnail $var
     * @return $this
     */
    public function setGetThumbnail($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\API_v1_Media_Request\GetThumbnail::class);
        $this->writeOneof(4, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Media_Request.EmptyMessage playlist_focused = 5;</code>
     * @return \Rv\Data\API_v1_Media_Request\EmptyMessage|null
     */
    public function getPlaylistFocused()
    {
        return $this->readOneof(5);
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Media_Request.EmptyMessage playlist_active = 6;</code>
     * @return \Rv\Data\API_v1_Media_Request\EmptyMessage|null
     */
    public function getPlaylistActive()
    {
        return $this->readOneof(6);
    }

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

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Media_Request.EmptyMessage playlist_active = 6;</code>
     * @param \Rv\Data\API_v1_Media_Request\EmptyMessage $var
     * @return $this
     */
    public function setPlaylistActive($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\API_v1_Media_Request\EmptyMessage::class);
        $this->writeOneof(6, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Media_Request.FocusMessage focus = 7;</code>
     * @return \Rv\Data\API_v1_Media_Request\FocusMessage|null
     */
    public function getFocus()
    {
        return $this->readOneof(7);
    }

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

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Media_Request.FocusMessage focus = 7;</code>
     * @param \Rv\Data\API_v1_Media_Request\FocusMessage $var
     * @return $this
     */
    public function setFocus($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\API_v1_Media_Request\FocusMessage::class);
        $this->writeOneof(7, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Media_Request.TriggerMessage trigger = 8;</code>
     * @return \Rv\Data\API_v1_Media_Request\TriggerMessage|null
     */
    public function getTrigger()
    {
        return $this->readOneof(8);
    }

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

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Media_Request.TriggerMessage trigger = 8;</code>
     * @param \Rv\Data\API_v1_Media_Request\TriggerMessage $var
     * @return $this
     */
    public function setTrigger($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\API_v1_Media_Request\TriggerMessage::class);
        $this->writeOneof(8, $var);

        return $this;
    }

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

}

