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 | |
---|---|
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".
Generated from protobuf field string location = 1;
Returns | |
---|---|
Type | Description |
string |
setLocation
The location of the serving resources, e.g. "us-central1".
Generated from protobuf field string location = 1;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getType
The type of replica.
Generated from protobuf field .google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType type = 2;
Returns | |
---|---|
Type | Description |
int |
setType
The type of replica.
Generated from protobuf field .google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType type = 2;
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.
Generated from protobuf field bool default_leader_location = 3;
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.
Generated from protobuf field bool default_leader_location = 3;
Parameter | |
---|---|
Name | Description |
var |
bool
|
Returns | |
---|---|
Type | Description |
$this |