<?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.UpdateAgentRequest</code>
 */
class UpdateAgentRequest 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 [deprecated = true];</code>
     * @deprecated
     */
    protected $agent_name = '';
    /**
     * Generated from protobuf field <code>int32 replicas = 3 [deprecated = true];</code>
     * @deprecated
     */
    protected $replicas = 0;
    /**
     * Generated from protobuf field <code>int32 max_replicas = 4 [deprecated = true];</code>
     * @deprecated
     */
    protected $max_replicas = 0;
    /**
     * Generated from protobuf field <code>string cpu_req = 5 [deprecated = true];</code>
     * @deprecated
     */
    protected $cpu_req = '';
    /**
     * Generated from protobuf field <code>repeated string regions = 6;</code>
     */
    private $regions;
    /**
     * Generated from protobuf field <code>repeated .livekit.AgentSecret secrets = 7;</code>
     */
    private $secrets;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $agent_id
     *     @type string $agent_name
     *     @type int $replicas
     *     @type int $max_replicas
     *     @type string $cpu_req
     *     @type string[] $regions
     *     @type \Livekit\AgentSecret[] $secrets
     * }
     */
    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 [deprecated = true];</code>
     * @return string
     * @deprecated
     */
    public function getAgentName()
    {
        if ($this->agent_name !== '') {
            @trigger_error('agent_name is deprecated.', E_USER_DEPRECATED);
        }
        return $this->agent_name;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>int32 replicas = 3 [deprecated = true];</code>
     * @return int
     * @deprecated
     */
    public function getReplicas()
    {
        if ($this->replicas !== 0) {
            @trigger_error('replicas is deprecated.', E_USER_DEPRECATED);
        }
        return $this->replicas;
    }

    /**
     * Generated from protobuf field <code>int32 replicas = 3 [deprecated = true];</code>
     * @param int $var
     * @return $this
     * @deprecated
     */
    public function setReplicas($var)
    {
        @trigger_error('replicas is deprecated.', E_USER_DEPRECATED);
        GPBUtil::checkInt32($var);
        $this->replicas = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>int32 max_replicas = 4 [deprecated = true];</code>
     * @return int
     * @deprecated
     */
    public function getMaxReplicas()
    {
        if ($this->max_replicas !== 0) {
            @trigger_error('max_replicas is deprecated.', E_USER_DEPRECATED);
        }
        return $this->max_replicas;
    }

    /**
     * Generated from protobuf field <code>int32 max_replicas = 4 [deprecated = true];</code>
     * @param int $var
     * @return $this
     * @deprecated
     */
    public function setMaxReplicas($var)
    {
        @trigger_error('max_replicas is deprecated.', E_USER_DEPRECATED);
        GPBUtil::checkInt32($var);
        $this->max_replicas = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string cpu_req = 5 [deprecated = true];</code>
     * @return string
     * @deprecated
     */
    public function getCpuReq()
    {
        if ($this->cpu_req !== '') {
            @trigger_error('cpu_req is deprecated.', E_USER_DEPRECATED);
        }
        return $this->cpu_req;
    }

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .livekit.AgentSecret secrets = 7;</code>
     * @return RepeatedField<\Livekit\AgentSecret>
     */
    public function getSecrets()
    {
        return $this->secrets;
    }

    /**
     * Generated from protobuf field <code>repeated .livekit.AgentSecret secrets = 7;</code>
     * @param \Livekit\AgentSecret[] $var
     * @return $this
     */
    public function setSecrets($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Livekit\AgentSecret::class);
        $this->secrets = $arr;

        return $this;
    }

}

