Package com.google.cloud.gkebackup.v1
Enum RestoreConfig.VolumeDataRestorePolicy
- java.lang.Object
-
- java.lang.Enum<RestoreConfig.VolumeDataRestorePolicy>
-
- com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<RestoreConfig.VolumeDataRestorePolicy>
- Enclosing class:
- RestoreConfig
public static enum RestoreConfig.VolumeDataRestorePolicy extends Enum<RestoreConfig.VolumeDataRestorePolicy> implements com.google.protobuf.ProtocolMessageEnum
Defines how volume data should be restored.
Protobuf enumgoogle.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NO_VOLUME_DATA_RESTORATION
For each PVC to be restored, create PVC without any particular action to restore data.RESTORE_VOLUME_DATA_FROM_BACKUP
For each PVC to be restored, create a new underlying volume and PV from the corresponding VolumeBackup contained within the Backup.REUSE_VOLUME_HANDLE_FROM_BACKUP
For each PVC to be restored, attempt to reuse the original PV contained in the Backup (with its original underlying volume).UNRECOGNIZED
VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED
Unspecified (illegal).
-
Field Summary
Fields Modifier and Type Field Description static int
NO_VOLUME_DATA_RESTORATION_VALUE
For each PVC to be restored, create PVC without any particular action to restore data.static int
RESTORE_VOLUME_DATA_FROM_BACKUP_VALUE
For each PVC to be restored, create a new underlying volume and PV from the corresponding VolumeBackup contained within the Backup.static int
REUSE_VOLUME_HANDLE_FROM_BACKUP_VALUE
For each PVC to be restored, attempt to reuse the original PV contained in the Backup (with its original underlying volume).static int
VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED_VALUE
Unspecified (illegal).
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static RestoreConfig.VolumeDataRestorePolicy
forNumber(int value)
static com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor()
com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType()
int
getNumber()
com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor()
static com.google.protobuf.Internal.EnumLiteMap<RestoreConfig.VolumeDataRestorePolicy>
internalGetValueMap()
static RestoreConfig.VolumeDataRestorePolicy
valueOf(int value)
Deprecated.static RestoreConfig.VolumeDataRestorePolicy
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static RestoreConfig.VolumeDataRestorePolicy
valueOf(String name)
Returns the enum constant of this type with the specified name.static RestoreConfig.VolumeDataRestorePolicy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED
public static final RestoreConfig.VolumeDataRestorePolicy VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED
Unspecified (illegal).
VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED = 0;
-
RESTORE_VOLUME_DATA_FROM_BACKUP
public static final RestoreConfig.VolumeDataRestorePolicy RESTORE_VOLUME_DATA_FROM_BACKUP
For each PVC to be restored, create a new underlying volume and PV from the corresponding VolumeBackup contained within the Backup.
RESTORE_VOLUME_DATA_FROM_BACKUP = 1;
-
REUSE_VOLUME_HANDLE_FROM_BACKUP
public static final RestoreConfig.VolumeDataRestorePolicy REUSE_VOLUME_HANDLE_FROM_BACKUP
For each PVC to be restored, attempt to reuse the original PV contained in the Backup (with its original underlying volume). This option is likely only usable when restoring a workload to its original cluster.
REUSE_VOLUME_HANDLE_FROM_BACKUP = 2;
-
NO_VOLUME_DATA_RESTORATION
public static final RestoreConfig.VolumeDataRestorePolicy NO_VOLUME_DATA_RESTORATION
For each PVC to be restored, create PVC without any particular action to restore data. In this case, the normal Kubernetes provisioning logic would kick in, and this would likely result in either dynamically provisioning blank PVs or binding to statically provisioned PVs.
NO_VOLUME_DATA_RESTORATION = 3;
-
UNRECOGNIZED
public static final RestoreConfig.VolumeDataRestorePolicy UNRECOGNIZED
-
-
Field Detail
-
VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED_VALUE
public static final int VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED_VALUE
Unspecified (illegal).
VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED = 0;
- See Also:
- Constant Field Values
-
RESTORE_VOLUME_DATA_FROM_BACKUP_VALUE
public static final int RESTORE_VOLUME_DATA_FROM_BACKUP_VALUE
For each PVC to be restored, create a new underlying volume and PV from the corresponding VolumeBackup contained within the Backup.
RESTORE_VOLUME_DATA_FROM_BACKUP = 1;
- See Also:
- Constant Field Values
-
REUSE_VOLUME_HANDLE_FROM_BACKUP_VALUE
public static final int REUSE_VOLUME_HANDLE_FROM_BACKUP_VALUE
For each PVC to be restored, attempt to reuse the original PV contained in the Backup (with its original underlying volume). This option is likely only usable when restoring a workload to its original cluster.
REUSE_VOLUME_HANDLE_FROM_BACKUP = 2;
- See Also:
- Constant Field Values
-
NO_VOLUME_DATA_RESTORATION_VALUE
public static final int NO_VOLUME_DATA_RESTORATION_VALUE
For each PVC to be restored, create PVC without any particular action to restore data. In this case, the normal Kubernetes provisioning logic would kick in, and this would likely result in either dynamically provisioning blank PVs or binding to statically provisioned PVs.
NO_VOLUME_DATA_RESTORATION = 3;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static RestoreConfig.VolumeDataRestorePolicy[] 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 (RestoreConfig.VolumeDataRestorePolicy c : RestoreConfig.VolumeDataRestorePolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RestoreConfig.VolumeDataRestorePolicy 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:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static RestoreConfig.VolumeDataRestorePolicy 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 RestoreConfig.VolumeDataRestorePolicy 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<RestoreConfig.VolumeDataRestorePolicy> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static RestoreConfig.VolumeDataRestorePolicy 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
-
-