Package com.google.privacy.dlp.v2
Class DateShiftConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<DateShiftConfig.Builder>
-
- com.google.privacy.dlp.v2.DateShiftConfig.Builder
-
- All Implemented Interfaces:
DateShiftConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- DateShiftConfig
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 typegoogle.privacy.dlp.v2.DateShiftConfig
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DateShiftConfig.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)DateShiftConfigbuild()DateShiftConfigbuildPartial()DateShiftConfig.Builderclear()DateShiftConfig.BuilderclearContext()Points to the field that contains the context, for example, an entity id.DateShiftConfig.BuilderclearCryptoKey()Causes the shift to be computed based on this key and the context.DateShiftConfig.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)DateShiftConfig.BuilderclearLowerBoundDays()Required.DateShiftConfig.BuilderclearMethod()DateShiftConfig.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)DateShiftConfig.BuilderclearUpperBoundDays()Required.DateShiftConfig.Builderclone()FieldIdgetContext()Points to the field that contains the context, for example, an entity id.FieldId.BuildergetContextBuilder()Points to the field that contains the context, for example, an entity id.FieldIdOrBuildergetContextOrBuilder()Points to the field that contains the context, for example, an entity id.CryptoKeygetCryptoKey()Causes the shift to be computed based on this key and the context.CryptoKey.BuildergetCryptoKeyBuilder()Causes the shift to be computed based on this key and the context.CryptoKeyOrBuildergetCryptoKeyOrBuilder()Causes the shift to be computed based on this key and the context.DateShiftConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()intgetLowerBoundDays()Required.DateShiftConfig.MethodCasegetMethodCase()intgetUpperBoundDays()Required.booleanhasContext()Points to the field that contains the context, for example, an entity id.booleanhasCryptoKey()Causes the shift to be computed based on this key and the context.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()DateShiftConfig.BuildermergeContext(FieldId value)Points to the field that contains the context, for example, an entity id.DateShiftConfig.BuildermergeCryptoKey(CryptoKey value)Causes the shift to be computed based on this key and the context.DateShiftConfig.BuildermergeFrom(DateShiftConfig other)DateShiftConfig.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)DateShiftConfig.BuildermergeFrom(com.google.protobuf.Message other)DateShiftConfig.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)DateShiftConfig.BuildersetContext(FieldId value)Points to the field that contains the context, for example, an entity id.DateShiftConfig.BuildersetContext(FieldId.Builder builderForValue)Points to the field that contains the context, for example, an entity id.DateShiftConfig.BuildersetCryptoKey(CryptoKey value)Causes the shift to be computed based on this key and the context.DateShiftConfig.BuildersetCryptoKey(CryptoKey.Builder builderForValue)Causes the shift to be computed based on this key and the context.DateShiftConfig.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)DateShiftConfig.BuildersetLowerBoundDays(int value)Required.DateShiftConfig.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)DateShiftConfig.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)DateShiftConfig.BuildersetUpperBoundDays(int value)Required.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<DateShiftConfig.Builder>
-
clear
public DateShiftConfig.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<DateShiftConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<DateShiftConfig.Builder>
-
getDefaultInstanceForType
public DateShiftConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public DateShiftConfig build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public DateShiftConfig buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public DateShiftConfig.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<DateShiftConfig.Builder>
-
setField
public DateShiftConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DateShiftConfig.Builder>
-
clearField
public DateShiftConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DateShiftConfig.Builder>
-
clearOneof
public DateShiftConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<DateShiftConfig.Builder>
-
setRepeatedField
public DateShiftConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DateShiftConfig.Builder>
-
addRepeatedField
public DateShiftConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DateShiftConfig.Builder>
-
mergeFrom
public DateShiftConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DateShiftConfig.Builder>
-
mergeFrom
public DateShiftConfig.Builder mergeFrom(DateShiftConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<DateShiftConfig.Builder>
-
mergeFrom
public DateShiftConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DateShiftConfig.Builder>- Throws:
IOException
-
getMethodCase
public DateShiftConfig.MethodCase getMethodCase()
- Specified by:
getMethodCasein interfaceDateShiftConfigOrBuilder
-
clearMethod
public DateShiftConfig.Builder clearMethod()
-
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];- Specified by:
getUpperBoundDaysin interfaceDateShiftConfigOrBuilder- Returns:
- The upperBoundDays.
-
setUpperBoundDays
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];- Parameters:
value- The upperBoundDays to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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];- Specified by:
getLowerBoundDaysin interfaceDateShiftConfigOrBuilder- Returns:
- The lowerBoundDays.
-
setLowerBoundDays
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];- Parameters:
value- The lowerBoundDays to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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;- Specified by:
hasContextin interfaceDateShiftConfigOrBuilder- Returns:
- Whether the context field is set.
-
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;- Specified by:
getContextin interfaceDateShiftConfigOrBuilder- Returns:
- The context.
-
setContext
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;
-
setContext
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;
-
mergeContext
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;
-
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;
-
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;- Specified by:
getContextOrBuilderin interfaceDateShiftConfigOrBuilder
-
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;- Specified by:
hasCryptoKeyin interfaceDateShiftConfigOrBuilder- Returns:
- Whether the cryptoKey field is set.
-
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;- Specified by:
getCryptoKeyin interfaceDateShiftConfigOrBuilder- Returns:
- The cryptoKey.
-
setCryptoKey
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
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;
-
mergeCryptoKey
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;
-
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;
-
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;- Specified by:
getCryptoKeyOrBuilderin interfaceDateShiftConfigOrBuilder
-
setUnknownFields
public final DateShiftConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DateShiftConfig.Builder>
-
mergeUnknownFields
public final DateShiftConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DateShiftConfig.Builder>
-
-