Cloud Spanner V1 Client - Class ExcludeReplicas (1.67.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
NameDescription
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
TypeDescription
Google\Protobuf\Internal\RepeatedField

setReplicaSelections

The directed read replica selector.

Parameter
NameDescription
var array<Google\Cloud\Spanner\V1\DirectedReadOptions\ReplicaSelection>
Returns
TypeDescription
$this