Enum UpgradeClusterResponse.Stage

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

public static enum UpgradeClusterResponse.Stage extends Enum<UpgradeClusterResponse.Stage> implements com.google.protobuf.ProtocolMessageEnum
 Stage in the upgrade.
 
Protobuf enum google.cloud.alloydb.v1beta.UpgradeClusterResponse.Stage
  • Enum Constant Details

  • Field Details

    • STAGE_UNSPECIFIED_VALUE

      public static final int STAGE_UNSPECIFIED_VALUE
       Unspecified stage.
       
      STAGE_UNSPECIFIED = 0;
      See Also:
    • ALLOYDB_PRECHECK_VALUE

      public static final int ALLOYDB_PRECHECK_VALUE
       Pre-upgrade custom checks, not covered by pg_upgrade.
       
      ALLOYDB_PRECHECK = 1;
      See Also:
    • PG_UPGRADE_CHECK_VALUE

      public static final int PG_UPGRADE_CHECK_VALUE
       Pre-upgrade pg_upgrade checks.
       
      PG_UPGRADE_CHECK = 2;
      See Also:
    • PREPARE_FOR_UPGRADE_VALUE

      public static final int PREPARE_FOR_UPGRADE_VALUE
       Clone the original cluster.
       
      PREPARE_FOR_UPGRADE = 5;
      See Also:
    • PRIMARY_INSTANCE_UPGRADE_VALUE

      public static final int PRIMARY_INSTANCE_UPGRADE_VALUE
       Upgrade the primary instance(downtime).
       
      PRIMARY_INSTANCE_UPGRADE = 3;
      See Also:
    • READ_POOL_INSTANCES_UPGRADE_VALUE

      public static final int READ_POOL_INSTANCES_UPGRADE_VALUE
       This stage is read pool upgrade.
       
      READ_POOL_INSTANCES_UPGRADE = 4;
      See Also:
    • ROLLBACK_VALUE

      public static final int ROLLBACK_VALUE
       Rollback in case of critical failures.
       
      ROLLBACK = 6;
      See Also:
    • CLEANUP_VALUE

      public static final int CLEANUP_VALUE
       Cleanup.
       
      CLEANUP = 7;
      See Also:
  • Method Details

    • values

      public static UpgradeClusterResponse.Stage[] 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 UpgradeClusterResponse.Stage 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 UpgradeClusterResponse.Stage 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 UpgradeClusterResponse.Stage 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<UpgradeClusterResponse.Stage> 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 UpgradeClusterResponse.Stage 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