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 inInspectContent.info_typesfield. Specifying the latter adds findings to the one detected by the system. If built-in info type is not specified inInspectContent.info_typeslist 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 toVERY_LIKELYif not specified.
Set of detection rules to apply to all findings of this CustomInfoType. Rules are applied in order that they are specified. Not supported for thesurrogate_typeCustomInfoType.
↳ 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.
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 inInspectContent.info_typesfield. Specifying the latter
adds findings to the one detected by the system. If built-in info type is
not specified inInspectContent.info_typeslist then the name is treated
as a custom info type.
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 inInspectContent.info_typesfield. Specifying the latter
adds findings to the one detected by the system. If built-in info type is
not specified inInspectContent.info_typeslist then the name is treated
as a custom info type.
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 toVERY_LIKELYif not specified.
Returns
Type
Description
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 toVERY_LIKELYif not specified.
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
Type
Description
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
Name
Description
var
int
Returns
Type
Description
$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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Data Loss Prevention V2 Client - Class CustomInfoType (2.6.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.6.1 (latest)](/php/docs/reference/cloud-dlp/latest/V2.CustomInfoType)\n- [2.6.0](/php/docs/reference/cloud-dlp/2.6.0/V2.CustomInfoType)\n- [2.4.1](/php/docs/reference/cloud-dlp/2.4.1/V2.CustomInfoType)\n- [2.3.0](/php/docs/reference/cloud-dlp/2.3.0/V2.CustomInfoType)\n- [2.2.3](/php/docs/reference/cloud-dlp/2.2.3/V2.CustomInfoType)\n- [2.1.0](/php/docs/reference/cloud-dlp/2.1.0/V2.CustomInfoType)\n- [2.0.0](/php/docs/reference/cloud-dlp/2.0.0/V2.CustomInfoType)\n- [1.19.0](/php/docs/reference/cloud-dlp/1.19.0/V2.CustomInfoType)\n- [1.18.0](/php/docs/reference/cloud-dlp/1.18.0/V2.CustomInfoType)\n- [1.17.0](/php/docs/reference/cloud-dlp/1.17.0/V2.CustomInfoType)\n- [1.16.0](/php/docs/reference/cloud-dlp/1.16.0/V2.CustomInfoType)\n- [1.15.1](/php/docs/reference/cloud-dlp/1.15.1/V2.CustomInfoType)\n- [1.14.0](/php/docs/reference/cloud-dlp/1.14.0/V2.CustomInfoType)\n- [1.13.2](/php/docs/reference/cloud-dlp/1.13.2/V2.CustomInfoType)\n- [1.12.0](/php/docs/reference/cloud-dlp/1.12.0/V2.CustomInfoType)\n- [1.11.0](/php/docs/reference/cloud-dlp/1.11.0/V2.CustomInfoType)\n- [1.10.2](/php/docs/reference/cloud-dlp/1.10.2/V2.CustomInfoType)\n- [1.9.0](/php/docs/reference/cloud-dlp/1.9.0/V2.CustomInfoType)\n- [1.8.6](/php/docs/reference/cloud-dlp/1.8.6/V2.CustomInfoType) \nReference documentation and code samples for the Data Loss Prevention V2 Client class CustomInfoType.\n\nCustom information type provided by the user. Used to find domain-specific\nsensitive information configurable to the data in question.\n\nGenerated from protobuf message `google.privacy.dlp.v2.CustomInfoType`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dlp \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getInfoType\n\nCustomInfoType can either be a new infoType, or an extension of built-in\ninfoType, when the name matches one of existing infoTypes and that infoType\nis specified in `InspectContent.info_types` field. Specifying the latter\nadds findings to the one detected by the system. If built-in info type is\nnot specified in `InspectContent.info_types` list then the name is treated\nas a custom info type.\n\n### hasInfoType\n\n### clearInfoType\n\n### setInfoType\n\nCustomInfoType can either be a new infoType, or an extension of built-in\ninfoType, when the name matches one of existing infoTypes and that infoType\nis specified in `InspectContent.info_types` field. Specifying the latter\nadds findings to the one detected by the system. If built-in info type is\nnot specified in `InspectContent.info_types` list then the name is treated\nas a custom info type.\n\n### getLikelihood\n\nLikelihood to return for this CustomInfoType. This base value can be\naltered by a detection rule if the finding meets the criteria specified by\nthe rule. Defaults to `VERY_LIKELY` if not specified.\n\n### setLikelihood\n\nLikelihood to return for this CustomInfoType. This base value can be\naltered by a detection rule if the finding meets the criteria specified by\nthe rule. Defaults to `VERY_LIKELY` if not specified.\n\n### getDictionary\n\nA list of phrases to detect as a CustomInfoType.\n\n### hasDictionary\n\n### setDictionary\n\nA list of phrases to detect as a CustomInfoType.\n\n### getRegex\n\nRegular expression based CustomInfoType.\n\n### hasRegex\n\n### setRegex\n\nRegular expression based CustomInfoType.\n\n### getSurrogateType\n\nMessage for detecting output from deidentification transformations that\nsupport reversing.\n\n### hasSurrogateType\n\n### setSurrogateType\n\nMessage for detecting output from deidentification transformations that\nsupport reversing.\n\n### getStoredType\n\nLoad an existing `StoredInfoType` resource for use in\n`InspectDataSource`. Not currently supported in `InspectContent`.\n\n### hasStoredType\n\n### setStoredType\n\nLoad an existing `StoredInfoType` resource for use in\n`InspectDataSource`. Not currently supported in `InspectContent`.\n\n### getDetectionRules\n\nSet of detection rules to apply to all findings of this CustomInfoType.\n\nRules are applied in order that they are specified. Not supported for the\n`surrogate_type` CustomInfoType.\n\n### setDetectionRules\n\nSet of detection rules to apply to all findings of this CustomInfoType.\n\nRules are applied in order that they are specified. Not supported for the\n`surrogate_type` CustomInfoType.\n\n### getExclusionType\n\nIf set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding\nto be returned. It still can be used for rules matching.\n\n### setExclusionType\n\nIf set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding\nto be returned. It still can be used for rules matching.\n\n### getSensitivityScore\n\nSensitivity for this CustomInfoType. If this CustomInfoType extends an\nexisting InfoType, the sensitivity here will take precedence over that of\nthe original InfoType. If unset for a CustomInfoType, it will default to\nHIGH.\n\nThis only applies to data profiling.\n\n### hasSensitivityScore\n\n### clearSensitivityScore\n\n### setSensitivityScore\n\nSensitivity for this CustomInfoType. If this CustomInfoType extends an\nexisting InfoType, the sensitivity here will take precedence over that of\nthe original InfoType. If unset for a CustomInfoType, it will default to\nHIGH.\n\nThis only applies to data profiling.\n\n### getType"]]