Cloud Spanner V1 Client - Class ReplicaInfo (1.104.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