Data Loss Prevention V2 Client - Class MetadataLocation (1.11.0)

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

Namespace

Google \ Cloud \ Dlp \ V2

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