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

namespace Livekit;

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

/**
 * Generated from protobuf message <code>livekit.TokenSourceResponse</code>
 */
class TokenSourceResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string server_url = 1;</code>
     */
    protected $server_url = '';
    /**
     * Generated from protobuf field <code>string participant_token = 2;</code>
     */
    protected $participant_token = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $server_url
     *     @type string $participant_token
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitTokenSource::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

}

