Interface DateShiftConfigOrBuilder (3.24.0)

public interface DateShiftConfigOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getContext()

public abstract FieldId 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.

.google.privacy.dlp.v2.FieldId context = 3;

Returns
TypeDescription
FieldId

The context.

getContextOrBuilder()

public abstract FieldIdOrBuilder getContextOrBuilder()

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.

.google.privacy.dlp.v2.FieldId context = 3;

Returns
TypeDescription
FieldIdOrBuilder

getCryptoKey()

public abstract CryptoKey getCryptoKey()

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.

.google.privacy.dlp.v2.CryptoKey crypto_key = 4;

Returns
TypeDescription
CryptoKey

The cryptoKey.

getCryptoKeyOrBuilder()

public abstract CryptoKeyOrBuilder getCryptoKeyOrBuilder()

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.

.google.privacy.dlp.v2.CryptoKey crypto_key = 4;

Returns
TypeDescription
CryptoKeyOrBuilder

getLowerBoundDays()

public abstract int getLowerBoundDays()

Required. For example, -5 means shift date to at most 5 days back in the past.

int32 lower_bound_days = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The lowerBoundDays.

getMethodCase()

public abstract DateShiftConfig.MethodCase getMethodCase()
Returns
TypeDescription
DateShiftConfig.MethodCase

getUpperBoundDays()

public abstract int 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.

int32 upper_bound_days = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The upperBoundDays.

hasContext()

public abstract boolean hasContext()

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.

.google.privacy.dlp.v2.FieldId context = 3;

Returns
TypeDescription
boolean

Whether the context field is set.

hasCryptoKey()

public abstract boolean hasCryptoKey()

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.

.google.privacy.dlp.v2.CryptoKey crypto_key = 4;

Returns
TypeDescription
boolean

Whether the cryptoKey field is set.