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

namespace Livekit;

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

/**
 * Generated from protobuf message <code>livekit.CreateAgentResponse</code>
 */
class CreateAgentResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string agent_id = 1 [(.logger.name) = "agentID"];</code>
     */
    protected $agent_id = '';
    /**
     * Generated from protobuf field <code>string agent_name = 2;</code>
     */
    protected $agent_name = '';
    /**
     * Generated from protobuf field <code>string status = 3;</code>
     */
    protected $status = '';
    /**
     * Generated from protobuf field <code>string version = 4;</code>
     */
    protected $version = '';
    /**
     * Generated from protobuf field <code>string presigned_url = 5;</code>
     */
    protected $presigned_url = '';
    /**
     * Generated from protobuf field <code>string tag = 6;</code>
     */
    protected $tag = '';
    /**
     * Generated from protobuf field <code>repeated string server_regions = 7;</code>
     */
    private $server_regions;
    /**
     * Generated from protobuf field <code>.livekit.PresignedPostRequest presigned_post_request = 8;</code>
     */
    protected $presigned_post_request = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $agent_id
     *     @type string $agent_name
     *     @type string $status
     *     @type string $version
     *     @type string $presigned_url
     *     @type string $tag
     *     @type string[] $server_regions
     *     @type \Livekit\PresignedPostRequest $presigned_post_request
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitCloudAgent::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>string agent_id = 1 [(.logger.name) = "agentID"];</code>
     * @return string
     */
    public function getAgentId()
    {
        return $this->agent_id;
    }

    /**
     * Generated from protobuf field <code>string agent_id = 1 [(.logger.name) = "agentID"];</code>
     * @param string $var
     * @return $this
     */
    public function setAgentId($var)
    {
        GPBUtil::checkString($var, True);
        $this->agent_id = $var;

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string version = 4;</code>
     * @return string
     */
    public function getVersion()
    {
        return $this->version;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string presigned_url = 5;</code>
     * @return string
     */
    public function getPresignedUrl()
    {
        return $this->presigned_url;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string tag = 6;</code>
     * @return string
     */
    public function getTag()
    {
        return $this->tag;
    }

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.livekit.PresignedPostRequest presigned_post_request = 8;</code>
     * @return \Livekit\PresignedPostRequest|null
     */
    public function getPresignedPostRequest()
    {
        return $this->presigned_post_request;
    }

    public function hasPresignedPostRequest()
    {
        return isset($this->presigned_post_request);
    }

    public function clearPresignedPostRequest()
    {
        unset($this->presigned_post_request);
    }

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

        return $this;
    }

}

