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

namespace PhpWA\Protocol\Proto\StatusAttribution;

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

/**
 * Generated from protobuf message <code>proto.StatusAttribution.Music</code>
 */
class Music extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string authorName = 1;</code>
     */
    protected $authorName = null;
    /**
     * Generated from protobuf field <code>optional string songId = 2;</code>
     */
    protected $songId = null;
    /**
     * Generated from protobuf field <code>optional string title = 3;</code>
     */
    protected $title = null;
    /**
     * Generated from protobuf field <code>optional string author = 4;</code>
     */
    protected $author = null;
    /**
     * Generated from protobuf field <code>optional string artistAttribution = 5;</code>
     */
    protected $artistAttribution = null;
    /**
     * Generated from protobuf field <code>optional bool isExplicit = 6;</code>
     */
    protected $isExplicit = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $authorName
     *     @type string $songId
     *     @type string $title
     *     @type string $author
     *     @type string $artistAttribution
     *     @type bool $isExplicit
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional string authorName = 1;</code>
     * @return string
     */
    public function getAuthorName()
    {
        return isset($this->authorName) ? $this->authorName : '';
    }

    public function hasAuthorName()
    {
        return isset($this->authorName);
    }

    public function clearAuthorName()
    {
        unset($this->authorName);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string songId = 2;</code>
     * @return string
     */
    public function getSongId()
    {
        return isset($this->songId) ? $this->songId : '';
    }

    public function hasSongId()
    {
        return isset($this->songId);
    }

    public function clearSongId()
    {
        unset($this->songId);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string title = 3;</code>
     * @return string
     */
    public function getTitle()
    {
        return isset($this->title) ? $this->title : '';
    }

    public function hasTitle()
    {
        return isset($this->title);
    }

    public function clearTitle()
    {
        unset($this->title);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string author = 4;</code>
     * @return string
     */
    public function getAuthor()
    {
        return isset($this->author) ? $this->author : '';
    }

    public function hasAuthor()
    {
        return isset($this->author);
    }

    public function clearAuthor()
    {
        unset($this->author);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string artistAttribution = 5;</code>
     * @return string
     */
    public function getArtistAttribution()
    {
        return isset($this->artistAttribution) ? $this->artistAttribution : '';
    }

    public function hasArtistAttribution()
    {
        return isset($this->artistAttribution);
    }

    public function clearArtistAttribution()
    {
        unset($this->artistAttribution);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional bool isExplicit = 6;</code>
     * @return bool
     */
    public function getIsExplicit()
    {
        return isset($this->isExplicit) ? $this->isExplicit : false;
    }

    public function hasIsExplicit()
    {
        return isset($this->isExplicit);
    }

    public function clearIsExplicit()
    {
        unset($this->isExplicit);
    }

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

        return $this;
    }

}

