<?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.AgentVersion</code>
 */
class AgentVersion extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string version = 1;</code>
     */
    protected $version = '';
    /**
     * Generated from protobuf field <code>bool current = 2;</code>
     */
    protected $current = false;
    /**
     * Generated from protobuf field <code>.google.protobuf.Timestamp created_at = 3;</code>
     */
    protected $created_at = null;
    /**
     * Generated from protobuf field <code>.google.protobuf.Timestamp deployed_at = 4;</code>
     */
    protected $deployed_at = null;
    /**
     * Generated from protobuf field <code>map<string, string> attributes = 5;</code>
     */
    private $attributes;
    /**
     * Generated from protobuf field <code>string status = 6;</code>
     */
    protected $status = '';
    /**
     * Generated from protobuf field <code>string owner = 7;</code>
     */
    protected $owner = '';
    /**
     * Generated from protobuf field <code>bool draining = 8;</code>
     */
    protected $draining = false;
    /**
     * Generated from protobuf field <code>bool active = 9;</code>
     */
    protected $active = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $version
     *     @type bool $current
     *     @type \Google\Protobuf\Timestamp $created_at
     *     @type \Google\Protobuf\Timestamp $deployed_at
     *     @type array|\Google\Protobuf\Internal\MapField $attributes
     *     @type string $status
     *     @type string $owner
     *     @type bool $draining
     *     @type bool $active
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitCloudAgent::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool current = 2;</code>
     * @return bool
     */
    public function getCurrent()
    {
        return $this->current;
    }

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

        return $this;
    }

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

    public function hasCreatedAt()
    {
        return isset($this->created_at);
    }

    public function clearCreatedAt()
    {
        unset($this->created_at);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.google.protobuf.Timestamp deployed_at = 4;</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 = 4;</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;
    }

    /**
     * Generated from protobuf field <code>map<string, string> attributes = 5;</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getAttributes()
    {
        return $this->attributes;
    }

    /**
     * Generated from protobuf field <code>map<string, string> attributes = 5;</code>
     * @param array|\Google\Protobuf\Internal\MapField $var
     * @return $this
     */
    public function setAttributes($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
        $this->attributes = $arr;

        return $this;
    }

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

    /**
     * Generated from protobuf field <code>string status = 6;</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 owner = 7;</code>
     * @return string
     */
    public function getOwner()
    {
        return $this->owner;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool draining = 8;</code>
     * @return bool
     */
    public function getDraining()
    {
        return $this->draining;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool active = 9;</code>
     * @return bool
     */
    public function getActive()
    {
        return $this->active;
    }

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

        return $this;
    }

}

