<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: temporal/api/workflowservice/v1/request_response.proto

namespace Temporal\Api\Workflowservice\V1;

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

/**
 * GetClusterInfoResponse contains information about Temporal cluster.
 *
 * Generated from protobuf message <code>temporal.api.workflowservice.v1.GetClusterInfoResponse</code>
 */
class GetClusterInfoResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Key is client name i.e "temporal-go", "temporal-java", or "temporal-cli".
     * Value is ranges of supported versions of this client i.e ">1.1.1 <=1.4.0 || ^5.0.0".
     *
     * Generated from protobuf field <code>map<string, string> supported_clients = 1;</code>
     */
    private $supported_clients;
    /**
     * Generated from protobuf field <code>string server_version = 2;</code>
     */
    protected $server_version = '';
    /**
     * Generated from protobuf field <code>string cluster_id = 3;</code>
     */
    protected $cluster_id = '';
    /**
     * Generated from protobuf field <code>.temporal.api.version.v1.VersionInfo version_info = 4;</code>
     */
    protected $version_info = null;
    /**
     * Generated from protobuf field <code>string cluster_name = 5;</code>
     */
    protected $cluster_name = '';
    /**
     * Generated from protobuf field <code>int32 history_shard_count = 6;</code>
     */
    protected $history_shard_count = 0;
    /**
     * Generated from protobuf field <code>string persistence_store = 7;</code>
     */
    protected $persistence_store = '';
    /**
     * Generated from protobuf field <code>string visibility_store = 8;</code>
     */
    protected $visibility_store = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array|\Google\Protobuf\Internal\MapField $supported_clients
     *           Key is client name i.e "temporal-go", "temporal-java", or "temporal-cli".
     *           Value is ranges of supported versions of this client i.e ">1.1.1 <=1.4.0 || ^5.0.0".
     *     @type string $server_version
     *     @type string $cluster_id
     *     @type \Temporal\Api\Version\V1\VersionInfo $version_info
     *     @type string $cluster_name
     *     @type int $history_shard_count
     *     @type string $persistence_store
     *     @type string $visibility_store
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
        parent::__construct($data);
    }

    /**
     * Key is client name i.e "temporal-go", "temporal-java", or "temporal-cli".
     * Value is ranges of supported versions of this client i.e ">1.1.1 <=1.4.0 || ^5.0.0".
     *
     * Generated from protobuf field <code>map<string, string> supported_clients = 1;</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getSupportedClients()
    {
        return $this->supported_clients;
    }

    /**
     * Key is client name i.e "temporal-go", "temporal-java", or "temporal-cli".
     * Value is ranges of supported versions of this client i.e ">1.1.1 <=1.4.0 || ^5.0.0".
     *
     * Generated from protobuf field <code>map<string, string> supported_clients = 1;</code>
     * @param array|\Google\Protobuf\Internal\MapField $var
     * @return $this
     */
    public function setSupportedClients($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
        $this->supported_clients = $arr;

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.temporal.api.version.v1.VersionInfo version_info = 4;</code>
     * @return \Temporal\Api\Version\V1\VersionInfo|null
     */
    public function getVersionInfo()
    {
        return $this->version_info;
    }

    public function hasVersionInfo()
    {
        return isset($this->version_info);
    }

    public function clearVersionInfo()
    {
        unset($this->version_info);
    }

    /**
     * Generated from protobuf field <code>.temporal.api.version.v1.VersionInfo version_info = 4;</code>
     * @param \Temporal\Api\Version\V1\VersionInfo $var
     * @return $this
     */
    public function setVersionInfo($var)
    {
        GPBUtil::checkMessage($var, \Temporal\Api\Version\V1\VersionInfo::class);
        $this->version_info = $var;

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>int32 history_shard_count = 6;</code>
     * @return int
     */
    public function getHistoryShardCount()
    {
        return $this->history_shard_count;
    }

    /**
     * Generated from protobuf field <code>int32 history_shard_count = 6;</code>
     * @param int $var
     * @return $this
     */
    public function setHistoryShardCount($var)
    {
        GPBUtil::checkInt32($var);
        $this->history_shard_count = $var;

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string visibility_store = 8;</code>
     * @return string
     */
    public function getVisibilityStore()
    {
        return $this->visibility_store;
    }

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

        return $this;
    }

}

