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 Details

    • 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 Details

    • 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:
    • 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:
    • 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:
    • 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:
  • Method Details

    • values

      public static RestoreConfig.VolumeDataRestorePolicy[] 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

      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 name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.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 name
      NullPointerException - 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 interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.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 name
      NullPointerException - if the argument is null