Google Cloud Game Servers V1 Client - Class CreateGameServerClusterRequest (1.1.1)

Reference documentation and code samples for the Google Cloud Game Servers V1 Client class CreateGameServerClusterRequest.

Request message for GameServerClustersService.CreateGameServerCluster.

Generated from protobuf message google.cloud.gaming.v1.CreateGameServerClusterRequest

Namespace

Google \ Cloud \ Gaming \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The parent resource name, in the following form: projects/{project}/locations/{location}/realms/{realm-id}.

↳ game_server_cluster_id string

Required. The ID of the game server cluster resource to be created.

↳ game_server_cluster Google\Cloud\Gaming\V1\GameServerCluster

Required. The game server cluster resource to be created.

getParent

Required. The parent resource name, in the following form: projects/{project}/locations/{location}/realms/{realm-id}.

Returns
TypeDescription
string

setParent

Required. The parent resource name, in the following form: projects/{project}/locations/{location}/realms/{realm-id}.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getGameServerClusterId

Required. The ID of the game server cluster resource to be created.

Returns
TypeDescription
string

setGameServerClusterId

Required. The ID of the game server cluster resource to be created.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getGameServerCluster

Required. The game server cluster resource to be created.

Returns
TypeDescription
Google\Cloud\Gaming\V1\GameServerCluster|null

hasGameServerCluster

clearGameServerCluster

setGameServerCluster

Required. The game server cluster resource to be created.

Parameter
NameDescription
var Google\Cloud\Gaming\V1\GameServerCluster
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
parent string

Required. The parent resource name, in the following form: projects/{project}/locations/{location}/realms/{realm-id}. Please see Google\Cloud\Gaming\V1\GameServerClustersServiceClient::realmName() for help formatting this field.

gameServerCluster Google\Cloud\Gaming\V1\GameServerCluster

Required. The game server cluster resource to be created.

gameServerClusterId string

Required. The ID of the game server cluster resource to be created.

Returns
TypeDescription
Google\Cloud\Gaming\V1\CreateGameServerClusterRequest