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

namespace Livekit;

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

/**
 * Generated from protobuf message <code>livekit.ConnectionSettings</code>
 */
class ConnectionSettings extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>bool auto_subscribe = 1;</code>
     */
    protected $auto_subscribe = false;
    /**
     * Generated from protobuf field <code>bool adaptive_stream = 2;</code>
     */
    protected $adaptive_stream = false;
    /**
     * Generated from protobuf field <code>optional bool subscriber_allow_pause = 3;</code>
     */
    protected $subscriber_allow_pause = null;
    /**
     * Generated from protobuf field <code>bool disable_ice_lite = 4;</code>
     */
    protected $disable_ice_lite = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $auto_subscribe
     *     @type bool $adaptive_stream
     *     @type bool $subscriber_allow_pause
     *     @type bool $disable_ice_lite
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitRtc::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>bool auto_subscribe = 1;</code>
     * @return bool
     */
    public function getAutoSubscribe()
    {
        return $this->auto_subscribe;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool adaptive_stream = 2;</code>
     * @return bool
     */
    public function getAdaptiveStream()
    {
        return $this->adaptive_stream;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional bool subscriber_allow_pause = 3;</code>
     * @return bool
     */
    public function getSubscriberAllowPause()
    {
        return isset($this->subscriber_allow_pause) ? $this->subscriber_allow_pause : false;
    }

    public function hasSubscriberAllowPause()
    {
        return isset($this->subscriber_allow_pause);
    }

    public function clearSubscriberAllowPause()
    {
        unset($this->subscriber_allow_pause);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool disable_ice_lite = 4;</code>
     * @return bool
     */
    public function getDisableIceLite()
    {
        return $this->disable_ice_lite;
    }

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

        return $this;
    }

}

