Data Loss Prevention V2 Client - Class InfoType (1.11.0)

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

Type of information detected by the API.

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

Namespace

Google \ Cloud \ Dlp \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Name of the information type. Either a name of your choosing when creating a CustomInfoType, or one of the names listed at https://cloud.google.com/dlp/docs/infotypes-reference when specifying a built-in type. When sending Cloud DLP results to Data Catalog, infoType names should conform to the pattern [A-Za-z0-9$_-]{1,64}.

↳ version string

Optional version name for this InfoType.

↳ sensitivity_score Google\Cloud\Dlp\V2\SensitivityScore

Optional custom sensitivity for this InfoType. This only applies to data profiling.

getName

Name of the information type. Either a name of your choosing when creating a CustomInfoType, or one of the names listed at https://cloud.google.com/dlp/docs/infotypes-reference when specifying a built-in type. When sending Cloud DLP results to Data Catalog, infoType names should conform to the pattern [A-Za-z0-9$_-]{1,64}.

Returns
TypeDescription
string

setName

Name of the information type. Either a name of your choosing when creating a CustomInfoType, or one of the names listed at https://cloud.google.com/dlp/docs/infotypes-reference when specifying a built-in type. When sending Cloud DLP results to Data Catalog, infoType names should conform to the pattern [A-Za-z0-9$_-]{1,64}.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getVersion

Optional version name for this InfoType.

Returns
TypeDescription
string

setVersion

Optional version name for this InfoType.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSensitivityScore

Optional custom sensitivity for this InfoType.

This only applies to data profiling.

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

hasSensitivityScore

clearSensitivityScore

setSensitivityScore

Optional custom sensitivity for this InfoType.

This only applies to data profiling.

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