Data Loss Prevention V2 Client - Class LabelFieldMetadata (2.15.2)

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

The field values of the Google Drive label

Generated from protobuf message google.privacy.dlp.v2.FileLabel.GoogleDriveLabelMetadata.LabelFieldMetadata

Namespace

Google \ Cloud \ Dlp \ V2 \ FileLabel \ GoogleDriveLabelMetadata

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ id string

The identifier of the Label Field.

↳ value Google\Cloud\Dlp\V2\Value

The value of the Label Field.

getId

The identifier of the Label Field.

Returns
Type Description
string

setId

The identifier of the Label Field.

Parameter
Name Description
var string
Returns
Type Description
$this

getValue

The value of the Label Field.

Returns
Type Description
Google\Cloud\Dlp\V2\Value|null

hasValue

clearValue

setValue

The value of the Label Field.

Parameter
Name Description
var Google\Cloud\Dlp\V2\Value
Returns
Type Description
$this