[[["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 DataProfileAction (2.6.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.6.1 (latest)](/php/docs/reference/cloud-dlp/latest/V2.DataProfileAction)\n- [2.6.0](/php/docs/reference/cloud-dlp/2.6.0/V2.DataProfileAction)\n- [2.4.1](/php/docs/reference/cloud-dlp/2.4.1/V2.DataProfileAction)\n- [2.3.0](/php/docs/reference/cloud-dlp/2.3.0/V2.DataProfileAction)\n- [2.2.3](/php/docs/reference/cloud-dlp/2.2.3/V2.DataProfileAction)\n- [2.1.0](/php/docs/reference/cloud-dlp/2.1.0/V2.DataProfileAction)\n- [2.0.0](/php/docs/reference/cloud-dlp/2.0.0/V2.DataProfileAction)\n- [1.19.0](/php/docs/reference/cloud-dlp/1.19.0/V2.DataProfileAction)\n- [1.18.0](/php/docs/reference/cloud-dlp/1.18.0/V2.DataProfileAction)\n- [1.17.0](/php/docs/reference/cloud-dlp/1.17.0/V2.DataProfileAction)\n- [1.16.0](/php/docs/reference/cloud-dlp/1.16.0/V2.DataProfileAction)\n- [1.15.1](/php/docs/reference/cloud-dlp/1.15.1/V2.DataProfileAction)\n- [1.14.0](/php/docs/reference/cloud-dlp/1.14.0/V2.DataProfileAction)\n- [1.13.2](/php/docs/reference/cloud-dlp/1.13.2/V2.DataProfileAction)\n- [1.12.0](/php/docs/reference/cloud-dlp/1.12.0/V2.DataProfileAction)\n- [1.11.0](/php/docs/reference/cloud-dlp/1.11.0/V2.DataProfileAction)\n- [1.10.2](/php/docs/reference/cloud-dlp/1.10.2/V2.DataProfileAction)\n- [1.9.0](/php/docs/reference/cloud-dlp/1.9.0/V2.DataProfileAction)\n- [1.8.6](/php/docs/reference/cloud-dlp/1.8.6/V2.DataProfileAction) \nReference documentation and code samples for the Data Loss Prevention V2 Client class DataProfileAction.\n\nA task to execute when a data profile has been generated.\n\nGenerated from protobuf message `google.privacy.dlp.v2.DataProfileAction`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dlp \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getExportData\n\nExport data profiles into a provided location.\n\n### hasExportData\n\n### setExportData\n\nExport data profiles into a provided location.\n\n### getPubSubNotification\n\nPublish a message into the Pub/Sub topic.\n\n### hasPubSubNotification\n\n### setPubSubNotification\n\nPublish a message into the Pub/Sub topic.\n\n### getPublishToChronicle\n\nPublishes generated data profiles to Google Security Operations.\n\nFor more information, see [Use Sensitive Data Protection data in\ncontext-aware\nanalytics](https://cloud.google.com/chronicle/docs/detection/usecase-dlp-high-risk-user-download).\n\n### hasPublishToChronicle\n\n### setPublishToChronicle\n\nPublishes generated data profiles to Google Security Operations.\n\nFor more information, see [Use Sensitive Data Protection data in\ncontext-aware\nanalytics](https://cloud.google.com/chronicle/docs/detection/usecase-dlp-high-risk-user-download).\n\n### getPublishToScc\n\nPublishes findings to Security Command Center for each data profile.\n\n### hasPublishToScc\n\n### setPublishToScc\n\nPublishes findings to Security Command Center for each data profile.\n\n### getTagResources\n\nTags the profiled resources with the specified tag values.\n\n### hasTagResources\n\n### setTagResources\n\nTags the profiled resources with the specified tag values.\n\n### getPublishToDataplexCatalog\n\nPublishes a portion of each profile to Dataplex Catalog with the aspect\ntype Sensitive Data Protection Profile.\n\n### hasPublishToDataplexCatalog\n\n### setPublishToDataplexCatalog\n\nPublishes a portion of each profile to Dataplex Catalog with the aspect\ntype Sensitive Data Protection Profile.\n\n### getAction"]]