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

namespace Livekit;

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

/**
 * Generated from protobuf message <code>livekit.RegisterWorkerResponse</code>
 */
class RegisterWorkerResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string worker_id = 1 [(.logger.name) = "workerID"];</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 [(.logger.name) = "workerID"];</code>
     * @return string
     */
    public function getWorkerId()
    {
        return $this->worker_id;
    }

    /**
     * Generated from protobuf field <code>string worker_id = 1 [(.logger.name) = "workerID"];</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;
    }

}

