Send feedback
Class CryptoHashConfig.Builder (3.6.4)
Stay organized with collections
Save and categorize content based on your preferences.
Version 3.6.4 keyboard_arrow_down
public static final class CryptoHashConfig . Builder extends GeneratedMessageV3 . 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/dlp/docs/pseudonymization to learn more.
Protobuf type google.privacy.dlp.v2.CryptoHashConfig
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CryptoHashConfig . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public CryptoHashConfig build ()
Returns
buildPartial()
public CryptoHashConfig buildPartial ()
Returns
clear()
public CryptoHashConfig . Builder clear ()
Returns
Overrides
clearCryptoKey()
public CryptoHashConfig . Builder clearCryptoKey ()
The key used by the hash function.
.google.privacy.dlp.v2.CryptoKey crypto_key = 1;
Returns
clearField(Descriptors.FieldDescriptor field)
public CryptoHashConfig . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CryptoHashConfig . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clone()
public CryptoHashConfig . Builder clone ()
Returns
Overrides
getCryptoKey()
public CryptoKey getCryptoKey ()
The key used by the hash function.
.google.privacy.dlp.v2.CryptoKey crypto_key = 1;
Returns
getCryptoKeyBuilder()
public CryptoKey . Builder getCryptoKeyBuilder ()
The key used by the hash function.
.google.privacy.dlp.v2.CryptoKey crypto_key = 1;
Returns
getCryptoKeyOrBuilder()
public CryptoKeyOrBuilder getCryptoKeyOrBuilder ()
The key used by the hash function.
.google.privacy.dlp.v2.CryptoKey crypto_key = 1;
Returns
getDefaultInstanceForType()
public CryptoHashConfig getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
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 GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
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
Returns
mergeFrom(CryptoHashConfig other)
public CryptoHashConfig . Builder mergeFrom ( CryptoHashConfig other )
Parameter
Returns
public CryptoHashConfig . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public CryptoHashConfig . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CryptoHashConfig . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
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
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public CryptoHashConfig . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CryptoHashConfig . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CryptoHashConfig . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]