public sealed class DateShiftConfig : IMessage<DateShiftConfig>, IEquatable<DateShiftConfig>, IDeepCloneable<DateShiftConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Data Loss Prevention v2 API class DateShiftConfig.
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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis webpage provides reference documentation for the \u003ccode\u003eDateShiftConfig\u003c/code\u003e class within the Google Cloud Data Loss Prevention (DLP) v2 API for .NET, with the latest version being 4.16.0 and version 4.4.0 being the current active reference.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDateShiftConfig\u003c/code\u003e is a tool for shifting dates by a random number of days, and offers an option to maintain consistency for the same context, and this process is explained further at the provided link.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDateShiftConfig\u003c/code\u003e class implements multiple interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from the \u003ccode\u003eObject\u003c/code\u003e class, making the \u003ccode\u003eGetHashCode\u003c/code\u003e, \u003ccode\u003eGetType\u003c/code\u003e, \u003ccode\u003eMemberwiseClone\u003c/code\u003e and \u003ccode\u003eToString\u003c/code\u003e functions available.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003eDateShiftConfig\u003c/code\u003e include \u003ccode\u003eContext\u003c/code\u003e for defining the context field, \u003ccode\u003eCryptoKey\u003c/code\u003e for generating consistent shifts, \u003ccode\u003eLowerBoundDays\u003c/code\u003e to set the minimum shift days, \u003ccode\u003eUpperBoundDays\u003c/code\u003e to set the maximum shift days, and \u003ccode\u003eMethodCase\u003c/code\u003e to identify the current method being used.\u003c/p\u003e\n"],["\u003cp\u003eConstructors are available for creating a new \u003ccode\u003eDateShiftConfig\u003c/code\u003e instance or for creating one based off an existing \u003ccode\u003eDateShiftConfig\u003c/code\u003e object, which takes in an \u003ccode\u003eother\u003c/code\u003e parameter of type \u003ccode\u003eDateShiftConfig\u003c/code\u003e to copy from.\u003c/p\u003e\n"]]],[],null,[]]