Data Loss Prevention V2 Client - Class DataProfilePubSubMessage (1.13.2)

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 \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ profile Google\Cloud\Dlp\V2\TableDataProfile

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.

↳ 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
Google\Cloud\Dlp\V2\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 Google\Cloud\Dlp\V2\TableDataProfile
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