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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CryptoKey.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
buildPartial()
public CryptoKey buildPartial()
clear()
public CryptoKey.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public CryptoKey.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearKmsWrapped()
public CryptoKey.Builder clearKmsWrapped()
Key wrapped using Cloud KMS
.google.privacy.dlp.v2.KmsWrappedCryptoKey kms_wrapped = 3;
clearOneof(Descriptors.OneofDescriptor oneof)
public CryptoKey.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearSource()
public CryptoKey.Builder clearSource()
clearTransient()
public CryptoKey.Builder clearTransient()
Transient crypto key
.google.privacy.dlp.v2.TransientCryptoKey transient = 1;
clearUnwrapped()
public CryptoKey.Builder clearUnwrapped()
Unwrapped crypto key
.google.privacy.dlp.v2.UnwrappedCryptoKey unwrapped = 2;
clone()
public CryptoKey.Builder clone()
Overrides
getDefaultInstanceForType()
public CryptoKey getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getKmsWrapped()
public KmsWrappedCryptoKey getKmsWrapped()
Key wrapped using Cloud KMS
.google.privacy.dlp.v2.KmsWrappedCryptoKey kms_wrapped = 3;
getKmsWrappedBuilder()
public KmsWrappedCryptoKey.Builder getKmsWrappedBuilder()
Key wrapped using Cloud KMS
.google.privacy.dlp.v2.KmsWrappedCryptoKey kms_wrapped = 3;
getKmsWrappedOrBuilder()
public KmsWrappedCryptoKeyOrBuilder getKmsWrappedOrBuilder()
Key wrapped using Cloud KMS
.google.privacy.dlp.v2.KmsWrappedCryptoKey kms_wrapped = 3;
getSourceCase()
public CryptoKey.SourceCase getSourceCase()
getTransient()
public TransientCryptoKey getTransient()
Transient crypto key
.google.privacy.dlp.v2.TransientCryptoKey transient = 1;
getTransientBuilder()
public TransientCryptoKey.Builder getTransientBuilder()
Transient crypto key
.google.privacy.dlp.v2.TransientCryptoKey transient = 1;
getTransientOrBuilder()
public TransientCryptoKeyOrBuilder getTransientOrBuilder()
Transient crypto key
.google.privacy.dlp.v2.TransientCryptoKey transient = 1;
getUnwrapped()
public UnwrappedCryptoKey getUnwrapped()
Unwrapped crypto key
.google.privacy.dlp.v2.UnwrappedCryptoKey unwrapped = 2;
getUnwrappedBuilder()
public UnwrappedCryptoKey.Builder getUnwrappedBuilder()
Unwrapped crypto key
.google.privacy.dlp.v2.UnwrappedCryptoKey unwrapped = 2;
getUnwrappedOrBuilder()
public UnwrappedCryptoKeyOrBuilder getUnwrappedOrBuilder()
Unwrapped crypto key
.google.privacy.dlp.v2.UnwrappedCryptoKey unwrapped = 2;
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(CryptoKey other)
public CryptoKey.Builder mergeFrom(CryptoKey other)
public CryptoKey.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public CryptoKey.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeKmsWrapped(KmsWrappedCryptoKey value)
public CryptoKey.Builder mergeKmsWrapped(KmsWrappedCryptoKey value)
Key wrapped using Cloud KMS
.google.privacy.dlp.v2.KmsWrappedCryptoKey kms_wrapped = 3;
mergeTransient(TransientCryptoKey value)
public CryptoKey.Builder mergeTransient(TransientCryptoKey value)
Transient crypto key
.google.privacy.dlp.v2.TransientCryptoKey transient = 1;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CryptoKey.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
mergeUnwrapped(UnwrappedCryptoKey value)
public CryptoKey.Builder mergeUnwrapped(UnwrappedCryptoKey value)
Unwrapped crypto key
.google.privacy.dlp.v2.UnwrappedCryptoKey unwrapped = 2;
setField(Descriptors.FieldDescriptor field, Object value)
public CryptoKey.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setKmsWrapped(KmsWrappedCryptoKey value)
public CryptoKey.Builder setKmsWrapped(KmsWrappedCryptoKey value)
Key wrapped using Cloud KMS
.google.privacy.dlp.v2.KmsWrappedCryptoKey kms_wrapped = 3;
setKmsWrapped(KmsWrappedCryptoKey.Builder builderForValue)
public CryptoKey.Builder setKmsWrapped(KmsWrappedCryptoKey.Builder builderForValue)
Key wrapped using Cloud KMS
.google.privacy.dlp.v2.KmsWrappedCryptoKey kms_wrapped = 3;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CryptoKey.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setTransient(TransientCryptoKey value)
public CryptoKey.Builder setTransient(TransientCryptoKey value)
Transient crypto key
.google.privacy.dlp.v2.TransientCryptoKey transient = 1;
setTransient(TransientCryptoKey.Builder builderForValue)
public CryptoKey.Builder setTransient(TransientCryptoKey.Builder builderForValue)
Transient crypto key
.google.privacy.dlp.v2.TransientCryptoKey transient = 1;
setUnknownFields(UnknownFieldSet unknownFields)
public final CryptoKey.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
setUnwrapped(UnwrappedCryptoKey value)
public CryptoKey.Builder setUnwrapped(UnwrappedCryptoKey value)
Unwrapped crypto key
.google.privacy.dlp.v2.UnwrappedCryptoKey unwrapped = 2;
setUnwrapped(UnwrappedCryptoKey.Builder builderForValue)
public CryptoKey.Builder setUnwrapped(UnwrappedCryptoKey.Builder builderForValue)
Unwrapped crypto key
.google.privacy.dlp.v2.UnwrappedCryptoKey unwrapped = 2;