Cloud Spanner V1 Client - Class ReplicaInfo (1.54.2)

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

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

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".

Generated from protobuf field string location = 1;

Returns
TypeDescription
string

setLocation

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

Generated from protobuf field string location = 1;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getType

The type of replica.

Generated from protobuf field .google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType type = 2;

Returns
TypeDescription
int

setType

The type of replica.

Generated from protobuf field .google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType type = 2;

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.

Generated from protobuf field bool default_leader_location = 3;

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.

Generated from protobuf field bool default_leader_location = 3;

Parameter
NameDescription
var bool
Returns
TypeDescription
$this