Package com.google.cloud.gkebackup.v1
Enum VolumeBackup.State
- java.lang.Object
-
- java.lang.Enum<VolumeBackup.State>
-
- com.google.cloud.gkebackup.v1.VolumeBackup.State
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<VolumeBackup.State>
- Enclosing class:
- VolumeBackup
public static enum VolumeBackup.State extends Enum<VolumeBackup.State> implements com.google.protobuf.ProtocolMessageEnum
The current state of a VolumeBackup
Protobuf enumgoogle.cloud.gkebackup.v1.VolumeBackup.State
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CREATINGA volume for the backup was identified and backup process is about to start.DELETINGThis VolumeBackup resource (and its associated artifacts) is in the process of being deleted.FAILEDThe volume backup operation has failed.SNAPSHOTTINGThe volume backup operation has begun and is in the initial "snapshot" phase of the process.STATE_UNSPECIFIEDThis is an illegal state and should not be encountered.SUCCEEDEDThe volume backup operation has completed successfully.UNRECOGNIZEDUPLOADINGThe snapshot phase of the volume backup operation has completed and the snapshot is now being uploaded to backup storage.
-
Field Summary
Fields Modifier and Type Field Description static intCREATING_VALUEA volume for the backup was identified and backup process is about to start.static intDELETING_VALUEThis VolumeBackup resource (and its associated artifacts) is in the process of being deleted.static intFAILED_VALUEThe volume backup operation has failed.static intSNAPSHOTTING_VALUEThe volume backup operation has begun and is in the initial "snapshot" phase of the process.static intSTATE_UNSPECIFIED_VALUEThis is an illegal state and should not be encountered.static intSUCCEEDED_VALUEThe volume backup operation has completed successfully.static intUPLOADING_VALUEThe snapshot phase of the volume backup operation has completed and the snapshot is now being uploaded to backup storage.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static VolumeBackup.StateforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<VolumeBackup.State>internalGetValueMap()static VolumeBackup.StatevalueOf(int value)Deprecated.static VolumeBackup.StatevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static VolumeBackup.StatevalueOf(String name)Returns the enum constant of this type with the specified name.static VolumeBackup.State[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STATE_UNSPECIFIED
public static final VolumeBackup.State STATE_UNSPECIFIED
This is an illegal state and should not be encountered.
STATE_UNSPECIFIED = 0;
-
CREATING
public static final VolumeBackup.State CREATING
A volume for the backup was identified and backup process is about to start.
CREATING = 1;
-
SNAPSHOTTING
public static final VolumeBackup.State SNAPSHOTTING
The volume backup operation has begun and is in the initial "snapshot" phase of the process. Any defined ProtectedApplication "pre" hooks will be executed before entering this state and "post" hooks will be executed upon leaving this state.
SNAPSHOTTING = 2;
-
UPLOADING
public static final VolumeBackup.State UPLOADING
The snapshot phase of the volume backup operation has completed and the snapshot is now being uploaded to backup storage.
UPLOADING = 3;
-
SUCCEEDED
public static final VolumeBackup.State SUCCEEDED
The volume backup operation has completed successfully.
SUCCEEDED = 4;
-
FAILED
public static final VolumeBackup.State FAILED
The volume backup operation has failed.
FAILED = 5;
-
DELETING
public static final VolumeBackup.State DELETING
This VolumeBackup resource (and its associated artifacts) is in the process of being deleted.
DELETING = 6;
-
UNRECOGNIZED
public static final VolumeBackup.State UNRECOGNIZED
-
-
Field Detail
-
STATE_UNSPECIFIED_VALUE
public static final int STATE_UNSPECIFIED_VALUE
This is an illegal state and should not be encountered.
STATE_UNSPECIFIED = 0;- See Also:
- Constant Field Values
-
CREATING_VALUE
public static final int CREATING_VALUE
A volume for the backup was identified and backup process is about to start.
CREATING = 1;- See Also:
- Constant Field Values
-
SNAPSHOTTING_VALUE
public static final int SNAPSHOTTING_VALUE
The volume backup operation has begun and is in the initial "snapshot" phase of the process. Any defined ProtectedApplication "pre" hooks will be executed before entering this state and "post" hooks will be executed upon leaving this state.
SNAPSHOTTING = 2;- See Also:
- Constant Field Values
-
UPLOADING_VALUE
public static final int UPLOADING_VALUE
The snapshot phase of the volume backup operation has completed and the snapshot is now being uploaded to backup storage.
UPLOADING = 3;- See Also:
- Constant Field Values
-
SUCCEEDED_VALUE
public static final int SUCCEEDED_VALUE
The volume backup operation has completed successfully.
SUCCEEDED = 4;- See Also:
- Constant Field Values
-
FAILED_VALUE
public static final int FAILED_VALUE
The volume backup operation has failed.
FAILED = 5;- See Also:
- Constant Field Values
-
DELETING_VALUE
public static final int DELETING_VALUE
This VolumeBackup resource (and its associated artifacts) is in the process of being deleted.
DELETING = 6;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static VolumeBackup.State[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (VolumeBackup.State c : VolumeBackup.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VolumeBackup.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 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 public static VolumeBackup.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 nameNullPointerException- if the argument is null
-
forNumber
public static VolumeBackup.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<VolumeBackup.State> 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 VolumeBackup.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 nameNullPointerException- if the argument is null
-
-