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

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

Request message for GameServerClustersService.PreviewCreateGameServerCluster.

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

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}.

↳ 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.

↳ preview_time Google\Protobuf\Timestamp

Optional. The target timestamp to compute the preview.

↳ view int

Optional. This field is deprecated, preview will always return KubernetesClusterState.

getParent

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

Returns
TypeDescription
string

setParent

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

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

getPreviewTime

Optional. The target timestamp to compute the preview.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasPreviewTime

clearPreviewTime

setPreviewTime

Optional. The target timestamp to compute the preview.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getView

Optional. This field is deprecated, preview will always return KubernetesClusterState.

Returns
TypeDescription
int

setView

Optional. This field is deprecated, preview will always return KubernetesClusterState.

Parameter
NameDescription
var int
Returns
TypeDescription
$this