public static final class DateShiftConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DateShiftConfig.Builder> implements DateShiftConfigOrBuilder
Shifts dates by random number of days, with option to be consistent for the same context. See https://cloud.google.com/dlp/docs/concepts-date-shifting to learn more.Protobuf type
google.privacy.dlp.v2.DateShiftConfig| Modifier and Type | Method and Description |
|---|---|
DateShiftConfig.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
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(com.google.protobuf.Descriptors.FieldDescriptor field) |
DateShiftConfig.Builder |
clearLowerBoundDays()
Required.
|
DateShiftConfig.Builder |
clearMethod() |
DateShiftConfig.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
DateShiftConfig.Builder |
clearUpperBoundDays()
Required.
|
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 com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
int |
getLowerBoundDays()
Required.
|
DateShiftConfig.MethodCase |
getMethodCase() |
int |
getUpperBoundDays()
Required.
|
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 com.google.protobuf.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(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
DateShiftConfig.Builder |
mergeFrom(DateShiftConfig other) |
DateShiftConfig.Builder |
mergeFrom(com.google.protobuf.Message other) |
DateShiftConfig.Builder |
mergeUnknownFields(com.google.protobuf.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(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
DateShiftConfig.Builder |
setLowerBoundDays(int value)
Required.
|
DateShiftConfig.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
DateShiftConfig.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
DateShiftConfig.Builder |
setUpperBoundDays(int value)
Required.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<DateShiftConfig.Builder>public DateShiftConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<DateShiftConfig.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<DateShiftConfig.Builder>public DateShiftConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic DateShiftConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic DateShiftConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic DateShiftConfig.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<DateShiftConfig.Builder>public DateShiftConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<DateShiftConfig.Builder>public DateShiftConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<DateShiftConfig.Builder>public DateShiftConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<DateShiftConfig.Builder>public DateShiftConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DateShiftConfig.Builder>public DateShiftConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DateShiftConfig.Builder>public DateShiftConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<DateShiftConfig.Builder>public DateShiftConfig.Builder mergeFrom(DateShiftConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<DateShiftConfig.Builder>public DateShiftConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<DateShiftConfig.Builder>IOExceptionpublic DateShiftConfig.MethodCase getMethodCase()
getMethodCase in interface DateShiftConfigOrBuilderpublic DateShiftConfig.Builder clearMethod()
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];getUpperBoundDays in interface DateShiftConfigOrBuilderpublic 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];value - The upperBoundDays to set.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];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];getLowerBoundDays in interface DateShiftConfigOrBuilderpublic 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];value - The lowerBoundDays to set.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];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;hasContext in interface DateShiftConfigOrBuilderpublic 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;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 cryptoKey. If set, shift will be consistent for the given context.
.google.privacy.dlp.v2.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 cryptoKey. If set, shift will be consistent for the given context.
.google.privacy.dlp.v2.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 cryptoKey. If set, shift will be consistent for the given context.
.google.privacy.dlp.v2.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 cryptoKey. If set, shift will be consistent for the given context.
.google.privacy.dlp.v2.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 cryptoKey. If set, shift will be consistent for the given context.
.google.privacy.dlp.v2.FieldId context = 3;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;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. If set, must also set context. Can only be applied to table items.
.google.privacy.dlp.v2.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. If set, must also set context. Can only be applied to table items.
.google.privacy.dlp.v2.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. If set, must also set context. Can only be applied to table items.
.google.privacy.dlp.v2.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. If set, must also set context. Can only be applied to table items.
.google.privacy.dlp.v2.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. If set, must also set context. Can only be applied to table items.
.google.privacy.dlp.v2.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. If set, must also set context. Can only be applied to table items.
.google.privacy.dlp.v2.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. If set, must also set context. Can only be applied to table items.
.google.privacy.dlp.v2.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. If set, must also set context. Can only be applied to table items.
.google.privacy.dlp.v2.CryptoKey crypto_key = 4;getCryptoKeyOrBuilder in interface DateShiftConfigOrBuilderpublic final DateShiftConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DateShiftConfig.Builder>public final DateShiftConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DateShiftConfig.Builder>Copyright © 2022 Google LLC. All rights reserved.