<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: livekit_agent.proto

namespace Livekit;

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

/**
 * Generated from protobuf message <code>livekit.RegisterWorkerResponse</code>
 */
class RegisterWorkerResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string worker_id = 1;</code>
     */
    protected $worker_id = '';
    /**
     * Generated from protobuf field <code>.livekit.ServerInfo server_info = 3;</code>
     */
    protected $server_info = null;

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

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.livekit.ServerInfo server_info = 3;</code>
     * @return \Livekit\ServerInfo|null
     */
    public function getServerInfo()
    {
        return $this->server_info;
    }

    public function hasServerInfo()
    {
        return isset($this->server_info);
    }

    public function clearServerInfo()
    {
        unset($this->server_info);
    }

    /**
     * Generated from protobuf field <code>.livekit.ServerInfo server_info = 3;</code>
     * @param \Livekit\ServerInfo $var
     * @return $this
     */
    public function setServerInfo($var)
    {
        GPBUtil::checkMessage($var, \Livekit\ServerInfo::class);
        $this->server_info = $var;

        return $this;
    }

}

