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
ProtocolMessageEnumStatic Fields |
|
---|---|
Name | Description |
INSTANCE_ROLE_UNSPECIFIED |
instance role is not set. The behavior is equivalent to NONE. |
INSTANCE_ROLE_UNSPECIFIED_VALUE |
instance role is not set. The behavior is equivalent to NONE. |
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_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. |
PRIMARY |
A instance that allows both reads and writes. Any data written to this instance is also replicated to the attached secondary instances. |
PRIMARY_VALUE |
A instance that allows both reads and writes. Any data written to this instance is also replicated to the attached secondary instances. |
SECONDARY |
A instance that allows only reads and replicates data from a primary instance. |
SECONDARY_VALUE |
A instance that allows only reads and replicates data from a primary instance. |
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() |