Data Loss Prevention V2 Client - Class CustomInfoType (1.8.6)

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

Custom information type provided by the user. Used to find domain-specific sensitive information configurable to the data in question.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ info_type Google\Cloud\Dlp\V2\InfoType

CustomInfoType can either be a new infoType, or an extension of built-in infoType, when the name matches one of existing infoTypes and that infoType is specified in InspectContent.info_types field. Specifying the latter adds findings to the one detected by the system. If built-in info type is not specified in InspectContent.info_types list then the name is treated as a custom info type.

↳ likelihood int

Likelihood to return for this CustomInfoType. This base value can be altered by a detection rule if the finding meets the criteria specified by the rule. Defaults to VERY_LIKELY if not specified.

↳ dictionary Google\Cloud\Dlp\V2\CustomInfoType\Dictionary

A list of phrases to detect as a CustomInfoType.

↳ regex Google\Cloud\Dlp\V2\CustomInfoType\Regex

Regular expression based CustomInfoType.

↳ surrogate_type Google\Cloud\Dlp\V2\CustomInfoType\SurrogateType

Message for detecting output from deidentification transformations that support reversing.

↳ stored_type Google\Cloud\Dlp\V2\StoredType

Load an existing StoredInfoType resource for use in InspectDataSource. Not currently supported in InspectContent.

↳ detection_rules array<Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule>

Set of detection rules to apply to all findings of this CustomInfoType. Rules are applied in order that they are specified. Not supported for the surrogate_type CustomInfoType.

↳ exclusion_type int

If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding to be returned. It still can be used for rules matching.

getInfoType

CustomInfoType can either be a new infoType, or an extension of built-in infoType, when the name matches one of existing infoTypes and that infoType is specified in InspectContent.info_types field. Specifying the latter adds findings to the one detected by the system. If built-in info type is not specified in InspectContent.info_types list then the name is treated as a custom info type.

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

hasInfoType

clearInfoType

setInfoType

CustomInfoType can either be a new infoType, or an extension of built-in infoType, when the name matches one of existing infoTypes and that infoType is specified in InspectContent.info_types field. Specifying the latter adds findings to the one detected by the system. If built-in info type is not specified in InspectContent.info_types list then the name is treated as a custom info type.

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

getLikelihood

Likelihood to return for this CustomInfoType. This base value can be altered by a detection rule if the finding meets the criteria specified by the rule. Defaults to VERY_LIKELY if not specified.

Returns
TypeDescription
int

setLikelihood

Likelihood to return for this CustomInfoType. This base value can be altered by a detection rule if the finding meets the criteria specified by the rule. Defaults to VERY_LIKELY if not specified.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getDictionary

A list of phrases to detect as a CustomInfoType.

Returns
TypeDescription
Google\Cloud\Dlp\V2\CustomInfoType\Dictionary|null

hasDictionary

setDictionary

A list of phrases to detect as a CustomInfoType.

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

getRegex

Regular expression based CustomInfoType.

Returns
TypeDescription
Google\Cloud\Dlp\V2\CustomInfoType\Regex|null

hasRegex

setRegex

Regular expression based CustomInfoType.

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

getSurrogateType

Message for detecting output from deidentification transformations that support reversing.

Returns
TypeDescription
Google\Cloud\Dlp\V2\CustomInfoType\SurrogateType|null

hasSurrogateType

setSurrogateType

Message for detecting output from deidentification transformations that support reversing.

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

getStoredType

Load an existing StoredInfoType resource for use in InspectDataSource. Not currently supported in InspectContent.

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

hasStoredType

setStoredType

Load an existing StoredInfoType resource for use in InspectDataSource. Not currently supported in InspectContent.

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

getDetectionRules

Set of detection rules to apply to all findings of this CustomInfoType.

Rules are applied in order that they are specified. Not supported for the surrogate_type CustomInfoType.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setDetectionRules

Set of detection rules to apply to all findings of this CustomInfoType.

Rules are applied in order that they are specified. Not supported for the surrogate_type CustomInfoType.

Parameter
NameDescription
var array<Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule>
Returns
TypeDescription
$this

getExclusionType

If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding to be returned. It still can be used for rules matching.

Returns
TypeDescription
int

setExclusionType

If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding to be returned. It still can be used for rules matching.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getType

Returns
TypeDescription
string