<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: livekit_ingress.proto

namespace Livekit;

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

/**
 * Generated from protobuf message <code>livekit.InputAudioState</code>
 */
class InputAudioState extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>uint32 mime_type = 1;</code>
     */
    protected $mime_type = 0;
    /**
     *  uint32 bitrate = 2;
     *
     * Generated from protobuf field <code>uint32 channels = 3;</code>
     */
    protected $channels = 0;
    /**
     * Generated from protobuf field <code>uint32 sample_rate = 4;</code>
     */
    protected $sample_rate = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $mime_type
     *     @type int $channels
     *            uint32 bitrate = 2;
     *     @type int $sample_rate
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitIngress::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

}

