Package csi.v0
Enum Class Csi.SnapshotStatus.Type
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Csi.SnapshotStatus.Type>,Constable
- Enclosing class:
- csi.v0.Csi.SnapshotStatus
public static enum Csi.SnapshotStatus.Type
extends Enum<Csi.SnapshotStatus.Type>
implements com.google.protobuf.ProtocolMessageEnum
Protobuf enum
csi.v0.SnapshotStatus.Type-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn error occurred during the snapshot uploading process.A snapshot is ready for use.UNKNOWN = 0;A snapshot is cut and is now being uploaded. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAn error occurred during the snapshot uploading process.static final intA snapshot is ready for use.static final intUNKNOWN = 0;static final intA snapshot is cut and is now being uploaded. -
Method Summary
Modifier and TypeMethodDescriptionstatic Csi.SnapshotStatus.TypeforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<Csi.SnapshotStatus.Type>static Csi.SnapshotStatus.TypevalueOf(int value) Deprecated.static Csi.SnapshotStatus.TypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.static Csi.SnapshotStatus.TypeReturns the enum constant of this class with the specified name.static Csi.SnapshotStatus.Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
UNKNOWN = 0; -
READY
A snapshot is ready for use.
READY = 1; -
UPLOADING
A snapshot is cut and is now being uploaded. Some cloud providers and storage systems uploads the snapshot to the cloud after the snapshot is cut. During this phase, `thaw` can be done so the application can be running again if `freeze` was done before taking the snapshot.
UPLOADING = 2; -
ERROR_UPLOADING
An error occurred during the snapshot uploading process. This error status is specific for uploading because `CreateSnaphot` is a blocking call before the snapshot is cut and therefore it SHOULD NOT come back with an error status when an error occurs. Instead a gRPC error code SHALL be returned by `CreateSnapshot` when an error occurs before a snapshot is cut.
ERROR_UPLOADING = 3; -
UNRECOGNIZED
-
-
Field Details
-
UNKNOWN_VALUE
public static final int UNKNOWN_VALUEUNKNOWN = 0;- See Also:
-
READY_VALUE
public static final int READY_VALUEA snapshot is ready for use.
READY = 1;- See Also:
-
UPLOADING_VALUE
public static final int UPLOADING_VALUEA snapshot is cut and is now being uploaded. Some cloud providers and storage systems uploads the snapshot to the cloud after the snapshot is cut. During this phase, `thaw` can be done so the application can be running again if `freeze` was done before taking the snapshot.
UPLOADING = 2;- See Also:
-
ERROR_UPLOADING_VALUE
public static final int ERROR_UPLOADING_VALUEAn error occurred during the snapshot uploading process. This error status is specific for uploading because `CreateSnaphot` is a blocking call before the snapshot is cut and therefore it SHOULD NOT come back with an error status when an error occurs. Instead a gRPC error code SHALL be returned by `CreateSnapshot` when an error occurs before a snapshot is cut.
ERROR_UPLOADING = 3;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class 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 class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class 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<Csi.SnapshotStatus.Type> 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 Csi.SnapshotStatus.Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-