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 Details

    • QUORUM_TYPE_UNSPECIFIED

      public static final InstanceConfig.QuorumType QUORUM_TYPE_UNSPECIFIED
       Quorum type not specified.
       
      QUORUM_TYPE_UNSPECIFIED = 0;
    • REGION

      public static final InstanceConfig.QuorumType REGION
       An instance configuration tagged with `REGION` quorum type forms a write
       quorum in a single region.
       
      REGION = 1;
    • DUAL_REGION

      public static final InstanceConfig.QuorumType 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

      public static final InstanceConfig.QuorumType 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

      public static final InstanceConfig.QuorumType UNRECOGNIZED
  • Field Details

    • QUORUM_TYPE_UNSPECIFIED_VALUE

      public static final int QUORUM_TYPE_UNSPECIFIED_VALUE
       Quorum type not specified.
       
      QUORUM_TYPE_UNSPECIFIED = 0;
      See Also:
    • REGION_VALUE

      public static final int REGION_VALUE
       An 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_VALUE
       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;
      See Also:
    • MULTI_REGION_VALUE

      public static final int MULTI_REGION_VALUE
       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;
      See Also:
  • Method Details

    • values

      public static InstanceConfig.QuorumType[] 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

      public static InstanceConfig.QuorumType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static InstanceConfig.QuorumType valueOf(int value)
      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 name
      NullPointerException - if the argument is null
    • forNumber

      public static InstanceConfig.QuorumType forNumber(int value)
      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:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.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 name
      NullPointerException - if the argument is null