Package com.google.cloud.alloydb.v1beta
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 Summary
Enum ConstantsEnum ConstantDescriptionPre-upgrade custom checks, not covered by pg_upgrade.Cleanup.Pre-upgrade pg_upgrade checks.Clone the original cluster.Upgrade the primary instance(downtime).This stage is read pool upgrade.Rollback in case of critical failures.Unspecified stage. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intPre-upgrade custom checks, not covered by pg_upgrade.static final intCleanup.static final intPre-upgrade pg_upgrade checks.static final intClone the original cluster.static final intUpgrade the primary instance(downtime).static final intThis stage is read pool upgrade.static final intRollback in case of critical failures.static final intUnspecified stage. -
Method Summary
Modifier and TypeMethodDescriptionstatic UpgradeClusterResponse.StageforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<UpgradeClusterResponse.Stage>static UpgradeClusterResponse.StagevalueOf(int value) Deprecated.static UpgradeClusterResponse.StagevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static UpgradeClusterResponse.StageReturns the enum constant of this type with the specified name.static UpgradeClusterResponse.Stage[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
STAGE_UNSPECIFIED
Unspecified stage.
STAGE_UNSPECIFIED = 0; -
ALLOYDB_PRECHECK
Pre-upgrade custom checks, not covered by pg_upgrade.
ALLOYDB_PRECHECK = 1; -
PG_UPGRADE_CHECK
Pre-upgrade pg_upgrade checks.
PG_UPGRADE_CHECK = 2; -
PREPARE_FOR_UPGRADE
Clone the original cluster.
PREPARE_FOR_UPGRADE = 5; -
PRIMARY_INSTANCE_UPGRADE
Upgrade the primary instance(downtime).
PRIMARY_INSTANCE_UPGRADE = 3; -
READ_POOL_INSTANCES_UPGRADE
This stage is read pool upgrade.
READ_POOL_INSTANCES_UPGRADE = 4; -
ROLLBACK
Rollback in case of critical failures.
ROLLBACK = 6; -
CLEANUP
Cleanup.
CLEANUP = 7; -
UNRECOGNIZED
-
-
Field Details
-
STAGE_UNSPECIFIED_VALUE
public static final int STAGE_UNSPECIFIED_VALUEUnspecified stage.
STAGE_UNSPECIFIED = 0;- See Also:
-
ALLOYDB_PRECHECK_VALUE
public static final int ALLOYDB_PRECHECK_VALUEPre-upgrade custom checks, not covered by pg_upgrade.
ALLOYDB_PRECHECK = 1;- See Also:
-
PG_UPGRADE_CHECK_VALUE
public static final int PG_UPGRADE_CHECK_VALUEPre-upgrade pg_upgrade checks.
PG_UPGRADE_CHECK = 2;- See Also:
-
PREPARE_FOR_UPGRADE_VALUE
public static final int PREPARE_FOR_UPGRADE_VALUEClone the original cluster.
PREPARE_FOR_UPGRADE = 5;- See Also:
-
PRIMARY_INSTANCE_UPGRADE_VALUE
public static final int PRIMARY_INSTANCE_UPGRADE_VALUEUpgrade the primary instance(downtime).
PRIMARY_INSTANCE_UPGRADE = 3;- See Also:
-
READ_POOL_INSTANCES_UPGRADE_VALUE
public static final int READ_POOL_INSTANCES_UPGRADE_VALUEThis stage is read pool upgrade.
READ_POOL_INSTANCES_UPGRADE = 4;- See Also:
-
ROLLBACK_VALUE
public static final int ROLLBACK_VALUERollback in case of critical failures.
ROLLBACK = 6;- See Also:
-
CLEANUP_VALUE
public static final int CLEANUP_VALUECleanup.
CLEANUP = 7;- 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<UpgradeClusterResponse.Stage> 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 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 nameNullPointerException- if the argument is null
-