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

namespace Mynaparrot\PlugnmeetProto;

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

/**
 * Generated from protobuf message <code>plugnmeet.MediaServerConnInfo</code>
 */
class MediaServerConnInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string url = 1;</code>
     */
    protected $url = '';
    /**
     * Generated from protobuf field <code>string token = 2;</code>
     */
    protected $token = '';
    /**
     * Generated from protobuf field <code>bool enabled_e2ee = 3;</code>
     */
    protected $enabled_e2ee = false;
    /**
     * Generated from protobuf field <code>optional .plugnmeet.TurnCredentials turn_credentials = 4;</code>
     */
    protected $turn_credentials = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $url
     *     @type string $token
     *     @type bool $enabled_e2ee
     *     @type \Mynaparrot\PlugnmeetProto\TurnCredentials $turn_credentials
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PlugnmeetNatsMsg::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .plugnmeet.TurnCredentials turn_credentials = 4;</code>
     * @return \Mynaparrot\PlugnmeetProto\TurnCredentials|null
     */
    public function getTurnCredentials()
    {
        return $this->turn_credentials;
    }

    public function hasTurnCredentials()
    {
        return isset($this->turn_credentials);
    }

    public function clearTurnCredentials()
    {
        unset($this->turn_credentials);
    }

    /**
     * Generated from protobuf field <code>optional .plugnmeet.TurnCredentials turn_credentials = 4;</code>
     * @param \Mynaparrot\PlugnmeetProto\TurnCredentials $var
     * @return $this
     */
    public function setTurnCredentials($var)
    {
        GPBUtil::checkMessage($var, \Mynaparrot\PlugnmeetProto\TurnCredentials::class);
        $this->turn_credentials = $var;

        return $this;
    }

}

