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

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
NameDescription
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
TypeDescription
string

setName

The name of the Agones fleet.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSpecSource

Encapsulates the source of the Agones fleet spec.

The Agones fleet spec source.

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

hasSpecSource

clearSpecSource

setSpecSource

Encapsulates the source of the Agones fleet spec.

The Agones fleet spec source.

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