<?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.AgentInfo</code>
 */
class AgentInfo 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 version = 3;</code>
     */
    protected $version = '';
    /**
     * Generated from protobuf field <code>repeated .livekit.AgentDeployment agent_deployments = 4;</code>
     */
    private $agent_deployments;
    /**
     * Generated from protobuf field <code>repeated .livekit.AgentSecret secrets = 5;</code>
     */
    private $secrets;
    /**
     * Generated from protobuf field <code>.google.protobuf.Timestamp deployed_at = 6;</code>
     */
    protected $deployed_at = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $agent_id
     *     @type string $agent_name
     *     @type string $version
     *     @type \Livekit\AgentDeployment[] $agent_deployments
     *     @type \Livekit\AgentSecret[] $secrets
     *     @type \Google\Protobuf\Timestamp $deployed_at
     * }
     */
    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 version = 3;</code>
     * @return string
     */
    public function getVersion()
    {
        return $this->version;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .livekit.AgentDeployment agent_deployments = 4;</code>
     * @return RepeatedField<\Livekit\AgentDeployment>
     */
    public function getAgentDeployments()
    {
        return $this->agent_deployments;
    }

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

        return $this;
    }

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

    /**
     * Generated from protobuf field <code>repeated .livekit.AgentSecret secrets = 5;</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;
    }

    /**
     * Generated from protobuf field <code>.google.protobuf.Timestamp deployed_at = 6;</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getDeployedAt()
    {
        return $this->deployed_at;
    }

    public function hasDeployedAt()
    {
        return isset($this->deployed_at);
    }

    public function clearDeployedAt()
    {
        unset($this->deployed_at);
    }

    /**
     * Generated from protobuf field <code>.google.protobuf.Timestamp deployed_at = 6;</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setDeployedAt($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->deployed_at = $var;

        return $this;
    }

}

