Reference documentation and code samples for the Data Loss Prevention V2 Client class DataProfilePubSubMessage.
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.
Generated from protobuf message google.privacy.dlp.v2.DataProfilePubSubMessage
Namespace
Google \ Cloud \ Dlp \ V2Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ profile |
TableDataProfile
If |
↳ file_store_profile |
FileStoreDataProfile
If |
↳ event |
int
The event that caused the Pub/Sub message to be sent. |
getProfile
If DetailLevel
is TABLE_PROFILE
this will be fully populated.
Otherwise, if DetailLevel
is RESOURCE_NAME
, then only name
and
full_resource
will be populated.
Returns | |
---|---|
Type | Description |
TableDataProfile|null |
hasProfile
clearProfile
setProfile
If DetailLevel
is TABLE_PROFILE
this will be fully populated.
Otherwise, if DetailLevel
is RESOURCE_NAME
, then only name
and
full_resource
will be populated.
Parameter | |
---|---|
Name | Description |
var |
TableDataProfile
|
Returns | |
---|---|
Type | Description |
$this |
getFileStoreProfile
If DetailLevel
is FILE_STORE_PROFILE
this will be fully populated.
Otherwise, if DetailLevel
is RESOURCE_NAME
, then only name
and
file_store_path
will be populated.
Returns | |
---|---|
Type | Description |
FileStoreDataProfile|null |
hasFileStoreProfile
clearFileStoreProfile
setFileStoreProfile
If DetailLevel
is FILE_STORE_PROFILE
this will be fully populated.
Otherwise, if DetailLevel
is RESOURCE_NAME
, then only name
and
file_store_path
will be populated.
Parameter | |
---|---|
Name | Description |
var |
FileStoreDataProfile
|
Returns | |
---|---|
Type | Description |
$this |
getEvent
The event that caused the Pub/Sub message to be sent.
Returns | |
---|---|
Type | Description |
int |
setEvent
The event that caused the Pub/Sub message to be sent.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |