public static final class CryptoKey.Builder extends GeneratedMessageV3.Builder<CryptoKey.Builder> implements CryptoKeyOrBuilder
This is a data encryption key (DEK) (as opposed to
a key encryption key (KEK) stored by Cloud Key Management Service
(Cloud KMS).
When using Cloud KMS to wrap or unwrap a DEK, be sure to set an appropriate
IAM policy on the KEK to ensure an attacker cannot
unwrap the DEK.
Protobuf type google.privacy.dlp.v2.CryptoKey
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CryptoKey.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
Returns
buildPartial()
public CryptoKey buildPartial()
Returns
clear()
public CryptoKey.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public CryptoKey.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearKmsWrapped()
public CryptoKey.Builder clearKmsWrapped()
Key wrapped using Cloud KMS
.google.privacy.dlp.v2.KmsWrappedCryptoKey kms_wrapped = 3;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public CryptoKey.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearSource()
public CryptoKey.Builder clearSource()
Returns
clearTransient()
public CryptoKey.Builder clearTransient()
Transient crypto key
.google.privacy.dlp.v2.TransientCryptoKey transient = 1;
Returns
clearUnwrapped()
public CryptoKey.Builder clearUnwrapped()
Unwrapped crypto key
.google.privacy.dlp.v2.UnwrappedCryptoKey unwrapped = 2;
Returns
clone()
public CryptoKey.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public CryptoKey getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getKmsWrapped()
public KmsWrappedCryptoKey getKmsWrapped()
Key wrapped using Cloud KMS
.google.privacy.dlp.v2.KmsWrappedCryptoKey kms_wrapped = 3;
Returns
getKmsWrappedBuilder()
public KmsWrappedCryptoKey.Builder getKmsWrappedBuilder()
Key wrapped using Cloud KMS
.google.privacy.dlp.v2.KmsWrappedCryptoKey kms_wrapped = 3;
Returns
getKmsWrappedOrBuilder()
public KmsWrappedCryptoKeyOrBuilder getKmsWrappedOrBuilder()
Key wrapped using Cloud KMS
.google.privacy.dlp.v2.KmsWrappedCryptoKey kms_wrapped = 3;
Returns
getSourceCase()
public CryptoKey.SourceCase getSourceCase()
Returns
getTransient()
public TransientCryptoKey getTransient()
Transient crypto key
.google.privacy.dlp.v2.TransientCryptoKey transient = 1;
Returns
getTransientBuilder()
public TransientCryptoKey.Builder getTransientBuilder()
Transient crypto key
.google.privacy.dlp.v2.TransientCryptoKey transient = 1;
Returns
getTransientOrBuilder()
public TransientCryptoKeyOrBuilder getTransientOrBuilder()
Transient crypto key
.google.privacy.dlp.v2.TransientCryptoKey transient = 1;
Returns
getUnwrapped()
public UnwrappedCryptoKey getUnwrapped()
Unwrapped crypto key
.google.privacy.dlp.v2.UnwrappedCryptoKey unwrapped = 2;
Returns
getUnwrappedBuilder()
public UnwrappedCryptoKey.Builder getUnwrappedBuilder()
Unwrapped crypto key
.google.privacy.dlp.v2.UnwrappedCryptoKey unwrapped = 2;
Returns
getUnwrappedOrBuilder()
public UnwrappedCryptoKeyOrBuilder getUnwrappedOrBuilder()
Unwrapped crypto key
.google.privacy.dlp.v2.UnwrappedCryptoKey unwrapped = 2;
Returns
hasKmsWrapped()
public boolean hasKmsWrapped()
Key wrapped using Cloud KMS
.google.privacy.dlp.v2.KmsWrappedCryptoKey kms_wrapped = 3;
Returns
Type | Description |
boolean | Whether the kmsWrapped field is set.
|
hasTransient()
public boolean hasTransient()
Transient crypto key
.google.privacy.dlp.v2.TransientCryptoKey transient = 1;
Returns
Type | Description |
boolean | Whether the transient field is set.
|
hasUnwrapped()
public boolean hasUnwrapped()
Unwrapped crypto key
.google.privacy.dlp.v2.UnwrappedCryptoKey unwrapped = 2;
Returns
Type | Description |
boolean | Whether the unwrapped field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(CryptoKey other)
public CryptoKey.Builder mergeFrom(CryptoKey other)
Parameter
Returns
public CryptoKey.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public CryptoKey.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeKmsWrapped(KmsWrappedCryptoKey value)
public CryptoKey.Builder mergeKmsWrapped(KmsWrappedCryptoKey value)
Key wrapped using Cloud KMS
.google.privacy.dlp.v2.KmsWrappedCryptoKey kms_wrapped = 3;
Parameter
Returns
mergeTransient(TransientCryptoKey value)
public CryptoKey.Builder mergeTransient(TransientCryptoKey value)
Transient crypto key
.google.privacy.dlp.v2.TransientCryptoKey transient = 1;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CryptoKey.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
mergeUnwrapped(UnwrappedCryptoKey value)
public CryptoKey.Builder mergeUnwrapped(UnwrappedCryptoKey value)
Unwrapped crypto key
.google.privacy.dlp.v2.UnwrappedCryptoKey unwrapped = 2;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public CryptoKey.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setKmsWrapped(KmsWrappedCryptoKey value)
public CryptoKey.Builder setKmsWrapped(KmsWrappedCryptoKey value)
Key wrapped using Cloud KMS
.google.privacy.dlp.v2.KmsWrappedCryptoKey kms_wrapped = 3;
Parameter
Returns
setKmsWrapped(KmsWrappedCryptoKey.Builder builderForValue)
public CryptoKey.Builder setKmsWrapped(KmsWrappedCryptoKey.Builder builderForValue)
Key wrapped using Cloud KMS
.google.privacy.dlp.v2.KmsWrappedCryptoKey kms_wrapped = 3;
Parameter
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CryptoKey.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setTransient(TransientCryptoKey value)
public CryptoKey.Builder setTransient(TransientCryptoKey value)
Transient crypto key
.google.privacy.dlp.v2.TransientCryptoKey transient = 1;
Parameter
Returns
setTransient(TransientCryptoKey.Builder builderForValue)
public CryptoKey.Builder setTransient(TransientCryptoKey.Builder builderForValue)
Transient crypto key
.google.privacy.dlp.v2.TransientCryptoKey transient = 1;
Parameter
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final CryptoKey.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setUnwrapped(UnwrappedCryptoKey value)
public CryptoKey.Builder setUnwrapped(UnwrappedCryptoKey value)
Unwrapped crypto key
.google.privacy.dlp.v2.UnwrappedCryptoKey unwrapped = 2;
Parameter
Returns
setUnwrapped(UnwrappedCryptoKey.Builder builderForValue)
public CryptoKey.Builder setUnwrapped(UnwrappedCryptoKey.Builder builderForValue)
Unwrapped crypto key
.google.privacy.dlp.v2.UnwrappedCryptoKey unwrapped = 2;
Parameter
Returns