Class DateShiftConfig (3.49.0)

public final class DateShiftConfig extends GeneratedMessageV3 implements DateShiftConfigOrBuilder

Shifts dates by random number of days, with option to be consistent for the same context. See https://cloud.google.com/sensitive-data-protection/docs/concepts-date-shifting to learn more.

Protobuf type google.privacy.dlp.v2.DateShiftConfig

Static Fields

CONTEXT_FIELD_NUMBER

public static final int CONTEXT_FIELD_NUMBER
Field Value
Type Description
int

CRYPTO_KEY_FIELD_NUMBER

public static final int CRYPTO_KEY_FIELD_NUMBER
Field Value
Type Description
int

LOWER_BOUND_DAYS_FIELD_NUMBER

public static final int LOWER_BOUND_DAYS_FIELD_NUMBER
Field Value
Type Description
int

UPPER_BOUND_DAYS_FIELD_NUMBER

public static final int UPPER_BOUND_DAYS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static DateShiftConfig getDefaultInstance()
Returns
Type Description
DateShiftConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static DateShiftConfig.Builder newBuilder()
Returns
Type Description
DateShiftConfig.Builder

newBuilder(DateShiftConfig prototype)

public static DateShiftConfig.Builder newBuilder(DateShiftConfig prototype)
Parameter
Name Description
prototype DateShiftConfig
Returns
Type Description
DateShiftConfig.Builder

parseDelimitedFrom(InputStream input)

public static DateShiftConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DateShiftConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DateShiftConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DateShiftConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static DateShiftConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
DateShiftConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static DateShiftConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DateShiftConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static DateShiftConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
DateShiftConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static DateShiftConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DateShiftConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static DateShiftConfig parseFr