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
Namespace
Google \ Cloud \ Dlp \ V2Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ info_type
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
↳ regex
↳ surrogate_type
CustomInfoType\SurrogateType
Message for detecting output from deidentification transformations that support reversing.
↳ stored_type
↳ metadata_key_value_expression
↳ detection_rules
array< CustomInfoType\DetectionRule
>
Set of detection rules to apply to all findings of this CustomInfoType. Rules are applied in the order that they are specified. Only supported for the dictionary
, regex
, and stored_type
CustomInfoTypes.
↳ 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. Only supported for the dictionary
, regex
, and stored_type
CustomInfoTypes.
↳ sensitivity_score
SensitivityScore
Sensitivity for this CustomInfoType. If this CustomInfoType extends an existing InfoType, the sensitivity here will take precedence over that of the original InfoType. If unset for a CustomInfoType, it will default to HIGH. This only applies to data profiling.
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.
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.
$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.
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.
$this
getDictionary
A list of phrases to detect as a CustomInfoType.
hasDictionary
setDictionary
A list of phrases to detect as a CustomInfoType.
$this
getRegex
Regular expression based CustomInfoType.
hasRegex
setRegex
Regular expression based CustomInfoType.
$this
getSurrogateType
Message for detecting output from deidentification transformations that support reversing.
hasSurrogateType
setSurrogateType
Message for detecting output from deidentification transformations that support reversing.
$this
getStoredType
Loads an existing StoredInfoType
resource.
hasStoredType
setStoredType
Loads an existing StoredInfoType
resource.
$this
getMetadataKeyValueExpression
Key-value pair to detect in the metadata.
hasMetadataKeyValueExpression
setMetadataKeyValueExpression
Key-value pair to detect in the metadata.
$this
getDetectionRules
Set of detection rules to apply to all findings of this CustomInfoType.
Rules are applied in the order that they are specified. Only supported
for the dictionary
, regex
, and stored_type
CustomInfoTypes.
setDetectionRules
Set of detection rules to apply to all findings of this CustomInfoType.
Rules are applied in the order that they are specified. Only supported
for the dictionary
, regex
, and stored_type
CustomInfoTypes.
$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. Only supported
for the dictionary
, regex
, and stored_type
CustomInfoTypes.
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. Only supported
for the dictionary
, regex
, and stored_type
CustomInfoTypes.
$this
getSensitivityScore
Sensitivity for this CustomInfoType. If this CustomInfoType extends an existing InfoType, the sensitivity here will take precedence over that of the original InfoType. If unset for a CustomInfoType, it will default to HIGH.
This only applies to data profiling.
hasSensitivityScore
clearSensitivityScore
setSensitivityScore
Sensitivity for this CustomInfoType. If this CustomInfoType extends an existing InfoType, the sensitivity here will take precedence over that of the original InfoType. If unset for a CustomInfoType, it will default to HIGH.
This only applies to data profiling.
$this
getType
string

