Cloud Spanner V1 Client - Class ReplicaInfo (1.61.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
NameDescription
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
TypeDescription
string

setLocation

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getType

The type of replica.

Returns
TypeDescription
int

setType

The type of replica.

Parameter
NameDescription
var int
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var bool
Returns
TypeDescription
$this