<?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.DeployAgentResponse</code>
 */
class DeployAgentResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>bool success = 1;</code>
     */
    protected $success = false;
    /**
     * Generated from protobuf field <code>string message = 2;</code>
     */
    protected $message = '';
    /**
     * Generated from protobuf field <code>string agent_id = 3 [(.logger.name) = "agentID"];</code>
     */
    protected $agent_id = '';
    /**
     * Generated from protobuf field <code>string presigned_url = 4 [deprecated = true];</code>
     * @deprecated
     */
    protected $presigned_url = '';
    /**
     * Generated from protobuf field <code>string tag = 5;</code>
     */
    protected $tag = '';
    /**
     * Generated from protobuf field <code>.livekit.PresignedPostRequest presigned_post_request = 6;</code>
     */
    protected $presigned_post_request = null;
    /**
     * Generated from protobuf field <code>string deployment = 7;</code>
     */
    protected $deployment = '';

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

    /**
     * Generated from protobuf field <code>bool success = 1;</code>
     * @return bool
     */
    public function getSuccess()
    {
        return $this->success;
    }

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

        return $this;
    }

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

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

        return $this;
    }

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

    /**
     * Generated from protobuf field <code>string agent_id = 3 [(.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 presigned_url = 4 [deprecated = true];</code>
     * @return string
     * @deprecated
     */
    public function getPresignedUrl()
    {
        if ($this->presigned_url !== '') {
            @trigger_error('presigned_url is deprecated.', E_USER_DEPRECATED);
        }
        return $this->presigned_url;
    }

    /**
     * Generated from protobuf field <code>string presigned_url = 4 [deprecated = true];</code>
     * @param string $var
     * @return $this
     * @deprecated
     */
    public function setPresignedUrl($var)
    {
        @trigger_error('presigned_url is deprecated.', E_USER_DEPRECATED);
        GPBUtil::checkString($var, True);
        $this->presigned_url = $var;

        return $this;
    }

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

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

        return $this;
    }

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

        return $this;
    }

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

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

        return $this;
    }

}

