Cloud Spanner V1 Client - Class Type (1.88.0)

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

Indicates the type of replica.

Protobuf type google.spanner.v1.DirectedReadOptions.ReplicaSelection.Type

Namespace

Google \ Cloud \ Spanner \ V1 \ DirectedReadOptions \ ReplicaSelection

Methods

static::name

Parameter
Name Description
value mixed

static::value

Parameter
Name Description
name mixed

Constants

TYPE_UNSPECIFIED

Value: 0

Not specified.

Generated from protobuf enum TYPE_UNSPECIFIED = 0;

READ_WRITE

Value: 1

Read-write replicas support both reads and writes.

Generated from protobuf enum READ_WRITE = 1;

READ_ONLY

Value: 2

Read-only replicas only support reads (not writes).

Generated from protobuf enum READ_ONLY = 2;