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

namespace Rv\Data\Action;

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

/**
 * Generated from protobuf message <code>rv.data.Action.PlaylistItemType</code>
 */
class PlaylistItemType extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.UUID playlist_uuid = 1;</code>
     */
    protected $playlist_uuid = null;
    /**
     * Generated from protobuf field <code>string playlist_name = 2;</code>
     */
    protected $playlist_name = '';
    /**
     * Generated from protobuf field <code>.rv.data.UUID item_uuid = 3;</code>
     */
    protected $item_uuid = null;
    /**
     * Generated from protobuf field <code>string item_name = 4;</code>
     */
    protected $item_name = '';
    /**
     * Generated from protobuf field <code>bool select_playlist = 5;</code>
     */
    protected $select_playlist = false;
    /**
     * Generated from protobuf field <code>bool always_retrigger = 6;</code>
     */
    protected $always_retrigger = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\UUID $playlist_uuid
     *     @type string $playlist_name
     *     @type \Rv\Data\UUID $item_uuid
     *     @type string $item_name
     *     @type bool $select_playlist
     *     @type bool $always_retrigger
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Action::initOnce();
        parent::__construct($data);
    }

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

    public function hasPlaylistUuid()
    {
        return isset($this->playlist_uuid);
    }

    public function clearPlaylistUuid()
    {
        unset($this->playlist_uuid);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string playlist_name = 2;</code>
     * @return string
     */
    public function getPlaylistName()
    {
        return $this->playlist_name;
    }

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

        return $this;
    }

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

    public function hasItemUuid()
    {
        return isset($this->item_uuid);
    }

    public function clearItemUuid()
    {
        unset($this->item_uuid);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string item_name = 4;</code>
     * @return string
     */
    public function getItemName()
    {
        return $this->item_name;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool select_playlist = 5;</code>
     * @return bool
     */
    public function getSelectPlaylist()
    {
        return $this->select_playlist;
    }

    /**
     * Generated from protobuf field <code>bool select_playlist = 5;</code>
     * @param bool $var
     * @return $this
     */
    public function setSelectPlaylist($var)
    {
        GPBUtil::checkBool($var);
        $this->select_playlist = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool always_retrigger = 6;</code>
     * @return bool
     */
    public function getAlwaysRetrigger()
    {
        return $this->always_retrigger;
    }

    /**
     * Generated from protobuf field <code>bool always_retrigger = 6;</code>
     * @param bool $var
     * @return $this
     */
    public function setAlwaysRetrigger($var)
    {
        GPBUtil::checkBool($var);
        $this->always_retrigger = $var;

        return $this;
    }

}

