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

namespace Rv\Data\NetworkAPI\Action\API_Trigger;

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

/**
 * Generated from protobuf message <code>rv.data.NetworkAPI.Action.API_Trigger.Presentation</code>
 */
class Presentation extends \Google\Protobuf\Internal\Message
{
    protected $PresentationSource;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\NetworkAPI\Action\API_Trigger\Presentation\PlaylistPresentation $playlist_index_path
     *     @type \Rv\Data\NetworkAPI\Action\API_Trigger\Presentation\LibraryPresentation $library_index_path
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ProApi::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.rv.data.NetworkAPI.Action.API_Trigger.Presentation.PlaylistPresentation playlist_index_path = 2;</code>
     * @return \Rv\Data\NetworkAPI\Action\API_Trigger\Presentation\PlaylistPresentation|null
     */
    public function getPlaylistIndexPath()
    {
        return $this->readOneof(2);
    }

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

    /**
     * Generated from protobuf field <code>.rv.data.NetworkAPI.Action.API_Trigger.Presentation.PlaylistPresentation playlist_index_path = 2;</code>
     * @param \Rv\Data\NetworkAPI\Action\API_Trigger\Presentation\PlaylistPresentation $var
     * @return $this
     */
    public function setPlaylistIndexPath($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\NetworkAPI\Action\API_Trigger\Presentation\PlaylistPresentation::class);
        $this->writeOneof(2, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.NetworkAPI.Action.API_Trigger.Presentation.LibraryPresentation library_index_path = 3;</code>
     * @return \Rv\Data\NetworkAPI\Action\API_Trigger\Presentation\LibraryPresentation|null
     */
    public function getLibraryIndexPath()
    {
        return $this->readOneof(3);
    }

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

    /**
     * Generated from protobuf field <code>.rv.data.NetworkAPI.Action.API_Trigger.Presentation.LibraryPresentation library_index_path = 3;</code>
     * @param \Rv\Data\NetworkAPI\Action\API_Trigger\Presentation\LibraryPresentation $var
     * @return $this
     */
    public function setLibraryIndexPath($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\NetworkAPI\Action\API_Trigger\Presentation\LibraryPresentation::class);
        $this->writeOneof(3, $var);

        return $this;
    }

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

}

