Data Loss Prevention V2 Client - Class DataProfilePubSubMessage (1.10.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
NameDescription
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
TypeDescription
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
NameDescription
var Google\Cloud\Dlp\V2\TableDataProfile
Returns
TypeDescription
$this

getEvent

The event that caused the Pub/Sub message to be sent.

Returns
TypeDescription
int

setEvent

The event that caused the Pub/Sub message to be sent.

Parameter
NameDescription
var int
Returns
TypeDescription
$this