Cloud Spanner V1 Client - Class ReplicaInfo (1.79.0)

Reference documentation and code samples for the Cloud Spanner V1 Client class ReplicaInfo.

Generated from protobuf message google.spanner.admin.instance.v1.ReplicaInfo

Namespace

Google \ Cloud \ Spanner \ Admin \ Instance \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ location string

The location of the serving resources, e.g. "us-central1".

↳ type int

The type of replica.

↳ default_leader_location bool

If true, this location is designated as the default leader location where leader replicas are placed. See the region types documentation for more details.

getLocation

The location of the serving resources, e.g. "us-central1".

Returns
Type Description
string

setLocation

The location of the serving resources, e.g. "us-central1".

Parameter
Name Description
var string
Returns
Type Description
$this

getType

The type of replica.

Returns
Type Description
int

setType

The type of replica.

Parameter
Name Description
var int
Returns
Type Description
$this

getDefaultLeaderLocation

If true, this location is designated as the default leader location where leader replicas are placed. See the region types documentation for more details.

Returns
Type Description
bool

setDefaultLeaderLocation

If true, this location is designated as the default leader location where leader replicas are placed. See the region types documentation for more details.

Parameter
Name Description
var bool
Returns
Type Description
$this