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

namespace Rv\Data\Action\CommunicationType;

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

/**
 * Generated from protobuf message <code>rv.data.Action.CommunicationType.MIDICommand</code>
 */
class MIDICommand extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.Action.CommunicationType.MIDICommand.State state = 1;</code>
     */
    protected $state = 0;
    /**
     * Generated from protobuf field <code>uint32 channel = 2;</code>
     */
    protected $channel = 0;
    /**
     * Generated from protobuf field <code>uint32 note = 3;</code>
     */
    protected $note = 0;
    /**
     * Generated from protobuf field <code>uint32 intensity = 4;</code>
     */
    protected $intensity = 0;

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

    /**
     * Generated from protobuf field <code>.rv.data.Action.CommunicationType.MIDICommand.State state = 1;</code>
     * @return int
     */
    public function getState()
    {
        return $this->state;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Action.CommunicationType.MIDICommand.State state = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setState($var)
    {
        GPBUtil::checkEnum($var, \Rv\Data\Action\CommunicationType\MIDICommand\State::class);
        $this->state = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>uint32 channel = 2;</code>
     * @return int
     */
    public function getChannel()
    {
        return $this->channel;
    }

    /**
     * Generated from protobuf field <code>uint32 channel = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setChannel($var)
    {
        GPBUtil::checkUint32($var);
        $this->channel = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>uint32 note = 3;</code>
     * @return int
     */
    public function getNote()
    {
        return $this->note;
    }

    /**
     * Generated from protobuf field <code>uint32 note = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setNote($var)
    {
        GPBUtil::checkUint32($var);
        $this->note = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>uint32 intensity = 4;</code>
     * @return int
     */
    public function getIntensity()
    {
        return $this->intensity;
    }

    /**
     * Generated from protobuf field <code>uint32 intensity = 4;</code>
     * @param int $var
     * @return $this
     */
    public function setIntensity($var)
    {
        GPBUtil::checkUint32($var);
        $this->intensity = $var;

        return $this;
    }

}

