Google Cloud Game Servers V1 Client - Class TargetFleet (1.2.6)

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

Target Agones fleet specification.

Generated from protobuf message google.cloud.gaming.v1.TargetDetails.TargetFleetDetails.TargetFleet

Namespace

Google \ Cloud \ Gaming \ V1 \ TargetDetails \ TargetFleetDetails

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

The name of the Agones fleet.

↳ spec_source Google\Cloud\Gaming\V1\SpecSource

Encapsulates the source of the Agones fleet spec. The Agones fleet spec source.

getName

The name of the Agones fleet.

Returns
Type Description
string

setName

The name of the Agones fleet.

Parameter
Name Description
var string
Returns
Type Description
$this

getSpecSource

Encapsulates the source of the Agones fleet spec.

The Agones fleet spec source.

Returns
Type Description
Google\Cloud\Gaming\V1\SpecSource|null

hasSpecSource

clearSpecSource

setSpecSource

Encapsulates the source of the Agones fleet spec.

The Agones fleet spec source.

Parameter
Name Description
var Google\Cloud\Gaming\V1\SpecSource
Returns
Type Description
$this