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

namespace Rv\Data\API_v1_Media_Response;

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_Response.GetActivePlaylist</code>
 */
class GetActivePlaylist extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Identifier playlist = 1;</code>
     */
    protected $playlist = null;
    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Identifier item = 2;</code>
     */
    protected $item = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\API_v1_Identifier $playlist
     *     @type \Rv\Data\API_v1_Identifier $item
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ProApiV1Media::initOnce();
        parent::__construct($data);
    }

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

        return $this;
    }

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

    public function hasItem()
    {
        return isset($this->item);
    }

    public function clearItem()
    {
        unset($this->item);
    }

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

        return $this;
    }

}

