Cloud Spanner V1 Client - Class Role (2.1.0)

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

Indicates the role of the tablet.

Protobuf type google.spanner.v1.Tablet.Role

Namespace

Google \ Cloud \ Spanner \ V1 \ Tablet

Methods

static::name

Parameter
Name Description
value mixed

static::value

Parameter
Name Description
name mixed

Constants

ROLE_UNSPECIFIED

Value: 0

Not specified.

Generated from protobuf enum ROLE_UNSPECIFIED = 0;

READ_WRITE

Value: 1

The tablet can perform reads and (if elected leader) writes.

Generated from protobuf enum READ_WRITE = 1;

READ_ONLY

Value: 2

The tablet can only perform reads.

Generated from protobuf enum READ_ONLY = 2;