- 3.87.0 (latest)
- 3.86.0
- 3.85.0
- 3.84.0
- 3.82.0
- 3.80.0
- 3.79.0
- 3.78.0
- 3.77.0
- 3.76.0
- 3.74.0
- 3.72.0
- 3.71.0
- 3.68.0
- 3.67.0
- 3.66.0
- 3.64.0
- 3.63.0
- 3.62.0
- 3.61.0
- 3.60.0
- 3.59.0
- 3.58.0
- 3.57.0
- 3.56.0
- 3.55.0
- 3.53.0
- 3.52.0
- 3.51.0
- 3.50.0
- 3.49.0
- 3.48.0
- 3.47.0
- 3.46.0
- 3.45.0
- 3.44.0
- 3.43.0
- 3.41.0
- 3.40.0
- 3.39.0
- 3.38.0
- 3.37.0
- 3.36.0
- 3.35.0
- 3.34.0
- 3.33.0
- 3.32.0
- 3.31.0
- 3.28.0
- 3.27.0
- 3.26.0
- 3.25.0
- 3.24.0
- 3.23.0
- 3.22.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.8.0
- 3.7.6
- 3.6.7
- 3.5.0
- 3.4.0
- 3.3.2
- 3.2.1
- 3.1.4
public static final class DateShiftConfig.Builder extends GeneratedMessage.Builder<DateShiftConfig.Builder> implements DateShiftConfigOrBuilderShifts 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
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > DateShiftConfig.BuilderImplements
DateShiftConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public DateShiftConfig build()| Returns | |
|---|---|
| Type | Description |
DateShiftConfig |
|
buildPartial()
public DateShiftConfig buildPartial()| Returns | |
|---|---|
| Type | Description |
DateShiftConfig |
|
clear()
public DateShiftConfig.Builder clear()| Returns | |
|---|---|
| Type | Description |
DateShiftConfig.Builder |
|
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 | |
|---|---|
| Type | Description |
DateShiftConfig.Builder |
|
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 | |
|---|---|
| Type | Description |
DateShiftConfig.Builder |
|
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 | |
|---|---|
| Type | Description |
DateShiftConfig.Builder |
This builder for chaining. |
clearMethod()
public DateShiftConfig.Builder clearMethod()| Returns | |
|---|---|
| Type | Description |
DateShiftConfig.Builder |
|
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 | |
|---|---|
| Type | Description |
DateShiftConfig.Builder |
This builder for chaining. |
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 | |
|---|---|
| Type | Description |
FieldId |
The context. |
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 | |
|---|---|
| Type | Description |
FieldId.Builder |
|
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 | |
|---|---|
| Type | Description |
FieldIdOrBuilder |
|
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 | |
|---|---|
| Type | Description |
CryptoKey |
The cryptoKey. |
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 | |
|---|---|
| Type | Description |
CryptoKey.Builder |
|
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 | |
|---|---|
| Type | Description |
CryptoKeyOrBuilder |
|
getDefaultInstanceForType()
public DateShiftConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
DateShiftConfig |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 | |
|---|---|
| Type | Description |
DateShiftConfig.MethodCase |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 | |
|---|---|
| Name | Description |
value |
FieldId |
| Returns | |
|---|---|
| Type | Description |
DateShiftConfig.Builder |
|
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 | |
|---|---|
| Name | Description |
value |
CryptoKey |
| Returns | |
|---|---|
| Type | Description |
DateShiftConfig.Builder |
|
mergeFrom(DateShiftConfig other)
public DateShiftConfig.Builder mergeFrom(DateShiftConfig other)| Parameter | |
|---|---|
| Name | Description |
other |
DateShiftConfig |
| Returns | |
|---|---|
| Type | Description |
DateShiftConfig.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public DateShiftConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DateShiftConfig.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public DateShiftConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
DateShiftConfig.Builder |
|
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 | |
|---|---|
| Name | Description |
value |
FieldId |
| Returns | |
|---|---|
| Type | Description |
DateShiftConfig.Builder |
|
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 | |
|---|---|
| Name | Description |
builderForValue |
FieldId.Builder |
| Returns | |
|---|---|
| Type | Description |
DateShiftConfig.Builder |
|
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 | |
|---|---|
| Name | Description |
value |
CryptoKey |
| Returns | |
|---|---|
| Type | Description |
DateShiftConfig.Builder |
|
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 | |
|---|---|
| Name | Description |
builderForValue |
CryptoKey.Builder |
| Returns | |
|---|---|
| Type | Description |
DateShiftConfig.Builder |
|
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 |
intThe lowerBoundDays to set. |
| Returns | |
|---|---|
| Type | Description |
DateShiftConfig.Builder |
This builder for chaining. |
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 |
intThe upperBoundDays to set. |
| Returns | |
|---|---|
| Type | Description |
DateShiftConfig.Builder |
This builder for chaining. |