Generated from protobuf messagegoogle.privacy.dlp.v2.DateShiftConfig
Namespace
Google \ Cloud \ Dlp \ V2
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ upper_bound_days
int
Required. Range of shift in days. Actual shift will be selected at random within this range (inclusive ends). Negative means shift to earlier in time. Must not be more than 365250 days (1000 years) each direction. For example, 3 means shift date to at most 3 days into the future.
↳ lower_bound_days
int
Required. For example, -5 means shift date to at most 5 days back in the past.
Points to the field that contains the context, for example, an entity id. If set, must also set cryptoKey. If set, shift will be consistent for the given context.
Causes the shift to be computed based on this key and the context. This results in the same shift for the same context and crypto_key. If set, must also set context. Can only be applied to table items.
getUpperBoundDays
Required. Range of shift in days. Actual shift will be selected at random
within this range (inclusive ends). Negative means shift to earlier in
time. Must not be more than 365250 days (1000 years) each direction.
For example, 3 means shift date to at most 3 days into the future.
Returns
Type
Description
int
setUpperBoundDays
Required. Range of shift in days. Actual shift will be selected at random
within this range (inclusive ends). Negative means shift to earlier in
time. Must not be more than 365250 days (1000 years) each direction.
For example, 3 means shift date to at most 3 days into the future.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getLowerBoundDays
Required. For example, -5 means shift date to at most 5 days back in the
past.
Returns
Type
Description
int
setLowerBoundDays
Required. For example, -5 means shift date to at most 5 days back in the
past.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getContext
Points to the field that contains the context, for example, an entity id.
If set, must also set cryptoKey. If set, shift will be consistent for the
given context.
Causes the shift to be computed based on this key and the context. This
results in the same shift for the same context and crypto_key. If
set, must also set context. Can only be applied to table items.
Causes the shift to be computed based on this key and the context. This
results in the same shift for the same context and crypto_key. If
set, must also set context. Can only be applied to table items.
[[["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 DateShiftConfig (2.6.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.6.1 (latest)](/php/docs/reference/cloud-dlp/latest/V2.DateShiftConfig)\n- [2.6.0](/php/docs/reference/cloud-dlp/2.6.0/V2.DateShiftConfig)\n- [2.4.1](/php/docs/reference/cloud-dlp/2.4.1/V2.DateShiftConfig)\n- [2.3.0](/php/docs/reference/cloud-dlp/2.3.0/V2.DateShiftConfig)\n- [2.2.3](/php/docs/reference/cloud-dlp/2.2.3/V2.DateShiftConfig)\n- [2.1.0](/php/docs/reference/cloud-dlp/2.1.0/V2.DateShiftConfig)\n- [2.0.0](/php/docs/reference/cloud-dlp/2.0.0/V2.DateShiftConfig)\n- [1.19.0](/php/docs/reference/cloud-dlp/1.19.0/V2.DateShiftConfig)\n- [1.18.0](/php/docs/reference/cloud-dlp/1.18.0/V2.DateShiftConfig)\n- [1.17.0](/php/docs/reference/cloud-dlp/1.17.0/V2.DateShiftConfig)\n- [1.16.0](/php/docs/reference/cloud-dlp/1.16.0/V2.DateShiftConfig)\n- [1.15.1](/php/docs/reference/cloud-dlp/1.15.1/V2.DateShiftConfig)\n- [1.14.0](/php/docs/reference/cloud-dlp/1.14.0/V2.DateShiftConfig)\n- [1.13.2](/php/docs/reference/cloud-dlp/1.13.2/V2.DateShiftConfig)\n- [1.12.0](/php/docs/reference/cloud-dlp/1.12.0/V2.DateShiftConfig)\n- [1.11.0](/php/docs/reference/cloud-dlp/1.11.0/V2.DateShiftConfig)\n- [1.10.2](/php/docs/reference/cloud-dlp/1.10.2/V2.DateShiftConfig)\n- [1.9.0](/php/docs/reference/cloud-dlp/1.9.0/V2.DateShiftConfig)\n- [1.8.6](/php/docs/reference/cloud-dlp/1.8.6/V2.DateShiftConfig) \nReference documentation and code samples for the Data Loss Prevention V2 Client class DateShiftConfig.\n\nShifts dates by random number of days, with option to be consistent for the\nsame context. See\n\u003chttps://cloud.google.com/sensitive-data-protection/docs/concepts-date-shifting\u003e\nto learn more.\n\nGenerated from protobuf message `google.privacy.dlp.v2.DateShiftConfig`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dlp \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getUpperBoundDays\n\nRequired. Range of shift in days. Actual shift will be selected at random\nwithin this range (inclusive ends). Negative means shift to earlier in\ntime. Must not be more than 365250 days (1000 years) each direction.\n\nFor example, 3 means shift date to at most 3 days into the future.\n\n### setUpperBoundDays\n\nRequired. Range of shift in days. Actual shift will be selected at random\nwithin this range (inclusive ends). Negative means shift to earlier in\ntime. Must not be more than 365250 days (1000 years) each direction.\n\nFor example, 3 means shift date to at most 3 days into the future.\n\n### getLowerBoundDays\n\nRequired. For example, -5 means shift date to at most 5 days back in the\npast.\n\n### setLowerBoundDays\n\nRequired. For example, -5 means shift date to at most 5 days back in the\npast.\n\n### getContext\n\nPoints to the field that contains the context, for example, an entity id.\n\nIf set, must also set cryptoKey. If set, shift will be consistent for the\ngiven context.\n\n### hasContext\n\n### clearContext\n\n### setContext\n\nPoints to the field that contains the context, for example, an entity id.\n\nIf set, must also set cryptoKey. If set, shift will be consistent for the\ngiven context.\n\n### getCryptoKey\n\nCauses the shift to be computed based on this key and the context. This\nresults in the same shift for the same context and crypto_key. If\nset, must also set context. Can only be applied to table items.\n\n### hasCryptoKey\n\n### setCryptoKey\n\nCauses the shift to be computed based on this key and the context. This\nresults in the same shift for the same context and crypto_key. If\nset, must also set context. Can only be applied to table items.\n\n### getMethod"]]