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

namespace PhpWA\Protocol\Proto\SyncActionValue;

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

/**
 * Generated from protobuf message <code>proto.SyncActionValue.MusicUserIdAction</code>
 */
class MusicUserIdAction extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string musicUserId = 1;</code>
     */
    protected $musicUserId = null;
    /**
     * Generated from protobuf field <code>map<string, string> music_user_id_map = 2;</code>
     */
    private $music_user_id_map;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $musicUserId
     *     @type array|\Google\Protobuf\Internal\MapField $music_user_id_map
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

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

    public function hasMusicUserId()
    {
        return isset($this->musicUserId);
    }

    public function clearMusicUserId()
    {
        unset($this->musicUserId);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>map<string, string> music_user_id_map = 2;</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getMusicUserIdMap()
    {
        return $this->music_user_id_map;
    }

    /**
     * Generated from protobuf field <code>map<string, string> music_user_id_map = 2;</code>
     * @param array|\Google\Protobuf\Internal\MapField $var
     * @return $this
     */
    public function setMusicUserIdMap($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
        $this->music_user_id_map = $arr;

        return $this;
    }

}

