Reference documentation and code samples for the Data Loss Prevention V2 Client class FileLabelInfoType.
Configuration for a custom infoType that detects file labels.
Generated from protobuf message google.privacy.dlp.v2.CustomInfoType.FileLabelInfoType
Namespace
Google \ Cloud \ Dlp \ V2 \ CustomInfoTypeMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ sensitivity_label |
FileLabelInfoType\SensitivityLabel
Sensitivity labels published by Microsoft. |
↳ google_drive_label |
FileLabelInfoType\GoogleDriveLabel
Google Drive labels published by Google. |
getSensitivityLabel
Sensitivity labels published by Microsoft.
| Returns | |
|---|---|
| Type | Description |
FileLabelInfoType\SensitivityLabel|null |
|
hasSensitivityLabel
setSensitivityLabel
Sensitivity labels published by Microsoft.
| Parameter | |
|---|---|
| Name | Description |
var |
FileLabelInfoType\SensitivityLabel
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getGoogleDriveLabel
Google Drive labels published by Google.
| Returns | |
|---|---|
| Type | Description |
FileLabelInfoType\GoogleDriveLabel|null |
|
hasGoogleDriveLabel
setGoogleDriveLabel
Google Drive labels published by Google.
| Parameter | |
|---|---|
| Name | Description |
var |
FileLabelInfoType\GoogleDriveLabel
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getType
| Returns | |
|---|---|
| Type | Description |
string |
|