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

namespace Rv\Data\PlaylistItem;

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

/**
 * Generated from protobuf message <code>rv.data.PlaylistItem.Presentation</code>
 */
class Presentation extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.URL document_path = 1;</code>
     */
    protected $document_path = null;
    /**
     * Generated from protobuf field <code>.rv.data.UUID arrangement = 2;</code>
     */
    protected $arrangement = null;
    /**
     * Generated from protobuf field <code>.rv.data.Action.ContentDestination content_destination = 3;</code>
     */
    protected $content_destination = 0;
    /**
     * Generated from protobuf field <code>.rv.data.MusicKeyScale user_music_key = 4;</code>
     */
    protected $user_music_key = null;
    /**
     * Generated from protobuf field <code>string arrangement_name = 5;</code>
     */
    protected $arrangement_name = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\URL $document_path
     *     @type \Rv\Data\UUID $arrangement
     *     @type int $content_destination
     *     @type \Rv\Data\MusicKeyScale $user_music_key
     *     @type string $arrangement_name
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Playlist::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.rv.data.URL document_path = 1;</code>
     * @return \Rv\Data\URL|null
     */
    public function getDocumentPath()
    {
        return $this->document_path;
    }

    public function hasDocumentPath()
    {
        return isset($this->document_path);
    }

    public function clearDocumentPath()
    {
        unset($this->document_path);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.UUID arrangement = 2;</code>
     * @return \Rv\Data\UUID|null
     */
    public function getArrangement()
    {
        return $this->arrangement;
    }

    public function hasArrangement()
    {
        return isset($this->arrangement);
    }

    public function clearArrangement()
    {
        unset($this->arrangement);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Action.ContentDestination content_destination = 3;</code>
     * @return int
     */
    public function getContentDestination()
    {
        return $this->content_destination;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Action.ContentDestination content_destination = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setContentDestination($var)
    {
        GPBUtil::checkEnum($var, \Rv\Data\Action\ContentDestination::class);
        $this->content_destination = $var;

        return $this;
    }

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

    public function hasUserMusicKey()
    {
        return isset($this->user_music_key);
    }

    public function clearUserMusicKey()
    {
        unset($this->user_music_key);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string arrangement_name = 5;</code>
     * @return string
     */
    public function getArrangementName()
    {
        return $this->arrangement_name;
    }

    /**
     * Generated from protobuf field <code>string arrangement_name = 5;</code>
     * @param string $var
     * @return $this
     */
    public function setArrangementName($var)
    {
        GPBUtil::checkString($var, True);
        $this->arrangement_name = $var;

        return $this;
    }

}

