Class CryptoHashConfig.Builder (3.87.0)

public static final class CryptoHashConfig.Builder extends GeneratedMessage.Builder<CryptoHashConfig.Builder> implements CryptoHashConfigOrBuilder

Pseudonymization method that generates surrogates via cryptographic hashing. Uses SHA-256. The key size must be either 32 or 64 bytes. Outputs a base64 encoded representation of the hashed output (for example, L7k0BHmF1ha5U3NfGykjro4xWi1MPVQPjhMAZbSV9mM=). Currently, only string and integer values can be hashed. See https://cloud.google.com/sensitive-data-protection/docs/pseudonymization to learn more.

Protobuf type google.privacy.dlp.v2.CryptoHashConfig

Static Methods

getDescriptor()

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

Methods

build()

public CryptoHashConfig build()
Returns
Type Description
CryptoHashConfig

buildPartial()

public CryptoHashConfig buildPartial()
Returns
Type Description
CryptoHashConfig

clear()

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

clearCryptoKey()

public CryptoHashConfig.Builder clearCryptoKey()

The key used by the hash function.

.google.privacy.dlp.v2.CryptoKey crypto_key = 1;

Returns
Type Description
CryptoHashConfig.Builder

getCryptoKey()

public CryptoKey getCryptoKey()

The key used by the hash function.

.google.privacy.dlp.v2.CryptoKey crypto_key = 1;

Returns
Type Description
CryptoKey

The cryptoKey.

getCryptoKeyBuilder()

public CryptoKey.Builder getCryptoKeyBuilder()

The key used by the hash function.

.google.privacy.dlp.v2.CryptoKey crypto_key = 1;

Returns
Type Description
CryptoKey.Builder

getCryptoKeyOrBuilder()

public CryptoKeyOrBuilder getCryptoKeyOrBuilder()

The key used by the hash function.

.google.privacy.dlp.v2.CryptoKey crypto_key = 1;

Returns
Type Description
CryptoKeyOrBuilder

getDefaultInstanceForType()

public CryptoHashConfig getDefaultInstanceForType()
Returns
Type Description
CryptoHashConfig

getDescriptorForType()

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

hasCryptoKey()

public boolean hasCryptoKey()

The key used by the hash function.

.google.privacy.dlp.v2.CryptoKey crypto_key = 1;

Returns
Type Description
boolean

Whether the cryptoKey field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCryptoKey(CryptoKey value)

public CryptoHashConfig.Builder mergeCryptoKey(CryptoKey value)

The key used by the hash function.

.google.privacy.dlp.v2.CryptoKey crypto_key = 1;

Parameter
Name Description
value CryptoKey
Returns
Type Description
CryptoHashConfig.Builder

mergeFrom(CryptoHashConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setCryptoKey(CryptoKey value)

public CryptoHashConfig.Builder setCryptoKey(CryptoKey value)

The key used by the hash function.

.google.privacy.dlp.v2.CryptoKey crypto_key = 1;

Parameter
Name Description
value CryptoKey
Returns
Type Description
CryptoHashConfig.Builder

setCryptoKey(CryptoKey.Builder builderForValue)

public CryptoHashConfig.Builder setCryptoKey(CryptoKey.Builder builderForValue)

The key used by the hash function.

.google.privacy.dlp.v2.CryptoKey crypto_key = 1;

Parameter
Name Description
builderForValue CryptoKey.Builder
Returns
Type Description
CryptoHashConfig.Builder