public static final class DateShiftConfig.Builder extends GeneratedMessageV3.Builder<DateShiftConfig.Builder> implements DateShiftConfigOrBuilder
Shifts dates by random number of days, with option to be consistent for the same context.Protobuf type
google.privacy.dlp.v2beta2.DateShiftConfig| Modifier and Type | Method and Description |
|---|---|
DateShiftConfig.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
DateShiftConfig |
build() |
DateShiftConfig |
buildPartial() |
DateShiftConfig.Builder |
clear() |
DateShiftConfig.Builder |
clearContext()
Points to the field that contains the context, for example, an entity id.
|
DateShiftConfig.Builder |
clearCryptoKey()
Causes the shift to be computed based on this key and the context.
|
DateShiftConfig.Builder |
clearField(Descriptors.FieldDescriptor field) |
DateShiftConfig.Builder |
clearLowerBoundDays()
For example, -5 means shift date to at most 5 days back in the past.
|
DateShiftConfig.Builder |
clearMethod() |
DateShiftConfig.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
DateShiftConfig.Builder |
clearUpperBoundDays()
Range of shift in days.
|
DateShiftConfig.Builder |
clone() |
FieldId |
getContext()
Points to the field that contains the context, for example, an entity id.
|
FieldId.Builder |
getContextBuilder()
Points to the field that contains the context, for example, an entity id.
|
FieldIdOrBuilder |
getContextOrBuilder()
Points to the field that contains the context, for example, an entity id.
|
CryptoKey |
getCryptoKey()
Causes the shift to be computed based on this key and the context.
|
CryptoKey.Builder |
getCryptoKeyBuilder()
Causes the shift to be computed based on this key and the context.
|
CryptoKeyOrBuilder |
getCryptoKeyOrBuilder()
Causes the shift to be computed based on this key and the context.
|
DateShiftConfig |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
int |
getLowerBoundDays()
For example, -5 means shift date to at most 5 days back in the past.
|
DateShiftConfig.MethodCase |
getMethodCase() |
int |
getUpperBoundDays()
Range of shift in days.
|
boolean |
hasContext()
Points to the field that contains the context, for example, an entity id.
|
boolean |
hasCryptoKey()
Causes the shift to be computed based on this key and the context.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
DateShiftConfig.Builder |
mergeContext(FieldId value)
Points to the field that contains the context, for example, an entity id.
|
DateShiftConfig.Builder |
mergeCryptoKey(CryptoKey value)
Causes the shift to be computed based on this key and the context.
|
DateShiftConfig.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
DateShiftConfig.Builder |
mergeFrom(DateShiftConfig other) |
DateShiftConfig.Builder |
mergeFrom(Message other) |
DateShiftConfig.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
DateShiftConfig.Builder |
setContext(FieldId.Builder builderForValue)
Points to the field that contains the context, for example, an entity id.
|
DateShiftConfig.Builder |
setContext(FieldId value)
Points to the field that contains the context, for example, an entity id.
|
DateShiftConfig.Builder |
setCryptoKey(CryptoKey.Builder builderForValue)
Causes the shift to be computed based on this key and the context.
|
DateShiftConfig.Builder |
setCryptoKey(CryptoKey value)
Causes the shift to be computed based on this key and the context.
|
DateShiftConfig.Builder |
setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
DateShiftConfig.Builder |
setLowerBoundDays(int value)
For example, -5 means shift date to at most 5 days back in the past.
|
DateShiftConfig.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
DateShiftConfig.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
DateShiftConfig.Builder |
setUpperBoundDays(int value)
Range of shift in days.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<DateShiftConfig.Builder>public DateShiftConfig.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<DateShiftConfig.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<DateShiftConfig.Builder>public DateShiftConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic DateShiftConfig build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic DateShiftConfig buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic DateShiftConfig.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<DateShiftConfig.Builder>public DateShiftConfig.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<DateShiftConfig.Builder>public DateShiftConfig.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<DateShiftConfig.Builder>public DateShiftConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<DateShiftConfig.Builder>public DateShiftConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<DateShiftConfig.Builder>public DateShiftConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<DateShiftConfig.Builder>public DateShiftConfig.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<DateShiftConfig.Builder>public DateShiftConfig.Builder mergeFrom(DateShiftConfig other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<DateShiftConfig.Builder>public DateShiftConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<DateShiftConfig.Builder>java.io.IOExceptionpublic DateShiftConfig.MethodCase getMethodCase()
getMethodCase in interface DateShiftConfigOrBuilderpublic DateShiftConfig.Builder clearMethod()
public int getUpperBoundDays()
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. [Required]
int32 upper_bound_days = 1;getUpperBoundDays in interface DateShiftConfigOrBuilderpublic DateShiftConfig.Builder setUpperBoundDays(int value)
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. [Required]
int32 upper_bound_days = 1;public DateShiftConfig.Builder clearUpperBoundDays()
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. [Required]
int32 upper_bound_days = 1;public int getLowerBoundDays()
For example, -5 means shift date to at most 5 days back in the past. [Required]
int32 lower_bound_days = 2;getLowerBoundDays in interface DateShiftConfigOrBuilderpublic DateShiftConfig.Builder setLowerBoundDays(int value)
For example, -5 means shift date to at most 5 days back in the past. [Required]
int32 lower_bound_days = 2;public DateShiftConfig.Builder clearLowerBoundDays()
For example, -5 means shift date to at most 5 days back in the past. [Required]
int32 lower_bound_days = 2;public boolean hasContext()
Points to the field that contains the context, for example, an entity id. If set, must also set method. If set, shift will be consistent for the given context.
.google.privacy.dlp.v2beta2.FieldId context = 3;hasContext in interface DateShiftConfigOrBuilderpublic FieldId getContext()
Points to the field that contains the context, for example, an entity id. If set, must also set method. If set, shift will be consistent for the given context.
.google.privacy.dlp.v2beta2.FieldId context = 3;getContext in interface DateShiftConfigOrBuilderpublic DateShiftConfig.Builder setContext(FieldId value)
Points to the field that contains the context, for example, an entity id. If set, must also set method. If set, shift will be consistent for the given context.
.google.privacy.dlp.v2beta2.FieldId context = 3;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 method. If set, shift will be consistent for the given context.
.google.privacy.dlp.v2beta2.FieldId context = 3;public DateShiftConfig.Builder mergeContext(FieldId value)
Points to the field that contains the context, for example, an entity id. If set, must also set method. If set, shift will be consistent for the given context.
.google.privacy.dlp.v2beta2.FieldId context = 3;public DateShiftConfig.Builder clearContext()
Points to the field that contains the context, for example, an entity id. If set, must also set method. If set, shift will be consistent for the given context.
.google.privacy.dlp.v2beta2.FieldId context = 3;public FieldId.Builder getContextBuilder()
Points to the field that contains the context, for example, an entity id. If set, must also set method. If set, shift will be consistent for the given context.
.google.privacy.dlp.v2beta2.FieldId context = 3;public FieldIdOrBuilder getContextOrBuilder()
Points to the field that contains the context, for example, an entity id. If set, must also set method. If set, shift will be consistent for the given context.
.google.privacy.dlp.v2beta2.FieldId context = 3;getContextOrBuilder in interface DateShiftConfigOrBuilderpublic 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.
.google.privacy.dlp.v2beta2.CryptoKey crypto_key = 4;hasCryptoKey in interface DateShiftConfigOrBuilderpublic 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.
.google.privacy.dlp.v2beta2.CryptoKey crypto_key = 4;getCryptoKey in interface DateShiftConfigOrBuilderpublic 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.
.google.privacy.dlp.v2beta2.CryptoKey crypto_key = 4;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.
.google.privacy.dlp.v2beta2.CryptoKey crypto_key = 4;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.
.google.privacy.dlp.v2beta2.CryptoKey crypto_key = 4;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.
.google.privacy.dlp.v2beta2.CryptoKey crypto_key = 4;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.
.google.privacy.dlp.v2beta2.CryptoKey crypto_key = 4;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.
.google.privacy.dlp.v2beta2.CryptoKey crypto_key = 4;getCryptoKeyOrBuilder in interface DateShiftConfigOrBuilderpublic final DateShiftConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<DateShiftConfig.Builder>public final DateShiftConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<DateShiftConfig.Builder>