Class UnwrappedCryptoKey.Builder (3.87.0)

public static final class UnwrappedCryptoKey.Builder extends GeneratedMessage.Builder<UnwrappedCryptoKey.Builder> implements UnwrappedCryptoKeyOrBuilder

Using raw keys is prone to security risks due to accidentally leaking the key. Choose another type of key if possible.

Protobuf type google.privacy.dlp.v2.UnwrappedCryptoKey

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public UnwrappedCryptoKey build()
Returns
Type Description
UnwrappedCryptoKey

buildPartial()

public UnwrappedCryptoKey buildPartial()
Returns
Type Description
UnwrappedCryptoKey

clear()

public UnwrappedCryptoKey.Builder clear()
Returns
Type Description
UnwrappedCryptoKey.Builder
Overrides

clearKey()

public UnwrappedCryptoKey.Builder clearKey()

Required. A 128/192/256 bit key.

bytes key = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UnwrappedCryptoKey.Builder

This builder for chaining.

getDefaultInstanceForType()

public UnwrappedCryptoKey getDefaultInstanceForType()
Returns
Type Description
UnwrappedCryptoKey

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getKey()

public ByteString getKey()

Required. A 128/192/256 bit key.

bytes key = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The key.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UnwrappedCryptoKey other)

public UnwrappedCryptoKey.Builder mergeFrom(UnwrappedCryptoKey other)
Parameter
Name Description
other UnwrappedCryptoKey
Returns
Type Description
UnwrappedCryptoKey.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UnwrappedCryptoKey.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UnwrappedCryptoKey.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public UnwrappedCryptoKey.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
UnwrappedCryptoKey.Builder
Overrides

setKey(ByteString value)

public UnwrappedCryptoKey.Builder setKey(ByteString value)

Required. A 128/192/256 bit key.

bytes key = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The key to set.

Returns
Type Description
UnwrappedCryptoKey.Builder

This builder for chaining.