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 enum
google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFor each PVC to be restored, create PVC without any particular action to restore data.For each PVC to be restored, create a new underlying volume and PV from the corresponding VolumeBackup contained within the Backup.For each PVC to be restored, attempt to reuse the original PV contained in the Backup (with its original underlying volume).Unspecified (illegal). -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intFor each PVC to be restored, create PVC without any particular action to restore data.static final intFor each PVC to be restored, create a new underlying volume and PV from the corresponding VolumeBackup contained within the Backup.static final intFor each PVC to be restored, attempt to reuse the original PV contained in the Backup (with its original underlying volume).static final intUnspecified (illegal). -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<RestoreConfig.VolumeDataRestorePolicy>valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.Returns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED
Unspecified (illegal).
VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED = 0; -
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
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
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
-
-
Field Details
-
VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED_VALUE
public static final int VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED_VALUEUnspecified (illegal).
VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED = 0;- See Also:
-
RESTORE_VOLUME_DATA_FROM_BACKUP_VALUE
public static final int RESTORE_VOLUME_DATA_FROM_BACKUP_VALUEFor 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:
-
REUSE_VOLUME_HANDLE_FROM_BACKUP_VALUE
public static final int REUSE_VOLUME_HANDLE_FROM_BACKUP_VALUEFor 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:
-
NO_VOLUME_DATA_RESTORATION_VALUE
public static final int NO_VOLUME_DATA_RESTORATION_VALUEFor 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:
-
-
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<RestoreConfig.VolumeDataRestorePolicy> 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 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
-