Data Loss Prevention V2 Client - Class PrimitiveTransformation (2.2.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 CharacterMaskConfig

Mask

↳ crypto_replace_ffx_fpe_config CryptoReplaceFfxFpeConfig

Ffx-Fpe

↳ 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 CryptoHashConfig

Crypto

↳ 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
ReplaceValueConfig|null

hasReplaceConfig

setReplaceConfig

Replace with a specified value.

Parameter
Name Description
var ReplaceValueConfig
Returns
Type Description
$this

getRedactConfig

Redact

Returns
Type Description
RedactConfig|null

hasRedactConfig

setRedactConfig

Redact

Parameter
Name Description
var RedactConfig
Returns
Type Description
$this

getCharacterMaskConfig

Mask

Returns
Type Description
CharacterMaskConfig|null

hasCharacterMaskConfig

setCharacterMaskConfig

Mask

Parameter
Name Description
var CharacterMaskConfig
Returns
Type Description
$this

getCryptoReplaceFfxFpeConfig

Ffx-Fpe

Returns
Type Description
CryptoReplaceFfxFpeConfig|null

hasCryptoReplaceFfxFpeConfig

setCryptoReplaceFfxFpeConfig

Ffx-Fpe

Parameter
Name Description
var CryptoReplaceFfxFpeConfig
Returns
Type Description
$this

getFixedSizeBucketingConfig

Fixed size bucketing

Returns
Type Description
FixedSizeBucketingConfig|null

hasFixedSizeBucketingConfig

setFixedSizeBucketingConfig

Fixed size bucketing

Parameter
Name Description
var FixedSizeBucketingConfig
Returns
Type Description
$this

getBucketingConfig

Bucketing

Returns
Type Description
BucketingConfig|null

hasBucketingConfig

setBucketingConfig

Bucketing

Parameter
Name Description
var BucketingConfig
Returns
Type Description
$this

getReplaceWithInfoTypeConfig

Replace with infotype

Returns
Type Description
ReplaceWithInfoTypeConfig|null

hasReplaceWithInfoTypeConfig

setReplaceWithInfoTypeConfig

Replace with infotype

Parameter
Name Description
var ReplaceWithInfoTypeConfig
Returns
Type Description
$this

getTimePartConfig

Time extraction

Returns
Type Description
TimePartConfig|null

hasTimePartConfig

setTimePartConfig

Time extraction

Parameter
Name Description
var TimePartConfig
Returns
Type Description
$this

getCryptoHashConfig

Crypto

Returns
Type Description
CryptoHashConfig|null

hasCryptoHashConfig

setCryptoHashConfig

Crypto

Parameter
Name Description
var CryptoHashConfig
Returns
Type Description
$this

getDateShiftConfig

Date Shift

Returns
Type Description
DateShiftConfig|null

hasDateShiftConfig

setDateShiftConfig

Date Shift

Parameter
Name Description
var DateShiftConfig
Returns
Type Description
$this

getCryptoDeterministicConfig

Deterministic Crypto

Returns
Type Description
CryptoDeterministicConfig|null

hasCryptoDeterministicConfig

setCryptoDeterministicConfig

Deterministic Crypto

Parameter
Name Description
var CryptoDeterministicConfig
Returns
Type Description
$this

getReplaceDictionaryConfig

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

Returns
Type Description
ReplaceDictionaryConfig|null

hasReplaceDictionaryConfig

setReplaceDictionaryConfig

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

Parameter
Name Description
var ReplaceDictionaryConfig
Returns
Type Description
$this

getTransformation

Returns
Type Description
string