Data Loss Prevention V2 Client - Class PrimitiveTransformation (2.6.1)

Reference documentation and code samples for the Data Loss Prevention V2 Client class PrimitiveTransformation.

A rule for transforming a value.

Generated from protobuf message google.privacy.dlp.v2.PrimitiveTransformation

Namespace

Google \ Cloud \ Dlp \ V2

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ replace_config
ReplaceValueConfig

Replace with a specified value.

↳ redact_config
RedactConfig

Redact

↳ character_mask_config
↳ crypto_replace_ffx_fpe_config
CryptoReplaceFfxFpeConfig

Ffx-Fpe. Strongly discouraged, consider using CryptoDeterministicConfig instead. Fpe is computationally expensive incurring latency costs.

↳ fixed_size_bucketing_config
FixedSizeBucketingConfig

Fixed size bucketing

↳ bucketing_config
BucketingConfig

Bucketing

↳ replace_with_info_type_config
ReplaceWithInfoTypeConfig

Replace with infotype

↳ time_part_config
TimePartConfig

Time extraction

↳ crypto_hash_config
↳ date_shift_config
DateShiftConfig

Date Shift

↳ crypto_deterministic_config
CryptoDeterministicConfig

Deterministic Crypto

↳ replace_dictionary_config
ReplaceDictionaryConfig

Replace with a value randomly drawn (with replacement) from a dictionary.

getReplaceConfig

Replace with a specified value.

Returns
Type
Description

hasReplaceConfig

setReplaceConfig

Replace with a specified value.

Parameter
Name
Description
Returns
Type
Description
$this

getRedactConfig

Redact

Returns
Type
Description
RedactConfig |null

hasRedactConfig

setRedactConfig

Redact

Parameter
Name
Description
Returns
Type
Description
$this

getCharacterMaskConfig

Mask

Returns
Type
Description

hasCharacterMaskConfig

setCharacterMaskConfig

Mask

Parameter
Name
Description
Returns
Type
Description
$this

getCryptoReplaceFfxFpeConfig

Ffx-Fpe. Strongly discouraged, consider using CryptoDeterministicConfig instead. Fpe is computationally expensive incurring latency costs.

Returns
Type
Description

hasCryptoReplaceFfxFpeConfig

setCryptoReplaceFfxFpeConfig

Ffx-Fpe. Strongly discouraged, consider using CryptoDeterministicConfig instead. Fpe is computationally expensive incurring latency costs.

Parameter
Name
Description
Returns
Type
Description
$this

getFixedSizeBucketingConfig

Fixed size bucketing

Returns
Type
Description

hasFixedSizeBucketingConfig

setFixedSizeBucketingConfig

Fixed size bucketing

Parameter
Name
Description
Returns
Type
Description
$this

getBucketingConfig

Bucketing

Returns
Type
Description

hasBucketingConfig

setBucketingConfig

Bucketing

Parameter
Name
Description
Returns
Type
Description
$this

getReplaceWithInfoTypeConfig

Replace with infotype

Returns
Type
Description

hasReplaceWithInfoTypeConfig

setReplaceWithInfoTypeConfig

Replace with infotype

Parameter
Name
Description
Returns
Type
Description
$this

getTimePartConfig

Time extraction

Returns
Type
Description

hasTimePartConfig

setTimePartConfig

Time extraction

Parameter
Name
Description
Returns
Type
Description
$this

getCryptoHashConfig

Crypto

Returns
Type
Description

hasCryptoHashConfig

setCryptoHashConfig

Crypto

Parameter
Name
Description
Returns
Type
Description
$this

getDateShiftConfig

Date Shift

Returns
Type
Description

hasDateShiftConfig

setDateShiftConfig

Date Shift

Parameter
Name
Description
Returns
Type
Description
$this

getCryptoDeterministicConfig

Deterministic Crypto

Returns
Type
Description

hasCryptoDeterministicConfig

setCryptoDeterministicConfig

Deterministic Crypto

Parameter
Name
Description
Returns
Type
Description
$this

getReplaceDictionaryConfig

Replace with a value randomly drawn (with replacement) from a dictionary.

Returns
Type
Description

hasReplaceDictionaryConfig

setReplaceDictionaryConfig

Replace with a value randomly drawn (with replacement) from a dictionary.

Parameter
Name
Description
Returns
Type
Description
$this

getTransformation

Returns
Type
Description
string
Create a Mobile Website
View Site in Mobile | Classic
Share by: