Reference documentation and code samples for the Data Loss Prevention V2 Client class GoogleDriveLabelMetadata.
Google Drive labels published by Google.
Generated from protobuf message google.privacy.dlp.v2.FileLabel.GoogleDriveLabelMetadata
Namespace
Google \ Cloud \ Dlp \ V2 \ FileLabelMethods
__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 |
array<GoogleDriveLabelMetadata\LabelFieldMetadata>
The field values of the Google Drive label |
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 |
|
getLabelFields
The field values of the Google Drive label
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<GoogleDriveLabelMetadata\LabelFieldMetadata> |
|
setLabelFields
The field values of the Google Drive label
| Parameter | |
|---|---|
| Name | Description |
var |
array<GoogleDriveLabelMetadata\LabelFieldMetadata>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|