public static enum CryptoKeyVersion.CryptoKeyVersionState extends Enum<CryptoKeyVersion.CryptoKeyVersionState> implements 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.
|
IMPORT_FAILED
This version was not imported successfully.
|
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 |
IMPORT_FAILED_VALUE
This version was not imported successfully.
|
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 Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<CryptoKeyVersion.CryptoKeyVersionState> |
internalGetValueMap() |
static CryptoKeyVersion.CryptoKeyVersionState |
valueOf(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 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 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 Internal.EnumLite
getNumber
in interface 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 Internal.EnumLiteMap<CryptoKeyVersion.CryptoKeyVersionState> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static CryptoKeyVersion.CryptoKeyVersionState valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.