Data Loss Prevention V2 Client - Class ContentMetadata (2.15.2)

Reference documentation and code samples for the Data Loss Prevention V2 Client class ContentMetadata.

Metadata on content to be scanned.

Generated from protobuf message google.privacy.dlp.v2.ContentMetadata

Namespace

Google \ Cloud \ Dlp \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ properties array<KeyValueMetadataProperty>

User provided key-value pairs of content metadata.

↳ file_labels array<FileLabel>

Optional. The file labels associated with the content.

getProperties

User provided key-value pairs of content metadata.

Returns
Type Description
Google\Protobuf\RepeatedField<KeyValueMetadataProperty>

setProperties

User provided key-value pairs of content metadata.

Parameter
Name Description
var array<KeyValueMetadataProperty>
Returns
Type Description
$this

getFileLabels

Optional. The file labels associated with the content.

Returns
Type Description
Google\Protobuf\RepeatedField<FileLabel>

setFileLabels

Optional. The file labels associated with the content.

Parameter
Name Description
var array<FileLabel>
Returns
Type Description
$this