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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<DateShiftConfig.Builder>
public DateShiftConfig.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<DateShiftConfig.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<DateShiftConfig.Builder>
public DateShiftConfig getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public DateShiftConfig build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public DateShiftConfig buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public DateShiftConfig.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<DateShiftConfig.Builder>
public DateShiftConfig.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<DateShiftConfig.Builder>
public DateShiftConfig.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<DateShiftConfig.Builder>
public DateShiftConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<DateShiftConfig.Builder>
public DateShiftConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<DateShiftConfig.Builder>
public DateShiftConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<DateShiftConfig.Builder>
public DateShiftConfig.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<DateShiftConfig.Builder>
public DateShiftConfig.Builder mergeFrom(DateShiftConfig other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<DateShiftConfig.Builder>
public DateShiftConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<DateShiftConfig.Builder>
java.io.IOException
public DateShiftConfig.MethodCase getMethodCase()
getMethodCase
in interface DateShiftConfigOrBuilder
public 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 DateShiftConfigOrBuilder
public 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 DateShiftConfigOrBuilder
public 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 DateShiftConfigOrBuilder
public 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 DateShiftConfigOrBuilder
public 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 DateShiftConfigOrBuilder
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.
.google.privacy.dlp.v2beta2.CryptoKey crypto_key = 4;
hasCryptoKey
in interface DateShiftConfigOrBuilder
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.
.google.privacy.dlp.v2beta2.CryptoKey crypto_key = 4;
getCryptoKey
in interface DateShiftConfigOrBuilder
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.
.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 DateShiftConfigOrBuilder
public final DateShiftConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<DateShiftConfig.Builder>
public final DateShiftConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<DateShiftConfig.Builder>