Data Loss Prevention V2 Client - Class GoogleDriveLabel (2.15.2)

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

Google Drive labels published by Google.

Generated from protobuf message google.privacy.dlp.v2.CustomInfoType.FileLabelInfoType.GoogleDriveLabel

Namespace

Google \ Cloud \ Dlp \ V2 \ CustomInfoType \ FileLabelInfoType

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ label_id string

The label ID of the Google Drive label.

↳ label_fields_to_match array<GoogleDriveLabel\LabelField>

The field values of the Google Drive label to match.

getLabelId

The label ID of the Google Drive label.

Returns
Type Description
string

setLabelId

The label ID of the Google Drive label.

Parameter
Name Description
var string
Returns
Type Description
$this

getLabelFieldsToMatch

The field values of the Google Drive label to match.

Returns
Type Description
Google\Protobuf\RepeatedField<GoogleDriveLabel\LabelField>

setLabelFieldsToMatch

The field values of the Google Drive label to match.

Parameter
Name Description
var array<GoogleDriveLabel\LabelField>
Returns
Type Description
$this