Reference documentation and code samples for the Data Loss Prevention V2 Client class TimePartConfig.
For use with Date, Timestamp, and TimeOfDay, extract or preserve a
portion of the value.
Generated from protobuf message google.privacy.dlp.v2.TimePartConfig
Namespace
Google \ Cloud \ Dlp \ V2Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ part_to_extract |
int
The part of the time to keep. |
getPartToExtract
The part of the time to keep.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type TimePart. |
setPartToExtract
The part of the time to keep.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type TimePart. |
| Returns | |
|---|---|
| Type | Description |
$this |
|