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

namespace Google\Cloud\Gaming\V1;

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

/**
 * Details about the Agones resources.
 *
 * Generated from protobuf message <code>google.cloud.gaming.v1.TargetDetails</code>
 */
class TargetDetails extends \Google\Protobuf\Internal\Message
{
    /**
     * The game server cluster name. Uses the form:
     * `projects/{project}/locations/{location}/realms/{realm}/gameServerClusters/{cluster}`.
     *
     * Generated from protobuf field <code>string game_server_cluster_name = 1;</code>
     */
    private $game_server_cluster_name = '';
    /**
     * The game server deployment name. Uses the form:
     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}`.
     *
     * Generated from protobuf field <code>string game_server_deployment_name = 2;</code>
     */
    private $game_server_deployment_name = '';
    /**
     * Agones fleet details for game server clusters and game server deployments.
     *
     * Generated from protobuf field <code>repeated .google.cloud.gaming.v1.TargetDetails.TargetFleetDetails fleet_details = 3;</code>
     */
    private $fleet_details;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $game_server_cluster_name
     *           The game server cluster name. Uses the form:
     *           `projects/{project}/locations/{location}/realms/{realm}/gameServerClusters/{cluster}`.
     *     @type string $game_server_deployment_name
     *           The game server deployment name. Uses the form:
     *           `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}`.
     *     @type array<\Google\Cloud\Gaming\V1\TargetDetails\TargetFleetDetails>|\Google\Protobuf\Internal\RepeatedField $fleet_details
     *           Agones fleet details for game server clusters and game server deployments.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Gaming\V1\Common::initOnce();
        parent::__construct($data);
    }

    /**
     * The game server cluster name. Uses the form:
     * `projects/{project}/locations/{location}/realms/{realm}/gameServerClusters/{cluster}`.
     *
     * Generated from protobuf field <code>string game_server_cluster_name = 1;</code>
     * @return string
     */
    public function getGameServerClusterName()
    {
        return $this->game_server_cluster_name;
    }

    /**
     * The game server cluster name. Uses the form:
     * `projects/{project}/locations/{location}/realms/{realm}/gameServerClusters/{cluster}`.
     *
     * Generated from protobuf field <code>string game_server_cluster_name = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setGameServerClusterName($var)
    {
        GPBUtil::checkString($var, True);
        $this->game_server_cluster_name = $var;

        return $this;
    }

    /**
     * The game server deployment name. Uses the form:
     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}`.
     *
     * Generated from protobuf field <code>string game_server_deployment_name = 2;</code>
     * @return string
     */
    public function getGameServerDeploymentName()
    {
        return $this->game_server_deployment_name;
    }

    /**
     * The game server deployment name. Uses the form:
     * `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}`.
     *
     * Generated from protobuf field <code>string game_server_deployment_name = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setGameServerDeploymentName($var)
    {
        GPBUtil::checkString($var, True);
        $this->game_server_deployment_name = $var;

        return $this;
    }

    /**
     * Agones fleet details for game server clusters and game server deployments.
     *
     * Generated from protobuf field <code>repeated .google.cloud.gaming.v1.TargetDetails.TargetFleetDetails fleet_details = 3;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getFleetDetails()
    {
        return $this->fleet_details;
    }

    /**
     * Agones fleet details for game server clusters and game server deployments.
     *
     * Generated from protobuf field <code>repeated .google.cloud.gaming.v1.TargetDetails.TargetFleetDetails fleet_details = 3;</code>
     * @param array<\Google\Cloud\Gaming\V1\TargetDetails\TargetFleetDetails>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setFleetDetails($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Gaming\V1\TargetDetails\TargetFleetDetails::class);
        $this->fleet_details = $arr;

        return $this;
    }

}

