public enum ProtectionLevel extends Enum<ProtectionLevel> implements com.google.protobuf.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 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<ProtectionLevel> |
internalGetValueMap() |
static ProtectionLevel |
valueOf(com.google.protobuf.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 com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.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 com.google.protobuf.Internal.EnumLiteMap<ProtectionLevel> 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 ProtectionLevel valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.