public static final class DateShiftConfig.Builder extends GeneratedMessageV3.Builder<DateShiftConfig.Builder> implements DateShiftConfigOrBuilder
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DateShiftConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public DateShiftConfig build()
buildPartial()
public DateShiftConfig buildPartial()
clear()
public DateShiftConfig.Builder clear()
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;
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;
clearField(Descriptors.FieldDescriptor field)
public DateShiftConfig.Builder clearField(Descriptors.FieldDescriptor field)
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];
clearMethod()
public DateShiftConfig.Builder clearMethod()
clearOneof(Descriptors.OneofDescriptor oneof)
public DateShiftConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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];
clone()
public DateShiftConfig.Builder clone()
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 |
---|
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;
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;
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;
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;
getDefaultInstanceForType()
public DateShiftConfig getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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()
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()
Overrides
isInitialized()
public final boolean isInitialized()
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 |
---|
Name | Description |
value | FieldId
|
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;
mergeFrom(DateShiftConfig other)
public DateShiftConfig.Builder mergeFrom(DateShiftConfig other)
public DateShiftConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public DateShiftConfig.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DateShiftConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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 |
---|
Name | Description |
value | FieldId
|
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;
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;
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;
setField(Descriptors.FieldDescriptor field, Object value)
public DateShiftConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DateShiftConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final DateShiftConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
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.
|