<?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.IngressAudioEncodingOptions</code>
 */
class IngressAudioEncodingOptions extends \Google\Protobuf\Internal\Message
{
    /**
     * desired audio codec to publish to room
     *
     * Generated from protobuf field <code>.livekit.AudioCodec audio_codec = 1;</code>
     */
    protected $audio_codec = 0;
    /**
     * Generated from protobuf field <code>uint32 bitrate = 2;</code>
     */
    protected $bitrate = 0;
    /**
     * Generated from protobuf field <code>bool disable_dtx = 3;</code>
     */
    protected $disable_dtx = false;
    /**
     * Generated from protobuf field <code>uint32 channels = 4;</code>
     */
    protected $channels = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $audio_codec
     *           desired audio codec to publish to room
     *     @type int $bitrate
     *     @type bool $disable_dtx
     *     @type int $channels
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitIngress::initOnce();
        parent::__construct($data);
    }

    /**
     * desired audio codec to publish to room
     *
     * Generated from protobuf field <code>.livekit.AudioCodec audio_codec = 1;</code>
     * @return int
     */
    public function getAudioCodec()
    {
        return $this->audio_codec;
    }

    /**
     * desired audio codec to publish to room
     *
     * Generated from protobuf field <code>.livekit.AudioCodec audio_codec = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setAudioCodec($var)
    {
        GPBUtil::checkEnum($var, \Livekit\AudioCodec::class);
        $this->audio_codec = $var;

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool disable_dtx = 3;</code>
     * @return bool
     */
    public function getDisableDtx()
    {
        return $this->disable_dtx;
    }

    /**
     * Generated from protobuf field <code>bool disable_dtx = 3;</code>
     * @param bool $var
     * @return $this
     */
    public function setDisableDtx($var)
    {
        GPBUtil::checkBool($var);
        $this->disable_dtx = $var;

        return $this;
    }

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

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

        return $this;
    }

}

