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

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

A game server config resource.

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

Namespace

Google \ Cloud \ Gaming \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

The resource name of the game server config, in the following form: projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}. For example, projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config.

↳ create_time Google\Protobuf\Timestamp

Output only. The creation time.

↳ update_time Google\Protobuf\Timestamp

Output only. The last-modified time.

↳ labels array|Google\Protobuf\Internal\MapField

The labels associated with this game server config. Each label is a key-value pair.

↳ fleet_configs array<Google\Cloud\Gaming\V1\FleetConfig>

FleetConfig contains a list of Agones fleet specs. Only one FleetConfig is allowed.

↳ scaling_configs array<Google\Cloud\Gaming\V1\ScalingConfig>

The autoscaling settings.

↳ description string

The description of the game server config.

getName

The resource name of the game server config, in the following form: projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}.

For example, projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config.

Returns
TypeDescription
string

setName

The resource name of the game server config, in the following form: projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}.

For example, projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCreateTime

Output only. The creation time.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. The creation time.

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

getUpdateTime

Output only. The last-modified time.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. The last-modified time.

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

getLabels

The labels associated with this game server config. Each label is a key-value pair.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setLabels

The labels associated with this game server config. Each label is a key-value pair.

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getFleetConfigs

FleetConfig contains a list of Agones fleet specs. Only one FleetConfig is allowed.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setFleetConfigs

FleetConfig contains a list of Agones fleet specs. Only one FleetConfig is allowed.

Parameter
NameDescription
var array<Google\Cloud\Gaming\V1\FleetConfig>
Returns
TypeDescription
$this

getScalingConfigs

The autoscaling settings.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setScalingConfigs

The autoscaling settings.

Parameter
NameDescription
var array<Google\Cloud\Gaming\V1\ScalingConfig>
Returns
TypeDescription
$this

getDescription

The description of the game server config.

Returns
TypeDescription
string

setDescription

The description of the game server config.

Parameter
NameDescription
var string
Returns
TypeDescription
$this