public static final class DateShiftConfig.Builder extends GeneratedMessageV3.Builder<DateShiftConfig.Builder> implements DateShiftConfigOrBuilder
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DateShiftConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public DateShiftConfig build()
Returns
buildPartial()
public DateShiftConfig buildPartial()
Returns
clear()
public DateShiftConfig.Builder clear()
Returns
Overrides
clearContext()
public DateShiftConfig.Builder clearContext()
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
clearCryptoKey()
public DateShiftConfig.Builder clearCryptoKey()
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
clearField(Descriptors.FieldDescriptor field)
public DateShiftConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearLowerBoundDays()
public DateShiftConfig.Builder clearLowerBoundDays()
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
clearMethod()
public DateShiftConfig.Builder clearMethod()
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public DateShiftConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearUpperBoundDays()
public DateShiftConfig.Builder clearUpperBoundDays()
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
clone()
public DateShiftConfig.Builder clone()
Returns
Overrides
getContext()
public 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
getContextBuilder()
public FieldId.Builder getContextBuilder()
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
getContextOrBuilder()
public 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
getCryptoKey()
public 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
getCryptoKeyBuilder()
public CryptoKey.Builder getCryptoKeyBuilder()
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
getCryptoKeyOrBuilder()
public 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
getDefaultInstanceForType()
public DateShiftConfig getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getLowerBoundDays()
public 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
Type | Description |
int | The lowerBoundDays.
|
getMethodCase()
public DateShiftConfig.MethodCase getMethodCase()
Returns
getUpperBoundDays()
public 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
Type | Description |
int | The upperBoundDays.
|
hasContext()
public 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
Type | Description |
boolean | Whether the context field is set.
|
hasCryptoKey()
public 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
Type | Description |
boolean | Whether the cryptoKey field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeContext(FieldId value)
public DateShiftConfig.Builder mergeContext(FieldId value)
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;
Parameter
Returns
mergeCryptoKey(CryptoKey value)
public DateShiftConfig.Builder mergeCryptoKey(CryptoKey value)
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;
Parameter
Returns
mergeFrom(DateShiftConfig other)
public DateShiftConfig.Builder mergeFrom(DateShiftConfig other)
Parameter
Returns
public DateShiftConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public DateShiftConfig.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DateShiftConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setContext(FieldId value)
public DateShiftConfig.Builder setContext(FieldId value)
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;
Parameter
Returns
setContext(FieldId.Builder builderForValue)
public DateShiftConfig.Builder setContext(FieldId.Builder builderForValue)
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;
Parameter
Returns
setCryptoKey(CryptoKey value)
public DateShiftConfig.Builder setCryptoKey(CryptoKey value)
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;
Parameter
Returns
setCryptoKey(CryptoKey.Builder builderForValue)
public DateShiftConfig.Builder setCryptoKey(CryptoKey.Builder builderForValue)
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;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public DateShiftConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setLowerBoundDays(int value)
public DateShiftConfig.Builder setLowerBoundDays(int value)
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];
Parameter
Name | Description |
value | int
The lowerBoundDays to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DateShiftConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final DateShiftConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setUpperBoundDays(int value)
public DateShiftConfig.Builder setUpperBoundDays(int value)
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];
Parameter
Name | Description |
value | int
The upperBoundDays to set.
|
Returns