<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/gaming/v1/game_server_clusters.proto

namespace Google\Cloud\Gaming\V1;

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

/**
 * A reference to a GKE cluster.
 *
 * Generated from protobuf message <code>google.cloud.gaming.v1.GkeClusterReference</code>
 */
class GkeClusterReference extends \Google\Protobuf\Internal\Message
{
    /**
     * The full or partial name of a GKE cluster, using one of the following
     * forms:
     *  * `projects/{project}/locations/{location}/clusters/{cluster}`
     *  * `locations/{location}/clusters/{cluster}`
     *  * `{cluster}`
     * If project and location are not specified, the project and location of the
     * GameServerCluster resource are used to generate the full name of the
     * GKE cluster.
     *
     * Generated from protobuf field <code>string cluster = 1;</code>
     */
    private $cluster = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $cluster
     *           The full or partial name of a GKE cluster, using one of the following
     *           forms:
     *            * `projects/{project}/locations/{location}/clusters/{cluster}`
     *            * `locations/{location}/clusters/{cluster}`
     *            * `{cluster}`
     *           If project and location are not specified, the project and location of the
     *           GameServerCluster resource are used to generate the full name of the
     *           GKE cluster.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Gaming\V1\GameServerClusters::initOnce();
        parent::__construct($data);
    }

    /**
     * The full or partial name of a GKE cluster, using one of the following
     * forms:
     *  * `projects/{project}/locations/{location}/clusters/{cluster}`
     *  * `locations/{location}/clusters/{cluster}`
     *  * `{cluster}`
     * If project and location are not specified, the project and location of the
     * GameServerCluster resource are used to generate the full name of the
     * GKE cluster.
     *
     * Generated from protobuf field <code>string cluster = 1;</code>
     * @return string
     */
    public function getCluster()
    {
        return $this->cluster;
    }

    /**
     * The full or partial name of a GKE cluster, using one of the following
     * forms:
     *  * `projects/{project}/locations/{location}/clusters/{cluster}`
     *  * `locations/{location}/clusters/{cluster}`
     *  * `{cluster}`
     * If project and location are not specified, the project and location of the
     * GameServerCluster resource are used to generate the full name of the
     * GKE cluster.
     *
     * Generated from protobuf field <code>string cluster = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setCluster($var)
    {
        GPBUtil::checkString($var, True);
        $this->cluster = $var;

        return $this;
    }

}

