Enum PromoteClusterStatus.State

java.lang.Object
java.lang.Enum<PromoteClusterStatus.State>
com.google.cloud.alloydb.v1beta.PromoteClusterStatus.State
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<PromoteClusterStatus.State>
Enclosing class:
PromoteClusterStatus

public static enum PromoteClusterStatus.State extends Enum<PromoteClusterStatus.State> implements com.google.protobuf.ProtocolMessageEnum
 State contains all valid states of the database during promote cluster
 operation. This is used for status reporting through the LRO metadata.
 
Protobuf enum google.cloud.alloydb.v1beta.PromoteClusterStatus.State
  • Enum Constant Details

    • STATE_UNSPECIFIED

      public static final PromoteClusterStatus.State STATE_UNSPECIFIED
       The state of the database is unknown.
       
      STATE_UNSPECIFIED = 0;
    • PROMOTE_CLUSTER_AVAILABLE_FOR_READ

      public static final PromoteClusterStatus.State PROMOTE_CLUSTER_AVAILABLE_FOR_READ
       The database is only available for read.
       
      PROMOTE_CLUSTER_AVAILABLE_FOR_READ = 1;
    • PROMOTE_CLUSTER_AVAILABLE_FOR_WRITE

      public static final PromoteClusterStatus.State PROMOTE_CLUSTER_AVAILABLE_FOR_WRITE
       The database is available for both read and write. The promote operation
       is near completion.
       
      PROMOTE_CLUSTER_AVAILABLE_FOR_WRITE = 2;
    • PROMOTE_CLUSTER_COMPLETED

      public static final PromoteClusterStatus.State PROMOTE_CLUSTER_COMPLETED
       The promote operation is completed and the database is available for
       write.
       
      PROMOTE_CLUSTER_COMPLETED = 3;
    • UNRECOGNIZED

      public static final PromoteClusterStatus.State UNRECOGNIZED
  • Field Details

    • STATE_UNSPECIFIED_VALUE

      public static final int STATE_UNSPECIFIED_VALUE
       The state of the database is unknown.
       
      STATE_UNSPECIFIED = 0;
      See Also:
    • PROMOTE_CLUSTER_AVAILABLE_FOR_READ_VALUE

      public static final int PROMOTE_CLUSTER_AVAILABLE_FOR_READ_VALUE
       The database is only available for read.
       
      PROMOTE_CLUSTER_AVAILABLE_FOR_READ = 1;
      See Also:
    • PROMOTE_CLUSTER_AVAILABLE_FOR_WRITE_VALUE

      public static final int PROMOTE_CLUSTER_AVAILABLE_FOR_WRITE_VALUE
       The database is available for both read and write. The promote operation
       is near completion.
       
      PROMOTE_CLUSTER_AVAILABLE_FOR_WRITE = 2;
      See Also:
    • PROMOTE_CLUSTER_COMPLETED_VALUE

      public static final int PROMOTE_CLUSTER_COMPLETED_VALUE
       The promote operation is completed and the database is available for
       write.
       
      PROMOTE_CLUSTER_COMPLETED = 3;
      See Also:
  • Method Details

    • values

      public static PromoteClusterStatus.State[] 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 PromoteClusterStatus.State 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 PromoteClusterStatus.State 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 PromoteClusterStatus.State 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<PromoteClusterStatus.State> 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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static PromoteClusterStatus.State 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