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 enum
google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState| Enum Constant and Description |
|---|
CRYPTO_KEY_VERSION_STATE_UNSPECIFIED
Not specified.
|
DESTROY_SCHEDULED
This version is scheduled for destruction, and will be destroyed soon.
|
DESTROYED
This version is destroyed, and the key material is no longer stored.
|
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.
|
ENABLED
This version may be used for cryptographic operations.
|
EXTERNAL_DESTRUCTION_FAILED
This version was destroyed, and it may not be used or enabled again.
|
GENERATION_FAILED
This version was not generated successfully.
|
IMPORT_FAILED
This version was not imported successfully.
|
PENDING_EXTERNAL_DESTRUCTION
This version was destroyed, and it may not be used or enabled again.
|
PENDING_GENERATION
This version is still being generated.
|
PENDING_IMPORT
This version is still being imported.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
CRYPTO_KEY_VERSION_STATE_UNSPECIFIED_VALUE
Not specified.
|
static int |
DESTROY_SCHEDULED_VALUE
This version is scheduled for destruction, and will be destroyed soon.
|
static int |
DESTROYED_VALUE
This version is destroyed, and the key material is no longer stored.
|
static 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.
|
static int |
ENABLED_VALUE
This version may be used for cryptographic operations.
|
static int |
EXTERNAL_DESTRUCTION_FAILED_VALUE
This version was destroyed, and it may not be used or enabled again.
|
static int |
GENERATION_FAILED_VALUE
This version was not generated successfully.
|
static int |
IMPORT_FAILED_VALUE
This version was not imported successfully.
|
static int |
PENDING_EXTERNAL_DESTRUCTION_VALUE
This version was destroyed, and it may not be used or enabled again.
|
static int |
PENDING_GENERATION_VALUE
This version is still being generated.
|
static int |
PENDING_IMPORT_VALUE
This version is still being imported.
|
| Modifier and Type | Method and Description |
|---|---|
static CryptoKeyVersion.CryptoKeyVersionState |
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<CryptoKeyVersion.CryptoKeyVersionState> |
internalGetValueMap() |
static CryptoKeyVersion.CryptoKeyVersionState |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static CryptoKeyVersion.CryptoKeyVersionState |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static CryptoKeyVersion.CryptoKeyVersionState |
valueOf(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.
|
public static final CryptoKeyVersion.CryptoKeyVersionState CRYPTO_KEY_VERSION_STATE_UNSPECIFIED
Not specified.
CRYPTO_KEY_VERSION_STATE_UNSPECIFIED = 0;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;public static final CryptoKeyVersion.CryptoKeyVersionState ENABLED
This version may be used for cryptographic operations.
ENABLED = 1;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;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;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;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;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;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;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;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;public static final CryptoKeyVersion.CryptoKeyVersionState UNRECOGNIZED
public static final int CRYPTO_KEY_VERSION_STATE_UNSPECIFIED_VALUE
Not specified.
CRYPTO_KEY_VERSION_STATE_UNSPECIFIED = 0;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;public static final int ENABLED_VALUE
This version may be used for cryptographic operations.
ENABLED = 1;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;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;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;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;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;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;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;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;public static CryptoKeyVersion.CryptoKeyVersionState[] values()
for (CryptoKeyVersion.CryptoKeyVersionState c : CryptoKeyVersion.CryptoKeyVersionState.values()) System.out.println(c);
public static CryptoKeyVersion.CryptoKeyVersionState valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static CryptoKeyVersion.CryptoKeyVersionState valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static CryptoKeyVersion.CryptoKeyVersionState forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<CryptoKeyVersion.CryptoKeyVersionState> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static CryptoKeyVersion.CryptoKeyVersionState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024 Google LLC. All rights reserved.