Data Loss Prevention V2 Client - Class MetadataLocation (1.8.6)

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

Metadata Location

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ type int

Type of metadata containing the finding.

↳ storage_label Google\Cloud\Dlp\V2\StorageMetadataLabel

Storage metadata.

getType

Type of metadata containing the finding.

Returns
TypeDescription
int

setType

Type of metadata containing the finding.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getStorageLabel

Storage metadata.

Returns
TypeDescription
Google\Cloud\Dlp\V2\StorageMetadataLabel|null

hasStorageLabel

setStorageLabel

Storage metadata.

Parameter
NameDescription
var Google\Cloud\Dlp\V2\StorageMetadataLabel
Returns
TypeDescription
$this

getLabel

Returns
TypeDescription
string