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
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 CryptoHashConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public CryptoHashConfig build()
buildPartial()
public CryptoHashConfig buildPartial()
clear()
public CryptoHashConfig.Builder clear()
Overrides
clearCryptoKey()
public CryptoHashConfig.Builder clearCryptoKey()
The key used by the hash function.
.google.privacy.dlp.v2.CryptoKey crypto_key = 1;
clearField(Descriptors.FieldDescriptor field)
public CryptoHashConfig.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CryptoHashConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public CryptoHashConfig.Builder clone()
Overrides
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;
getCryptoKeyOrBuilder()
public CryptoKeyOrBuilder getCryptoKeyOrBuilder()
The key used by the hash function.
.google.privacy.dlp.v2.CryptoKey crypto_key = 1;
getDefaultInstanceForType()
public CryptoHashConfig getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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()
Overrides
isInitialized()
public final boolean isInitialized()
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;
mergeFrom(CryptoHashConfig other)
public CryptoHashConfig.Builder mergeFrom(CryptoHashConfig other)
public CryptoHashConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public CryptoHashConfig.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CryptoHashConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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;
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;
setField(Descriptors.FieldDescriptor field, Object value)
public CryptoHashConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CryptoHashConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CryptoHashConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides