Enum InstanceConfig.QuorumType
java.lang.Object
java.lang.Enum<InstanceConfig.QuorumType>
com.google.spanner.admin.instance.v1.InstanceConfig.QuorumType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<InstanceConfig.QuorumType>
- Enclosing class:
- InstanceConfig
public static enum InstanceConfig.QuorumType
extends Enum<InstanceConfig.QuorumType>
implements com.google.protobuf.ProtocolMessageEnum
Indicates the quorum type of this instance configuration.Protobuf enum
google.spanner.admin.instance.v1.InstanceConfig.QuorumType-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn instance configuration tagged with the `DUAL_REGION` quorum type forms a write quorum with exactly two read-write regions in a multi-region configuration.An instance configuration tagged with the `MULTI_REGION` quorum type forms a write quorum from replicas that are spread across more than one region in a multi-region configuration.Quorum type not specified.An instance configuration tagged with `REGION` quorum type forms a write quorum in a single region. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAn instance configuration tagged with the `DUAL_REGION` quorum type forms a write quorum with exactly two read-write regions in a multi-region configuration.static final intAn instance configuration tagged with the `MULTI_REGION` quorum type forms a write quorum from replicas that are spread across more than one region in a multi-region configuration.static final intQuorum type not specified.static final intAn instance configuration tagged with `REGION` quorum type forms a write quorum in a single region. -
Method Summary
Modifier and TypeMethodDescriptionstatic InstanceConfig.QuorumTypeforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<InstanceConfig.QuorumType>static InstanceConfig.QuorumTypevalueOf(int value) Deprecated.static InstanceConfig.QuorumTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static InstanceConfig.QuorumTypeReturns the enum constant of this type with the specified name.static InstanceConfig.QuorumType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
QUORUM_TYPE_UNSPECIFIED
Quorum type not specified.
QUORUM_TYPE_UNSPECIFIED = 0; -
REGION
An instance configuration tagged with `REGION` quorum type forms a write quorum in a single region.
REGION = 1; -
DUAL_REGION
An instance configuration tagged with the `DUAL_REGION` quorum type forms a write quorum with exactly two read-write regions in a multi-region configuration. This instance configuration requires failover in the event of regional failures.
DUAL_REGION = 2; -
MULTI_REGION
An instance configuration tagged with the `MULTI_REGION` quorum type forms a write quorum from replicas that are spread across more than one region in a multi-region configuration.
MULTI_REGION = 3; -
UNRECOGNIZED
-
-
Field Details
-
QUORUM_TYPE_UNSPECIFIED_VALUE
public static final int QUORUM_TYPE_UNSPECIFIED_VALUEQuorum type not specified.
QUORUM_TYPE_UNSPECIFIED = 0;- See Also:
-
REGION_VALUE
public static final int REGION_VALUEAn instance configuration tagged with `REGION` quorum type forms a write quorum in a single region.
REGION = 1;- See Also:
-
DUAL_REGION_VALUE
public static final int DUAL_REGION_VALUEAn instance configuration tagged with the `DUAL_REGION` quorum type forms a write quorum with exactly two read-write regions in a multi-region configuration. This instance configuration requires failover in the event of regional failures.
DUAL_REGION = 2;- See Also:
-
MULTI_REGION_VALUE
public static final int MULTI_REGION_VALUEAn instance configuration tagged with the `MULTI_REGION` quorum type forms a write quorum from replicas that are spread across more than one region in a multi-region configuration.
MULTI_REGION = 3;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<InstanceConfig.QuorumType> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static InstanceConfig.QuorumType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-