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

namespace PhpWA\Protocol\Proto;

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

/**
 * Generated from protobuf message <code>proto.EmbeddedMusic</code>
 */
class EmbeddedMusic extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string musicContentMediaId = 1;</code>
     */
    protected $musicContentMediaId = null;
    /**
     * Generated from protobuf field <code>optional string songId = 2;</code>
     */
    protected $songId = null;
    /**
     * Generated from protobuf field <code>optional string author = 3;</code>
     */
    protected $author = null;
    /**
     * Generated from protobuf field <code>optional string title = 4;</code>
     */
    protected $title = null;
    /**
     * Generated from protobuf field <code>optional string artworkDirectPath = 5;</code>
     */
    protected $artworkDirectPath = null;
    /**
     * Generated from protobuf field <code>optional bytes artworkSha256 = 6;</code>
     */
    protected $artworkSha256 = null;
    /**
     * Generated from protobuf field <code>optional bytes artworkEncSha256 = 7;</code>
     */
    protected $artworkEncSha256 = null;
    /**
     * Generated from protobuf field <code>optional string artistAttribution = 8;</code>
     */
    protected $artistAttribution = null;
    /**
     * Generated from protobuf field <code>optional bytes countryBlocklist = 9;</code>
     */
    protected $countryBlocklist = null;
    /**
     * Generated from protobuf field <code>optional bool isExplicit = 10;</code>
     */
    protected $isExplicit = null;
    /**
     * Generated from protobuf field <code>optional bytes artworkMediaKey = 11;</code>
     */
    protected $artworkMediaKey = null;
    /**
     * Generated from protobuf field <code>optional int64 musicSongStartTimeInMs = 12;</code>
     */
    protected $musicSongStartTimeInMs = null;
    /**
     * Generated from protobuf field <code>optional int64 derivedContentStartTimeInMs = 13;</code>
     */
    protected $derivedContentStartTimeInMs = null;
    /**
     * Generated from protobuf field <code>optional int64 overlapDurationInMs = 14;</code>
     */
    protected $overlapDurationInMs = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $musicContentMediaId
     *     @type string $songId
     *     @type string $author
     *     @type string $title
     *     @type string $artworkDirectPath
     *     @type string $artworkSha256
     *     @type string $artworkEncSha256
     *     @type string $artistAttribution
     *     @type string $countryBlocklist
     *     @type bool $isExplicit
     *     @type string $artworkMediaKey
     *     @type int|string $musicSongStartTimeInMs
     *     @type int|string $derivedContentStartTimeInMs
     *     @type int|string $overlapDurationInMs
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

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

    public function hasMusicContentMediaId()
    {
        return isset($this->musicContentMediaId);
    }

    public function clearMusicContentMediaId()
    {
        unset($this->musicContentMediaId);
    }

    /**
     * Generated from protobuf field <code>optional string musicContentMediaId = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setMusicContentMediaId($var)
    {
        GPBUtil::checkString($var, True);
        $this->musicContentMediaId = $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 author = 3;</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 = 3;</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 title = 4;</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 = 4;</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 artworkDirectPath = 5;</code>
     * @return string
     */
    public function getArtworkDirectPath()
    {
        return isset($this->artworkDirectPath) ? $this->artworkDirectPath : '';
    }

    public function hasArtworkDirectPath()
    {
        return isset($this->artworkDirectPath);
    }

    public function clearArtworkDirectPath()
    {
        unset($this->artworkDirectPath);
    }

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

        return $this;
    }

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

    public function hasArtworkSha256()
    {
        return isset($this->artworkSha256);
    }

    public function clearArtworkSha256()
    {
        unset($this->artworkSha256);
    }

    /**
     * Generated from protobuf field <code>optional bytes artworkSha256 = 6;</code>
     * @param string $var
     * @return $this
     */
    public function setArtworkSha256($var)
    {
        GPBUtil::checkString($var, False);
        $this->artworkSha256 = $var;

        return $this;
    }

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

    public function hasArtworkEncSha256()
    {
        return isset($this->artworkEncSha256);
    }

    public function clearArtworkEncSha256()
    {
        unset($this->artworkEncSha256);
    }

    /**
     * Generated from protobuf field <code>optional bytes artworkEncSha256 = 7;</code>
     * @param string $var
     * @return $this
     */
    public function setArtworkEncSha256($var)
    {
        GPBUtil::checkString($var, False);
        $this->artworkEncSha256 = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string artistAttribution = 8;</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 = 8;</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 bytes countryBlocklist = 9;</code>
     * @return string
     */
    public function getCountryBlocklist()
    {
        return isset($this->countryBlocklist) ? $this->countryBlocklist : '';
    }

    public function hasCountryBlocklist()
    {
        return isset($this->countryBlocklist);
    }

    public function clearCountryBlocklist()
    {
        unset($this->countryBlocklist);
    }

    /**
     * Generated from protobuf field <code>optional bytes countryBlocklist = 9;</code>
     * @param string $var
     * @return $this
     */
    public function setCountryBlocklist($var)
    {
        GPBUtil::checkString($var, False);
        $this->countryBlocklist = $var;

        return $this;
    }

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

        return $this;
    }

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

    public function hasArtworkMediaKey()
    {
        return isset($this->artworkMediaKey);
    }

    public function clearArtworkMediaKey()
    {
        unset($this->artworkMediaKey);
    }

    /**
     * Generated from protobuf field <code>optional bytes artworkMediaKey = 11;</code>
     * @param string $var
     * @return $this
     */
    public function setArtworkMediaKey($var)
    {
        GPBUtil::checkString($var, False);
        $this->artworkMediaKey = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional int64 musicSongStartTimeInMs = 12;</code>
     * @return int|string
     */
    public function getMusicSongStartTimeInMs()
    {
        return isset($this->musicSongStartTimeInMs) ? $this->musicSongStartTimeInMs : 0;
    }

    public function hasMusicSongStartTimeInMs()
    {
        return isset($this->musicSongStartTimeInMs);
    }

    public function clearMusicSongStartTimeInMs()
    {
        unset($this->musicSongStartTimeInMs);
    }

    /**
     * Generated from protobuf field <code>optional int64 musicSongStartTimeInMs = 12;</code>
     * @param int|string $var
     * @return $this
     */
    public function setMusicSongStartTimeInMs($var)
    {
        GPBUtil::checkInt64($var);
        $this->musicSongStartTimeInMs = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional int64 derivedContentStartTimeInMs = 13;</code>
     * @return int|string
     */
    public function getDerivedContentStartTimeInMs()
    {
        return isset($this->derivedContentStartTimeInMs) ? $this->derivedContentStartTimeInMs : 0;
    }

    public function hasDerivedContentStartTimeInMs()
    {
        return isset($this->derivedContentStartTimeInMs);
    }

    public function clearDerivedContentStartTimeInMs()
    {
        unset($this->derivedContentStartTimeInMs);
    }

    /**
     * Generated from protobuf field <code>optional int64 derivedContentStartTimeInMs = 13;</code>
     * @param int|string $var
     * @return $this
     */
    public function setDerivedContentStartTimeInMs($var)
    {
        GPBUtil::checkInt64($var);
        $this->derivedContentStartTimeInMs = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional int64 overlapDurationInMs = 14;</code>
     * @return int|string
     */
    public function getOverlapDurationInMs()
    {
        return isset($this->overlapDurationInMs) ? $this->overlapDurationInMs : 0;
    }

    public function hasOverlapDurationInMs()
    {
        return isset($this->overlapDurationInMs);
    }

    public function clearOverlapDurationInMs()
    {
        unset($this->overlapDurationInMs);
    }

    /**
     * Generated from protobuf field <code>optional int64 overlapDurationInMs = 14;</code>
     * @param int|string $var
     * @return $this
     */
    public function setOverlapDurationInMs($var)
    {
        GPBUtil::checkInt64($var);
        $this->overlapDurationInMs = $var;

        return $this;
    }

}

