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

namespace Rv\Data;

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

/**
 * Generated from protobuf message <code>rv.data.MusicKeyScale</code>
 */
class MusicKeyScale extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.MusicKeyScale.MusicKey music_key = 1;</code>
     */
    protected $music_key = 0;
    /**
     * Generated from protobuf field <code>.rv.data.MusicKeyScale.MusicScale music_scale = 2;</code>
     */
    protected $music_scale = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $music_key
     *     @type int $music_scale
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\MusicKeyScale::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.rv.data.MusicKeyScale.MusicKey music_key = 1;</code>
     * @return int
     */
    public function getMusicKey()
    {
        return $this->music_key;
    }

    /**
     * Generated from protobuf field <code>.rv.data.MusicKeyScale.MusicKey music_key = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setMusicKey($var)
    {
        GPBUtil::checkEnum($var, \Rv\Data\MusicKeyScale\MusicKey::class);
        $this->music_key = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.MusicKeyScale.MusicScale music_scale = 2;</code>
     * @return int
     */
    public function getMusicScale()
    {
        return $this->music_scale;
    }

    /**
     * Generated from protobuf field <code>.rv.data.MusicKeyScale.MusicScale music_scale = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setMusicScale($var)
    {
        GPBUtil::checkEnum($var, \Rv\Data\MusicKeyScale\MusicScale::class);
        $this->music_scale = $var;

        return $this;
    }

}

