Data Loss Prevention V2 Client - Class PrimitiveTransformation (1.12.0)

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
NameDescription
data array

Optional. Data for populating the Message object.

↳ replace_config Google\Cloud\Dlp\V2\ReplaceValueConfig

Replace with a specified value.

↳ redact_config Google\Cloud\Dlp\V2\RedactConfig

Redact

↳ character_mask_config Google\Cloud\Dlp\V2\CharacterMaskConfig

Mask

↳ crypto_replace_ffx_fpe_config Google\Cloud\Dlp\V2\CryptoReplaceFfxFpeConfig

Ffx-Fpe

↳ fixed_size_bucketing_config Google\Cloud\Dlp\V2\FixedSizeBucketingConfig

Fixed size bucketing

↳ bucketing_config Google\Cloud\Dlp\V2\BucketingConfig

Bucketing

↳ replace_with_info_type_config Google\Cloud\Dlp\V2\ReplaceWithInfoTypeConfig

Replace with infotype

↳ time_part_config Google\Cloud\Dlp\V2\TimePartConfig

Time extraction

↳ crypto_hash_config Google\Cloud\Dlp\V2\CryptoHashConfig

Crypto

↳ date_shift_config Google\Cloud\Dlp\V2\DateShiftConfig

Date Shift

↳ crypto_deterministic_config Google\Cloud\Dlp\V2\CryptoDeterministicConfig

Deterministic Crypto

↳ replace_dictionary_config Google\Cloud\Dlp\V2\ReplaceDictionaryConfig

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

getReplaceConfig

Replace with a specified value.

Returns
TypeDescription
Google\Cloud\Dlp\V2\ReplaceValueConfig|null

hasReplaceConfig

setReplaceConfig

Replace with a specified value.

Parameter
NameDescription
var Google\Cloud\Dlp\V2\ReplaceValueConfig
Returns
TypeDescription
$this

getRedactConfig

Redact

Returns
TypeDescription
Google\Cloud\Dlp\V2\RedactConfig|null

hasRedactConfig

setRedactConfig

Redact

Parameter
NameDescription
var Google\Cloud\Dlp\V2\RedactConfig
Returns
TypeDescription
$this

getCharacterMaskConfig

Mask

Returns
TypeDescription
Google\Cloud\Dlp\V2\CharacterMaskConfig|null

hasCharacterMaskConfig

setCharacterMaskConfig

Mask

Parameter
NameDescription
var Google\Cloud\Dlp\V2\CharacterMaskConfig
Returns
TypeDescription
$this

getCryptoReplaceFfxFpeConfig

Ffx-Fpe

Returns
TypeDescription
Google\Cloud\Dlp\V2\CryptoReplaceFfxFpeConfig|null

hasCryptoReplaceFfxFpeConfig

setCryptoReplaceFfxFpeConfig

Ffx-Fpe

Parameter
NameDescription
var Google\Cloud\Dlp\V2\CryptoReplaceFfxFpeConfig
Returns
TypeDescription
$this

getFixedSizeBucketingConfig

Fixed size bucketing

Returns
TypeDescription
Google\Cloud\Dlp\V2\FixedSizeBucketingConfig|null

hasFixedSizeBucketingConfig

setFixedSizeBucketingConfig

Fixed size bucketing

Parameter
NameDescription
var Google\Cloud\Dlp\V2\FixedSizeBucketingConfig
Returns
TypeDescription
$this

getBucketingConfig

Bucketing

Returns
TypeDescription
Google\Cloud\Dlp\V2\BucketingConfig|null

hasBucketingConfig

setBucketingConfig

Bucketing

Parameter
NameDescription
var Google\Cloud\Dlp\V2\BucketingConfig
Returns
TypeDescription
$this

getReplaceWithInfoTypeConfig

Replace with infotype

Returns
TypeDescription
Google\Cloud\Dlp\V2\ReplaceWithInfoTypeConfig|null

hasReplaceWithInfoTypeConfig

setReplaceWithInfoTypeConfig

Replace with infotype

Parameter
NameDescription
var Google\Cloud\Dlp\V2\ReplaceWithInfoTypeConfig
Returns
TypeDescription
$this

getTimePartConfig

Time extraction

Returns
TypeDescription
Google\Cloud\Dlp\V2\TimePartConfig|null

hasTimePartConfig

setTimePartConfig

Time extraction

Parameter
NameDescription
var Google\Cloud\Dlp\V2\TimePartConfig
Returns
TypeDescription
$this

getCryptoHashConfig

Crypto

Returns
TypeDescription
Google\Cloud\Dlp\V2\CryptoHashConfig|null

hasCryptoHashConfig

setCryptoHashConfig

Crypto

Parameter
NameDescription
var Google\Cloud\Dlp\V2\CryptoHashConfig
Returns
TypeDescription
$this

getDateShiftConfig

Date Shift

Returns
TypeDescription
Google\Cloud\Dlp\V2\DateShiftConfig|null

hasDateShiftConfig

setDateShiftConfig

Date Shift

Parameter
NameDescription
var Google\Cloud\Dlp\V2\DateShiftConfig
Returns
TypeDescription
$this

getCryptoDeterministicConfig

Deterministic Crypto

Returns
TypeDescription
Google\Cloud\Dlp\V2\CryptoDeterministicConfig|null

hasCryptoDeterministicConfig

setCryptoDeterministicConfig

Deterministic Crypto

Parameter
NameDescription
var Google\Cloud\Dlp\V2\CryptoDeterministicConfig
Returns
TypeDescription
$this

getReplaceDictionaryConfig

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

Returns
TypeDescription
Google\Cloud\Dlp\V2\ReplaceDictionaryConfig|null

hasReplaceDictionaryConfig

setReplaceDictionaryConfig

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

Parameter
NameDescription
var Google\Cloud\Dlp\V2\ReplaceDictionaryConfig
Returns
TypeDescription
$this

getTransformation

Returns
TypeDescription
string