public enum ProtectionLevel extends Enum<ProtectionLevel> implements ProtocolMessageEnum
[ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] specifies how cryptographic operations are performed. For more information, see [Protection levels] (https://cloud.google.com/kms/docs/algorithms#protection_levels).Protobuf enum
google.cloud.kms.v1.ProtectionLevel
Enum Constant and Description |
---|
EXTERNAL
Crypto operations are performed by an external key manager.
|
EXTERNAL_VPC
Crypto operations are performed in an EKM-over-VPC backend.
|
HSM
Crypto operations are performed in a Hardware Security Module.
|
PROTECTION_LEVEL_UNSPECIFIED
Not specified.
|
SOFTWARE
Crypto operations are performed in software.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
EXTERNAL_VALUE
Crypto operations are performed by an external key manager.
|
static int |
EXTERNAL_VPC_VALUE
Crypto operations are performed in an EKM-over-VPC backend.
|
static int |
HSM_VALUE
Crypto operations are performed in a Hardware Security Module.
|
static int |
PROTECTION_LEVEL_UNSPECIFIED_VALUE
Not specified.
|
static int |
SOFTWARE_VALUE
Crypto operations are performed in software.
|
Modifier and Type | Method and Description |
---|---|
static ProtectionLevel |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<ProtectionLevel> |
internalGetValueMap() |
static ProtectionLevel |
valueOf(Descriptors.EnumValueDescriptor desc) |
static ProtectionLevel |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static ProtectionLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ProtectionLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProtectionLevel PROTECTION_LEVEL_UNSPECIFIED
Not specified.
PROTECTION_LEVEL_UNSPECIFIED = 0;
public static final ProtectionLevel SOFTWARE
Crypto operations are performed in software.
SOFTWARE = 1;
public static final ProtectionLevel HSM
Crypto operations are performed in a Hardware Security Module.
HSM = 2;
public static final ProtectionLevel EXTERNAL
Crypto operations are performed by an external key manager.
EXTERNAL = 3;
public static final ProtectionLevel EXTERNAL_VPC
Crypto operations are performed in an EKM-over-VPC backend.
EXTERNAL_VPC = 4;
public static final ProtectionLevel UNRECOGNIZED
public static final int PROTECTION_LEVEL_UNSPECIFIED_VALUE
Not specified.
PROTECTION_LEVEL_UNSPECIFIED = 0;
public static final int SOFTWARE_VALUE
Crypto operations are performed in software.
SOFTWARE = 1;
public static final int HSM_VALUE
Crypto operations are performed in a Hardware Security Module.
HSM = 2;
public static final int EXTERNAL_VALUE
Crypto operations are performed by an external key manager.
EXTERNAL = 3;
public static final int EXTERNAL_VPC_VALUE
Crypto operations are performed in an EKM-over-VPC backend.
EXTERNAL_VPC = 4;
public static ProtectionLevel[] values()
for (ProtectionLevel c : ProtectionLevel.values()) System.out.println(c);
public static ProtectionLevel 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 ProtectionLevel valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static ProtectionLevel forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static Internal.EnumLiteMap<ProtectionLevel> 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 ProtectionLevel valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.