Enum CrossInstanceReplicationConfig.InstanceRole (0.10.0)

public enum CrossInstanceReplicationConfig.InstanceRole extends Enum<CrossInstanceReplicationConfig.InstanceRole> implements ProtocolMessageEnum

The role of the instance in cross instance replication.

Protobuf enum google.cloud.memorystore.v1.CrossInstanceReplicationConfig.InstanceRole

Implements

ProtocolMessageEnum

Static Fields

Name Description
INSTANCE_ROLE_UNSPECIFIED

instance role is not set. The behavior is equivalent to NONE.

INSTANCE_ROLE_UNSPECIFIED = 0;

INSTANCE_ROLE_UNSPECIFIED_VALUE

instance role is not set. The behavior is equivalent to NONE.

INSTANCE_ROLE_UNSPECIFIED = 0;

NONE

This instance does not participate in cross instance replication. It is an independent instance and does not replicate to or from any other instances.

NONE = 1;

NONE_VALUE

This instance does not participate in cross instance replication. It is an independent instance and does not replicate to or from any other instances.

NONE = 1;

PRIMARY

A instance that allows both reads and writes. Any data written to this instance is also replicated to the attached secondary instances.

PRIMARY = 2;

PRIMARY_VALUE

A instance that allows both reads and writes. Any data written to this instance is also replicated to the attached secondary instances.

PRIMARY = 2;

SECONDARY

A instance that allows only reads and replicates data from a primary instance.

SECONDARY = 3;

SECONDARY_VALUE

A instance that allows only reads and replicates data from a primary instance.

SECONDARY = 3;

UNRECOGNIZED

Static Methods

Name Description
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

Name Description
getDescriptorForType()
getNumber()
getValueDescriptor()