Data Loss Prevention V2 Client - Class TimePart (2.6.1)
Stay organized with collections
Save and categorize content based on your preferences.
Reference documentation and code samples for the Data Loss Prevention V2 Client class TimePart.
Components that make up time.
Protobuf type google.privacy.dlp.v2.TimePartConfig.TimePart
Namespace
Google \ Cloud \ Dlp \ V2 \ TimePartConfig
Methods
static::name
static::value
Constants
TIME_PART_UNSPECIFIED
Unused
Generated from protobuf enum TIME_PART_UNSPECIFIED = 0;
YEAR
[0-9999]
Generated from protobuf enum YEAR = 1;
MONTH
[1-12]
Generated from protobuf enum MONTH = 2;
DAY_OF_MONTH
[1-31]
Generated from protobuf enum DAY_OF_MONTH = 3;
DAY_OF_WEEK
[1-7]
Generated from protobuf enum DAY_OF_WEEK = 4;
WEEK_OF_YEAR
[1-53]
Generated from protobuf enum WEEK_OF_YEAR = 5;
HOUR_OF_DAY
[0-23]
Generated from protobuf enum HOUR_OF_DAY = 6;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-04 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Data Loss Prevention V2 Client - Class TimePart (2.6.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.6.1 (latest)](/php/docs/reference/cloud-dlp/latest/V2.TimePartConfig.TimePart)\n- [2.6.0](/php/docs/reference/cloud-dlp/2.6.0/V2.TimePartConfig.TimePart)\n- [2.4.1](/php/docs/reference/cloud-dlp/2.4.1/V2.TimePartConfig.TimePart)\n- [2.3.0](/php/docs/reference/cloud-dlp/2.3.0/V2.TimePartConfig.TimePart)\n- [2.2.3](/php/docs/reference/cloud-dlp/2.2.3/V2.TimePartConfig.TimePart)\n- [2.1.0](/php/docs/reference/cloud-dlp/2.1.0/V2.TimePartConfig.TimePart)\n- [2.0.0](/php/docs/reference/cloud-dlp/2.0.0/V2.TimePartConfig.TimePart)\n- [1.19.0](/php/docs/reference/cloud-dlp/1.19.0/V2.TimePartConfig.TimePart)\n- [1.18.0](/php/docs/reference/cloud-dlp/1.18.0/V2.TimePartConfig.TimePart)\n- [1.17.0](/php/docs/reference/cloud-dlp/1.17.0/V2.TimePartConfig.TimePart)\n- [1.16.0](/php/docs/reference/cloud-dlp/1.16.0/V2.TimePartConfig.TimePart)\n- [1.15.1](/php/docs/reference/cloud-dlp/1.15.1/V2.TimePartConfig.TimePart)\n- [1.14.0](/php/docs/reference/cloud-dlp/1.14.0/V2.TimePartConfig.TimePart)\n- [1.13.2](/php/docs/reference/cloud-dlp/1.13.2/V2.TimePartConfig.TimePart)\n- [1.12.0](/php/docs/reference/cloud-dlp/1.12.0/V2.TimePartConfig.TimePart)\n- [1.11.0](/php/docs/reference/cloud-dlp/1.11.0/V2.TimePartConfig.TimePart)\n- [1.10.2](/php/docs/reference/cloud-dlp/1.10.2/V2.TimePartConfig.TimePart)\n- [1.9.0](/php/docs/reference/cloud-dlp/1.9.0/V2.TimePartConfig.TimePart)\n- [1.8.6](/php/docs/reference/cloud-dlp/1.8.6/V2.TimePartConfig.TimePart) \nReference documentation and code samples for the Data Loss Prevention V2 Client class TimePart.\n\nComponents that make up time.\n\nProtobuf type `google.privacy.dlp.v2.TimePartConfig.TimePart`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dlp \\\\ V2 \\\\ TimePartConfig\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### TIME_PART_UNSPECIFIED\n\n Value: 0\n\nUnused\n\nGenerated from protobuf enum `TIME_PART_UNSPECIFIED = 0;`\n\n### YEAR\n\n Value: 1\n\n\\[0-9999\\]\n\nGenerated from protobuf enum `YEAR = 1;`\n\n### MONTH\n\n Value: 2\n\n\\[1-12\\]\n\nGenerated from protobuf enum `MONTH = 2;`\n\n### DAY_OF_MONTH\n\n Value: 3\n\n\\[1-31\\]\n\nGenerated from protobuf enum `DAY_OF_MONTH = 3;`\n\n### DAY_OF_WEEK\n\n Value: 4\n\n\\[1-7\\]\n\nGenerated from protobuf enum `DAY_OF_WEEK = 4;`\n\n### WEEK_OF_YEAR\n\n Value: 5\n\n\\[1-53\\]\n\nGenerated from protobuf enum `WEEK_OF_YEAR = 5;`\n\n### HOUR_OF_DAY\n\n Value: 6\n\n\\[0-23\\]\n\nGenerated from protobuf enum `HOUR_OF_DAY = 6;`"]]