Package com.google.cloud.kms.v1
Enum CryptoKeyVersion.CryptoKeyVersionState
- java.lang.Object
-
- java.lang.Enum<CryptoKeyVersion.CryptoKeyVersionState>
-
- com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<CryptoKeyVersion.CryptoKeyVersionState>
- Enclosing class:
- CryptoKeyVersion
public static enum CryptoKeyVersion.CryptoKeyVersionState extends Enum<CryptoKeyVersion.CryptoKeyVersionState> implements com.google.protobuf.ProtocolMessageEnum
The state of a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion], indicating if it can be used.
Protobuf enumgoogle.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CRYPTO_KEY_VERSION_STATE_UNSPECIFIEDNot specified.DESTROY_SCHEDULEDThis version is scheduled for destruction, and will be destroyed soon.DESTROYEDThis version is destroyed, and the key material is no longer stored.DISABLEDThis version may not be used, but the key material is still available, and the version can be placed back into the [ENABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.ENABLED] state.ENABLEDThis version may be used for cryptographic operations.EXTERNAL_DESTRUCTION_FAILEDThis version was destroyed, and it may not be used or enabled again.GENERATION_FAILEDThis version was not generated successfully.IMPORT_FAILEDThis version was not imported successfully.PENDING_EXTERNAL_DESTRUCTIONThis version was destroyed, and it may not be used or enabled again.PENDING_GENERATIONThis version is still being generated.PENDING_IMPORTThis version is still being imported.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intCRYPTO_KEY_VERSION_STATE_UNSPECIFIED_VALUENot specified.static intDESTROY_SCHEDULED_VALUEThis version is scheduled for destruction, and will be destroyed soon.static intDESTROYED_VALUEThis version is destroyed, and the key material is no longer stored.static intDISABLED_VALUEThis version may not be used, but the key material is still available, and the version can be placed back into the [ENABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.ENABLED] state.static intENABLED_VALUEThis version may be used for cryptographic operations.static intEXTERNAL_DESTRUCTION_FAILED_VALUEThis version was destroyed, and it may not be used or enabled again.static intGENERATION_FAILED_VALUEThis version was not generated successfully.static intIMPORT_FAILED_VALUEThis version was not imported successfully.static intPENDING_EXTERNAL_DESTRUCTION_VALUEThis version was destroyed, and it may not be used or enabled again.static intPENDING_GENERATION_VALUEThis version is still being generated.static intPENDING_IMPORT_VALUEThis version is still being imported.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static CryptoKeyVersion.CryptoKeyVersionStateforNumber(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<CryptoKeyVersion.CryptoKeyVersionState>internalGetValueMap()static CryptoKeyVersion.CryptoKeyVersionStatevalueOf(int value)Deprecated.static CryptoKeyVersion.CryptoKeyVersionStatevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static CryptoKeyVersion.CryptoKeyVersionStatevalueOf(String name)Returns the enum constant of this type with the specified name.static CryptoKeyVersion.CryptoKeyVersionState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CRYPTO_KEY_VERSION_STATE_UNSPECIFIED
public static final CryptoKeyVersion.CryptoKeyVersionState CRYPTO_KEY_VERSION_STATE_UNSPECIFIED
Not specified.
CRYPTO_KEY_VERSION_STATE_UNSPECIFIED = 0;
-
PENDING_GENERATION
public static final CryptoKeyVersion.CryptoKeyVersionState PENDING_GENERATION
This version is still being generated. It may not be used, enabled, disabled, or destroyed yet. Cloud KMS will automatically mark this version [ENABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.ENABLED] as soon as the version is ready.
PENDING_GENERATION = 5;
-
ENABLED
public static final CryptoKeyVersion.CryptoKeyVersionState ENABLED
This version may be used for cryptographic operations.
ENABLED = 1;
-
DISABLED
public static final CryptoKeyVersion.CryptoKeyVersionState DISABLED
This version may not be used, but the key material is still available, and the version can be placed back into the [ENABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.ENABLED] state.
DISABLED = 2;
-
DESTROYED
public static final CryptoKeyVersion.CryptoKeyVersionState DESTROYED
This version is destroyed, and the key material is no longer stored. This version may only become [ENABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.ENABLED] again if this version is [reimport_eligible][google.cloud.kms.v1.CryptoKeyVersion.reimport_eligible] and the original key material is reimported with a call to [KeyManagementService.ImportCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.ImportCryptoKeyVersion].
DESTROYED = 3;
-
DESTROY_SCHEDULED
public static final CryptoKeyVersion.CryptoKeyVersionState DESTROY_SCHEDULED
This version is scheduled for destruction, and will be destroyed soon. Call [RestoreCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.RestoreCryptoKeyVersion] to put it back into the [DISABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DISABLED] state.
DESTROY_SCHEDULED = 4;
-
PENDING_IMPORT
public static final CryptoKeyVersion.CryptoKeyVersionState PENDING_IMPORT
This version is still being imported. It may not be used, enabled, disabled, or destroyed yet. Cloud KMS will automatically mark this version [ENABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.ENABLED] as soon as the version is ready.
PENDING_IMPORT = 6;
-
IMPORT_FAILED
public static final CryptoKeyVersion.CryptoKeyVersionState IMPORT_FAILED
This version was not imported successfully. It may not be used, enabled, disabled, or destroyed. The submitted key material has been discarded. Additional details can be found in [CryptoKeyVersion.import_failure_reason][google.cloud.kms.v1.CryptoKeyVersion.import_failure_reason].
IMPORT_FAILED = 7;
-
GENERATION_FAILED
public static final CryptoKeyVersion.CryptoKeyVersionState GENERATION_FAILED
This version was not generated successfully. It may not be used, enabled, disabled, or destroyed. Additional details can be found in [CryptoKeyVersion.generation_failure_reason][google.cloud.kms.v1.CryptoKeyVersion.generation_failure_reason].
GENERATION_FAILED = 8;
-
PENDING_EXTERNAL_DESTRUCTION
public static final CryptoKeyVersion.CryptoKeyVersionState PENDING_EXTERNAL_DESTRUCTION
This version was destroyed, and it may not be used or enabled again. Cloud KMS is waiting for the corresponding key material residing in an external key manager to be destroyed.
PENDING_EXTERNAL_DESTRUCTION = 9;
-
EXTERNAL_DESTRUCTION_FAILED
public static final CryptoKeyVersion.CryptoKeyVersionState EXTERNAL_DESTRUCTION_FAILED
This version was destroyed, and it may not be used or enabled again. However, Cloud KMS could not confirm that the corresponding key material residing in an external key manager was destroyed. Additional details can be found in [CryptoKeyVersion.external_destruction_failure_reason][google.cloud.kms.v1.CryptoKeyVersion.external_destruction_failure_reason].
EXTERNAL_DESTRUCTION_FAILED = 10;
-
UNRECOGNIZED
public static final CryptoKeyVersion.CryptoKeyVersionState UNRECOGNIZED
-
-
Field Detail
-
CRYPTO_KEY_VERSION_STATE_UNSPECIFIED_VALUE
public static final int CRYPTO_KEY_VERSION_STATE_UNSPECIFIED_VALUE
Not specified.
CRYPTO_KEY_VERSION_STATE_UNSPECIFIED = 0;- See Also:
- Constant Field Values
-
PENDING_GENERATION_VALUE
public static final int PENDING_GENERATION_VALUE
This version is still being generated. It may not be used, enabled, disabled, or destroyed yet. Cloud KMS will automatically mark this version [ENABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.ENABLED] as soon as the version is ready.
PENDING_GENERATION = 5;- See Also:
- Constant Field Values
-
ENABLED_VALUE
public static final int ENABLED_VALUE
This version may be used for cryptographic operations.
ENABLED = 1;- See Also:
- Constant Field Values
-
DISABLED_VALUE
public static final int DISABLED_VALUE
This version may not be used, but the key material is still available, and the version can be placed back into the [ENABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.ENABLED] state.
DISABLED = 2;- See Also:
- Constant Field Values
-
DESTROYED_VALUE
public static final int DESTROYED_VALUE
This version is destroyed, and the key material is no longer stored. This version may only become [ENABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.ENABLED] again if this version is [reimport_eligible][google.cloud.kms.v1.CryptoKeyVersion.reimport_eligible] and the original key material is reimported with a call to [KeyManagementService.ImportCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.ImportCryptoKeyVersion].
DESTROYED = 3;- See Also:
- Constant Field Values
-
DESTROY_SCHEDULED_VALUE
public static final int DESTROY_SCHEDULED_VALUE
This version is scheduled for destruction, and will be destroyed soon. Call [RestoreCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.RestoreCryptoKeyVersion] to put it back into the [DISABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DISABLED] state.
DESTROY_SCHEDULED = 4;- See Also:
- Constant Field Values
-
PENDING_IMPORT_VALUE
public static final int PENDING_IMPORT_VALUE
This version is still being imported. It may not be used, enabled, disabled, or destroyed yet. Cloud KMS will automatically mark this version [ENABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.ENABLED] as soon as the version is ready.
PENDING_IMPORT = 6;- See Also:
- Constant Field Values
-
IMPORT_FAILED_VALUE
public static final int IMPORT_FAILED_VALUE
This version was not imported successfully. It may not be used, enabled, disabled, or destroyed. The submitted key material has been discarded. Additional details can be found in [CryptoKeyVersion.import_failure_reason][google.cloud.kms.v1.CryptoKeyVersion.import_failure_reason].
IMPORT_FAILED = 7;- See Also:
- Constant Field Values
-
GENERATION_FAILED_VALUE
public static final int GENERATION_FAILED_VALUE
This version was not generated successfully. It may not be used, enabled, disabled, or destroyed. Additional details can be found in [CryptoKeyVersion.generation_failure_reason][google.cloud.kms.v1.CryptoKeyVersion.generation_failure_reason].
GENERATION_FAILED = 8;- See Also:
- Constant Field Values
-
PENDING_EXTERNAL_DESTRUCTION_VALUE
public static final int PENDING_EXTERNAL_DESTRUCTION_VALUE
This version was destroyed, and it may not be used or enabled again. Cloud KMS is waiting for the corresponding key material residing in an external key manager to be destroyed.
PENDING_EXTERNAL_DESTRUCTION = 9;- See Also:
- Constant Field Values
-
EXTERNAL_DESTRUCTION_FAILED_VALUE
public static final int EXTERNAL_DESTRUCTION_FAILED_VALUE
This version was destroyed, and it may not be used or enabled again. However, Cloud KMS could not confirm that the corresponding key material residing in an external key manager was destroyed. Additional details can be found in [CryptoKeyVersion.external_destruction_failure_reason][google.cloud.kms.v1.CryptoKeyVersion.external_destruction_failure_reason].
EXTERNAL_DESTRUCTION_FAILED = 10;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static CryptoKeyVersion.CryptoKeyVersionState[] 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 (CryptoKeyVersion.CryptoKeyVersionState c : CryptoKeyVersion.CryptoKeyVersionState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CryptoKeyVersion.CryptoKeyVersionState 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 CryptoKeyVersion.CryptoKeyVersionState 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 CryptoKeyVersion.CryptoKeyVersionState 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<CryptoKeyVersion.CryptoKeyVersionState> 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 CryptoKeyVersion.CryptoKeyVersionState 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
-
-