public static enum TransferTypes.MetadataOptions.KmsKey extends Enum<TransferTypes.MetadataOptions.KmsKey> implements com.google.protobuf.ProtocolMessageEnum
Options for handling the KmsKey setting for Google Cloud Storage objects.Protobuf enum
google.storagetransfer.v1.MetadataOptions.KmsKey| Enum Constant and Description |
|---|
KMS_KEY_DESTINATION_BUCKET_DEFAULT
Use the destination bucket's default encryption settings.
|
KMS_KEY_PRESERVE
Preserve the object's original Cloud KMS customer-managed encryption key
(CMEK) if present.
|
KMS_KEY_UNSPECIFIED
KmsKey behavior is unspecified.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
KMS_KEY_DESTINATION_BUCKET_DEFAULT_VALUE
Use the destination bucket's default encryption settings.
|
static int |
KMS_KEY_PRESERVE_VALUE
Preserve the object's original Cloud KMS customer-managed encryption key
(CMEK) if present.
|
static int |
KMS_KEY_UNSPECIFIED_VALUE
KmsKey behavior is unspecified.
|
| Modifier and Type | Method and Description |
|---|---|
static TransferTypes.MetadataOptions.KmsKey |
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<TransferTypes.MetadataOptions.KmsKey> |
internalGetValueMap() |
static TransferTypes.MetadataOptions.KmsKey |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static TransferTypes.MetadataOptions.KmsKey |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static TransferTypes.MetadataOptions.KmsKey |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TransferTypes.MetadataOptions.KmsKey[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransferTypes.MetadataOptions.KmsKey KMS_KEY_UNSPECIFIED
KmsKey behavior is unspecified.
KMS_KEY_UNSPECIFIED = 0;public static final TransferTypes.MetadataOptions.KmsKey KMS_KEY_DESTINATION_BUCKET_DEFAULT
Use the destination bucket's default encryption settings.
KMS_KEY_DESTINATION_BUCKET_DEFAULT = 1;public static final TransferTypes.MetadataOptions.KmsKey KMS_KEY_PRESERVE
Preserve the object's original Cloud KMS customer-managed encryption key (CMEK) if present. Objects that do not use a Cloud KMS encryption key will be encrypted using the destination bucket's encryption settings.
KMS_KEY_PRESERVE = 2;public static final TransferTypes.MetadataOptions.KmsKey UNRECOGNIZED
public static final int KMS_KEY_UNSPECIFIED_VALUE
KmsKey behavior is unspecified.
KMS_KEY_UNSPECIFIED = 0;public static final int KMS_KEY_DESTINATION_BUCKET_DEFAULT_VALUE
Use the destination bucket's default encryption settings.
KMS_KEY_DESTINATION_BUCKET_DEFAULT = 1;public static final int KMS_KEY_PRESERVE_VALUE
Preserve the object's original Cloud KMS customer-managed encryption key (CMEK) if present. Objects that do not use a Cloud KMS encryption key will be encrypted using the destination bucket's encryption settings.
KMS_KEY_PRESERVE = 2;public static TransferTypes.MetadataOptions.KmsKey[] values()
for (TransferTypes.MetadataOptions.KmsKey c : TransferTypes.MetadataOptions.KmsKey.values()) System.out.println(c);
public static TransferTypes.MetadataOptions.KmsKey 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 TransferTypes.MetadataOptions.KmsKey valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static TransferTypes.MetadataOptions.KmsKey forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<TransferTypes.MetadataOptions.KmsKey> 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 TransferTypes.MetadataOptions.KmsKey valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.