Class UnwrappedCryptoKey.Builder (3.47.0)

public static final class UnwrappedCryptoKey.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UnwrappedCryptoKey.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UnwrappedCryptoKey.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public UnwrappedCryptoKey.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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.

clearOneof(Descriptors.OneofDescriptor oneof)

public UnwrappedCryptoKey.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
UnwrappedCryptoKey.Builder
Overrides

clone()

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

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