Google Cloud Game Servers V1 Client - Class PreviewCreateGameServerClusterResponse (1.0.5)

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

Response message for GameServerClustersService.PreviewCreateGameServerCluster.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ etag string

The ETag of the game server cluster.

↳ target_state Google\Cloud\Gaming\V1\TargetState

The target state.

↳ cluster_state Google\Cloud\Gaming\V1\KubernetesClusterState

Output only. The state of the Kubernetes cluster in preview, this will be available if 'view' is set to FULL in the relevant List/Get/Preview request.

getEtag

The ETag of the game server cluster.

Returns
TypeDescription
string

setEtag

The ETag of the game server cluster.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getTargetState

The target state.

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

hasTargetState

clearTargetState

setTargetState

The target state.

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

getClusterState

Output only. The state of the Kubernetes cluster in preview, this will be available if 'view' is set to FULL in the relevant List/Get/Preview request.

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

hasClusterState

clearClusterState

setClusterState

Output only. The state of the Kubernetes cluster in preview, this will be available if 'view' is set to FULL in the relevant List/Get/Preview request.

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