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

namespace Temporal\Api\Errordetails\V1;

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

/**
 * Generated from protobuf message <code>temporal.api.errordetails.v1.ServerVersionNotSupportedFailure</code>
 */
class ServerVersionNotSupportedFailure extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string server_version = 1;</code>
     */
    protected $server_version = '';
    /**
     * Generated from protobuf field <code>string client_supported_server_versions = 2;</code>
     */
    protected $client_supported_server_versions = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $server_version
     *     @type string $client_supported_server_versions
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Temporal\Api\Errordetails\V1\Message::initOnce();
        parent::__construct($data);
    }

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

    /**
     * Generated from protobuf field <code>string server_version = 1;</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 client_supported_server_versions = 2;</code>
     * @return string
     */
    public function getClientSupportedServerVersions()
    {
        return $this->client_supported_server_versions;
    }

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

        return $this;
    }

}

