# DataProfilePubSubMessage

- [JSON representation](https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/DataProfilePubSubMessage#SCHEMA_REPRESENTATION)

Pub/Sub topic message for a DataProfileAction.PubSubNotification event. To receive a message of protocol buffer schema type, convert the message data to an object of this proto class.

| JSON representation |
|---|
| ``` { "profile": { object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/organizations.locations.tableDataProfiles#TableDataProfile`) }, "fileStoreProfile": { object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/organizations.locations.fileStoreDataProfiles#FileStoreDataProfile`) }, "event": enum (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/DataProfileAction#EventType`) } ``` |

| Fields ||
|---|---|
| `profile` | ``object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/organizations.locations.tableDataProfiles#TableDataProfile`)`` If `DetailLevel` is `TABLE_PROFILE` this will be fully populated. Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and `fullResource` will be populated. |
| `fileStoreProfile` | ``object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/organizations.locations.fileStoreDataProfiles#FileStoreDataProfile`)`` If `DetailLevel` is `FILE_STORE_PROFILE` this will be fully populated. Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and `fileStorePath` will be populated. |
| `event` | ``enum (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/DataProfileAction#EventType`)`` The event that caused the Pub/Sub message to be sent. |