Cloud Spanner V1 Client - Class ExcludeReplicas (1.87.0)

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

An ExcludeReplicas contains a repeated set of ReplicaSelection that should be excluded from serving requests.

Generated from protobuf message google.spanner.v1.DirectedReadOptions.ExcludeReplicas

Namespace

Google \ Cloud \ Spanner \ V1 \ DirectedReadOptions

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ replica_selections array<Google\Cloud\Spanner\V1\DirectedReadOptions\ReplicaSelection>

The directed read replica selector.

getReplicaSelections

The directed read replica selector.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setReplicaSelections

The directed read replica selector.

Parameter
Name Description
var array<Google\Cloud\Spanner\V1\DirectedReadOptions\ReplicaSelection>
Returns
Type Description
$this