Reference documentation and code samples for the Data Loss Prevention V2 Client class InfoType.
Type of information detected by the API.
Generated from protobuf messagegoogle.privacy.dlp.v2.InfoType
Namespace
Google \ Cloud \ Dlp \ V2
Methods
__construct
Constructor.
Parameters
Name
Description
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 athttps://cloud.google.com/sensitive-data-protection/docs/infotypes-referencewhen 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}.
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
athttps://cloud.google.com/sensitive-data-protection/docs/infotypes-referencewhen 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
Type
Description
string
setName
Name of the information type. Either a name of your choosing when
creating a CustomInfoType, or one of the names listed
athttps://cloud.google.com/sensitive-data-protection/docs/infotypes-referencewhen 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}.
[[["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-09 UTC."],[],[],null,["# Data Loss Prevention V2 Client - Class InfoType (2.6.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.6.1 (latest)](/php/docs/reference/cloud-dlp/latest/V2.InfoType)\n- [2.6.0](/php/docs/reference/cloud-dlp/2.6.0/V2.InfoType)\n- [2.4.1](/php/docs/reference/cloud-dlp/2.4.1/V2.InfoType)\n- [2.3.0](/php/docs/reference/cloud-dlp/2.3.0/V2.InfoType)\n- [2.2.3](/php/docs/reference/cloud-dlp/2.2.3/V2.InfoType)\n- [2.1.0](/php/docs/reference/cloud-dlp/2.1.0/V2.InfoType)\n- [2.0.0](/php/docs/reference/cloud-dlp/2.0.0/V2.InfoType)\n- [1.19.0](/php/docs/reference/cloud-dlp/1.19.0/V2.InfoType)\n- [1.18.0](/php/docs/reference/cloud-dlp/1.18.0/V2.InfoType)\n- [1.17.0](/php/docs/reference/cloud-dlp/1.17.0/V2.InfoType)\n- [1.16.0](/php/docs/reference/cloud-dlp/1.16.0/V2.InfoType)\n- [1.15.1](/php/docs/reference/cloud-dlp/1.15.1/V2.InfoType)\n- [1.14.0](/php/docs/reference/cloud-dlp/1.14.0/V2.InfoType)\n- [1.13.2](/php/docs/reference/cloud-dlp/1.13.2/V2.InfoType)\n- [1.12.0](/php/docs/reference/cloud-dlp/1.12.0/V2.InfoType)\n- [1.11.0](/php/docs/reference/cloud-dlp/1.11.0/V2.InfoType)\n- [1.10.2](/php/docs/reference/cloud-dlp/1.10.2/V2.InfoType)\n- [1.9.0](/php/docs/reference/cloud-dlp/1.9.0/V2.InfoType)\n- [1.8.6](/php/docs/reference/cloud-dlp/1.8.6/V2.InfoType) \nReference documentation and code samples for the Data Loss Prevention V2 Client class InfoType.\n\nType of information detected by the API.\n\nGenerated from protobuf message `google.privacy.dlp.v2.InfoType`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dlp \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nName of the information type. Either a name of your choosing when\ncreating a CustomInfoType, or one of the names listed\nat\n\u003chttps://cloud.google.com/sensitive-data-protection/docs/infotypes-reference\u003e\nwhen specifying a built-in type. When sending Cloud DLP results to Data\nCatalog, infoType names should conform to the pattern\n`[A-Za-z0-9$_-]{1,64}`.\n\n### setName\n\nName of the information type. Either a name of your choosing when\ncreating a CustomInfoType, or one of the names listed\nat\n\u003chttps://cloud.google.com/sensitive-data-protection/docs/infotypes-reference\u003e\nwhen specifying a built-in type. When sending Cloud DLP results to Data\nCatalog, infoType names should conform to the pattern\n`[A-Za-z0-9$_-]{1,64}`.\n\n### getVersion\n\nOptional version name for this InfoType.\n\n### setVersion\n\nOptional version name for this InfoType.\n\n### getSensitivityScore\n\nOptional custom sensitivity for this InfoType.\n\nThis only applies to data profiling.\n\n### hasSensitivityScore\n\n### clearSensitivityScore\n\n### setSensitivityScore\n\nOptional custom sensitivity for this InfoType.\n\nThis only applies to data profiling."]]