<?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.ICEServer</code>
 */
class ICEServer extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>repeated string urls = 1;</code>
     */
    private $urls;
    /**
     * Generated from protobuf field <code>string username = 2;</code>
     */
    protected $username = '';
    /**
     * Generated from protobuf field <code>string credential = 3;</code>
     */
    protected $credential = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string[] $urls
     *     @type string $username
     *     @type string $credential
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitRtc::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>repeated string urls = 1;</code>
     * @return RepeatedField<string>
     */
    public function getUrls()
    {
        return $this->urls;
    }

    /**
     * Generated from protobuf field <code>repeated string urls = 1;</code>
     * @param string[] $var
     * @return $this
     */
    public function setUrls($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->urls = $arr;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string username = 2;</code>
     * @return string
     */
    public function getUsername()
    {
        return $this->username;
    }

    /**
     * Generated from protobuf field <code>string username = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setUsername($var)
    {
        GPBUtil::checkString($var, True);
        $this->username = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string credential = 3;</code>
     * @return string
     */
    public function getCredential()
    {
        return $this->credential;
    }

    /**
     * Generated from protobuf field <code>string credential = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setCredential($var)
    {
        GPBUtil::checkString($var, True);
        $this->credential = $var;

        return $this;
    }

}

