Package com.google.privacy.dlp.v2
Class FieldTransformation.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<FieldTransformation.Builder>
-
- com.google.privacy.dlp.v2.FieldTransformation.Builder
-
- All Implemented Interfaces:
FieldTransformationOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- FieldTransformation
public static final class FieldTransformation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<FieldTransformation.Builder> implements FieldTransformationOrBuilder
The transformation to apply to the field.
Protobuf typegoogle.privacy.dlp.v2.FieldTransformation
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FieldTransformation.Builder
addAllFields(Iterable<? extends FieldId> values)
Required.FieldTransformation.Builder
addFields(int index, FieldId value)
Required.FieldTransformation.Builder
addFields(int index, FieldId.Builder builderForValue)
Required.FieldTransformation.Builder
addFields(FieldId value)
Required.FieldTransformation.Builder
addFields(FieldId.Builder builderForValue)
Required.FieldId.Builder
addFieldsBuilder()
Required.FieldId.Builder
addFieldsBuilder(int index)
Required.FieldTransformation.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
FieldTransformation
build()
FieldTransformation
buildPartial()
FieldTransformation.Builder
clear()
FieldTransformation.Builder
clearCondition()
Only apply the transformation if the condition evaluates to true for the given `RecordCondition`.FieldTransformation.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
FieldTransformation.Builder
clearFields()
Required.FieldTransformation.Builder
clearInfoTypeTransformations()
Treat the contents of the field as free text, and selectively transform content that matches an `InfoType`.FieldTransformation.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
FieldTransformation.Builder
clearPrimitiveTransformation()
Apply the transformation to the entire field.FieldTransformation.Builder
clearTransformation()
FieldTransformation.Builder
clone()
RecordCondition
getCondition()
Only apply the transformation if the condition evaluates to true for the given `RecordCondition`.RecordCondition.Builder
getConditionBuilder()
Only apply the transformation if the condition evaluates to true for the given `RecordCondition`.RecordConditionOrBuilder
getConditionOrBuilder()
Only apply the transformation if the condition evaluates to true for the given `RecordCondition`.FieldTransformation
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
FieldId
getFields(int index)
Required.FieldId.Builder
getFieldsBuilder(int index)
Required.List<FieldId.Builder>
getFieldsBuilderList()
Required.int
getFieldsCount()
Required.List<FieldId>
getFieldsList()
Required.FieldIdOrBuilder
getFieldsOrBuilder(int index)
Required.List<? extends FieldIdOrBuilder>
getFieldsOrBuilderList()
Required.InfoTypeTransformations
getInfoTypeTransformations()
Treat the contents of the field as free text, and selectively transform content that matches an `InfoType`.InfoTypeTransformations.Builder
getInfoTypeTransformationsBuilder()
Treat the contents of the field as free text, and selectively transform content that matches an `InfoType`.InfoTypeTransformationsOrBuilder
getInfoTypeTransformationsOrBuilder()
Treat the contents of the field as free text, and selectively transform content that matches an `InfoType`.PrimitiveTransformation
getPrimitiveTransformation()
Apply the transformation to the entire field.PrimitiveTransformation.Builder
getPrimitiveTransformationBuilder()
Apply the transformation to the entire field.PrimitiveTransformationOrBuilder
getPrimitiveTransformationOrBuilder()
Apply the transformation to the entire field.FieldTransformation.TransformationCase
getTransformationCase()
boolean
hasCondition()
Only apply the transformation if the condition evaluates to true for the given `RecordCondition`.boolean
hasInfoTypeTransformations()
Treat the contents of the field as free text, and selectively transform content that matches an `InfoType`.boolean
hasPrimitiveTransformation()
Apply the transformation to the entire field.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
FieldTransformation.Builder
mergeCondition(RecordCondition value)
Only apply the transformation if the condition evaluates to true for the given `RecordCondition`.FieldTransformation.Builder
mergeFrom(FieldTransformation other)
FieldTransformation.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
FieldTransformation.Builder
mergeFrom(com.google.protobuf.Message other)
FieldTransformation.Builder
mergeInfoTypeTransformations(InfoTypeTransformations value)
Treat the contents of the field as free text, and selectively transform content that matches an `InfoType`.FieldTransformation.Builder
mergePrimitiveTransformation(PrimitiveTransformation value)
Apply the transformation to the entire field.FieldTransformation.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
FieldTransformation.Builder
removeFields(int index)
Required.FieldTransformation.Builder
setCondition(RecordCondition value)
Only apply the transformation if the condition evaluates to true for the given `RecordCondition`.FieldTransformation.Builder
setCondition(RecordCondition.Builder builderForValue)
Only apply the transformation if the condition evaluates to true for the given `RecordCondition`.FieldTransformation.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
FieldTransformation.Builder
setFields(int index, FieldId value)
Required.FieldTransformation.Builder
setFields(int index, FieldId.Builder builderForValue)
Required.FieldTransformation.Builder
setInfoTypeTransformations(InfoTypeTransformations value)
Treat the contents of the field as free text, and selectively transform content that matches an `InfoType`.FieldTransformation.Builder
setInfoTypeTransformations(InfoTypeTransformations.Builder builderForValue)
Treat the contents of the field as free text, and selectively transform content that matches an `InfoType`.FieldTransformation.Builder
setPrimitiveTransformation(PrimitiveTransformation value)
Apply the transformation to the entire field.FieldTransformation.Builder
setPrimitiveTransformation(PrimitiveTransformation.Builder builderForValue)
Apply the transformation to the entire field.FieldTransformation.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
FieldTransformation.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<FieldTransformation.Builder>
-
clear
public FieldTransformation.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<FieldTransformation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<FieldTransformation.Builder>
-
getDefaultInstanceForType
public FieldTransformation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public FieldTransformation build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public FieldTransformation buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public FieldTransformation.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<FieldTransformation.Builder>
-
setField
public FieldTransformation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<FieldTransformation.Builder>
-
clearField
public FieldTransformation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<FieldTransformation.Builder>
-
clearOneof
public FieldTransformation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<FieldTransformation.Builder>
-
setRepeatedField
public FieldTransformation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<FieldTransformation.Builder>
-
addRepeatedField
public FieldTransformation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<FieldTransformation.Builder>
-
mergeFrom
public FieldTransformation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<FieldTransformation.Builder>
-
mergeFrom
public FieldTransformation.Builder mergeFrom(FieldTransformation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<FieldTransformation.Builder>
-
mergeFrom
public FieldTransformation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<FieldTransformation.Builder>
- Throws:
IOException
-
getTransformationCase
public FieldTransformation.TransformationCase getTransformationCase()
- Specified by:
getTransformationCase
in interfaceFieldTransformationOrBuilder
-
clearTransformation
public FieldTransformation.Builder clearTransformation()
-
getFieldsList
public List<FieldId> getFieldsList()
Required. Input field(s) to apply the transformation to. When you have columns that reference their position within a list, omit the index from the FieldId. FieldId name matching ignores the index. For example, instead of "contact.nums[0].type", use "contact.nums.type".
repeated .google.privacy.dlp.v2.FieldId fields = 1 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getFieldsList
in interfaceFieldTransformationOrBuilder
-
getFieldsCount
public int getFieldsCount()
Required. Input field(s) to apply the transformation to. When you have columns that reference their position within a list, omit the index from the FieldId. FieldId name matching ignores the index. For example, instead of "contact.nums[0].type", use "contact.nums.type".
repeated .google.privacy.dlp.v2.FieldId fields = 1 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getFieldsCount
in interfaceFieldTransformationOrBuilder
-
getFields
public FieldId getFields(int index)
Required. Input field(s) to apply the transformation to. When you have columns that reference their position within a list, omit the index from the FieldId. FieldId name matching ignores the index. For example, instead of "contact.nums[0].type", use "contact.nums.type".
repeated .google.privacy.dlp.v2.FieldId fields = 1 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getFields
in interfaceFieldTransformationOrBuilder
-
setFields
public FieldTransformation.Builder setFields(int index, FieldId value)
Required. Input field(s) to apply the transformation to. When you have columns that reference their position within a list, omit the index from the FieldId. FieldId name matching ignores the index. For example, instead of "contact.nums[0].type", use "contact.nums.type".
repeated .google.privacy.dlp.v2.FieldId fields = 1 [(.google.api.field_behavior) = REQUIRED];
-
setFields
public FieldTransformation.Builder setFields(int index, FieldId.Builder builderForValue)
Required. Input field(s) to apply the transformation to. When you have columns that reference their position within a list, omit the index from the FieldId. FieldId name matching ignores the index. For example, instead of "contact.nums[0].type", use "contact.nums.type".
repeated .google.privacy.dlp.v2.FieldId fields = 1 [(.google.api.field_behavior) = REQUIRED];
-
addFields
public FieldTransformation.Builder addFields(FieldId value)
Required. Input field(s) to apply the transformation to. When you have columns that reference their position within a list, omit the index from the FieldId. FieldId name matching ignores the index. For example, instead of "contact.nums[0].type", use "contact.nums.type".
repeated .google.privacy.dlp.v2.FieldId fields = 1 [(.google.api.field_behavior) = REQUIRED];
-
addFields
public FieldTransformation.Builder addFields(int index, FieldId value)
Required. Input field(s) to apply the transformation to. When you have columns that reference their position within a list, omit the index from the FieldId. FieldId name matching ignores the index. For example, instead of "contact.nums[0].type", use "contact.nums.type".
repeated .google.privacy.dlp.v2.FieldId fields = 1 [(.google.api.field_behavior) = REQUIRED];
-
addFields
public FieldTransformation.Builder addFields(FieldId.Builder builderForValue)
Required. Input field(s) to apply the transformation to. When you have columns that reference their position within a list, omit the index from the FieldId. FieldId name matching ignores the index. For example, instead of "contact.nums[0].type", use "contact.nums.type".
repeated .google.privacy.dlp.v2.FieldId fields = 1 [(.google.api.field_behavior) = REQUIRED];
-
addFields
public FieldTransformation.Builder addFields(int index, FieldId.Builder builderForValue)
Required. Input field(s) to apply the transformation to. When you have columns that reference their position within a list, omit the index from the FieldId. FieldId name matching ignores the index. For example, instead of "contact.nums[0].type", use "contact.nums.type".
repeated .google.privacy.dlp.v2.FieldId fields = 1 [(.google.api.field_behavior) = REQUIRED];
-
addAllFields
public FieldTransformation.Builder addAllFields(Iterable<? extends FieldId> values)
Required. Input field(s) to apply the transformation to. When you have columns that reference their position within a list, omit the index from the FieldId. FieldId name matching ignores the index. For example, instead of "contact.nums[0].type", use "contact.nums.type".
repeated .google.privacy.dlp.v2.FieldId fields = 1 [(.google.api.field_behavior) = REQUIRED];
-
clearFields
public FieldTransformation.Builder clearFields()
Required. Input field(s) to apply the transformation to. When you have columns that reference their position within a list, omit the index from the FieldId. FieldId name matching ignores the index. For example, instead of "contact.nums[0].type", use "contact.nums.type".
repeated .google.privacy.dlp.v2.FieldId fields = 1 [(.google.api.field_behavior) = REQUIRED];
-
removeFields
public FieldTransformation.Builder removeFields(int index)
Required. Input field(s) to apply the transformation to. When you have columns that reference their position within a list, omit the index from the FieldId. FieldId name matching ignores the index. For example, instead of "contact.nums[0].type", use "contact.nums.type".
repeated .google.privacy.dlp.v2.FieldId fields = 1 [(.google.api.field_behavior) = REQUIRED];
-
getFieldsBuilder
public FieldId.Builder getFieldsBuilder(int index)
Required. Input field(s) to apply the transformation to. When you have columns that reference their position within a list, omit the index from the FieldId. FieldId name matching ignores the index. For example, instead of "contact.nums[0].type", use "contact.nums.type".
repeated .google.privacy.dlp.v2.FieldId fields = 1 [(.google.api.field_behavior) = REQUIRED];
-
getFieldsOrBuilder
public FieldIdOrBuilder getFieldsOrBuilder(int index)
Required. Input field(s) to apply the transformation to. When you have columns that reference their position within a list, omit the index from the FieldId. FieldId name matching ignores the index. For example, instead of "contact.nums[0].type", use "contact.nums.type".
repeated .google.privacy.dlp.v2.FieldId fields = 1 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getFieldsOrBuilder
in interfaceFieldTransformationOrBuilder
-
getFieldsOrBuilderList
public List<? extends FieldIdOrBuilder> getFieldsOrBuilderList()
Required. Input field(s) to apply the transformation to. When you have columns that reference their position within a list, omit the index from the FieldId. FieldId name matching ignores the index. For example, instead of "contact.nums[0].type", use "contact.nums.type".
repeated .google.privacy.dlp.v2.FieldId fields = 1 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getFieldsOrBuilderList
in interfaceFieldTransformationOrBuilder
-
addFieldsBuilder
public FieldId.Builder addFieldsBuilder()
Required. Input field(s) to apply the transformation to. When you have columns that reference their position within a list, omit the index from the FieldId. FieldId name matching ignores the index. For example, instead of "contact.nums[0].type", use "contact.nums.type".
repeated .google.privacy.dlp.v2.FieldId fields = 1 [(.google.api.field_behavior) = REQUIRED];
-
addFieldsBuilder
public FieldId.Builder addFieldsBuilder(int index)
Required. Input field(s) to apply the transformation to. When you have columns that reference their position within a list, omit the index from the FieldId. FieldId name matching ignores the index. For example, instead of "contact.nums[0].type", use "contact.nums.type".
repeated .google.privacy.dlp.v2.FieldId fields = 1 [(.google.api.field_behavior) = REQUIRED];
-
getFieldsBuilderList
public List<FieldId.Builder> getFieldsBuilderList()
Required. Input field(s) to apply the transformation to. When you have columns that reference their position within a list, omit the index from the FieldId. FieldId name matching ignores the index. For example, instead of "contact.nums[0].type", use "contact.nums.type".
repeated .google.privacy.dlp.v2.FieldId fields = 1 [(.google.api.field_behavior) = REQUIRED];
-
hasCondition
public boolean hasCondition()
Only apply the transformation if the condition evaluates to true for the given `RecordCondition`. The conditions are allowed to reference fields that are not used in the actual transformation. Example Use Cases: - Apply a different bucket transformation to an age column if the zip code column for the same record is within a specific range. - Redact a field if the date of birth field is greater than 85.
.google.privacy.dlp.v2.RecordCondition condition = 3;
- Specified by:
hasCondition
in interfaceFieldTransformationOrBuilder
- Returns:
- Whether the condition field is set.
-
getCondition
public RecordCondition getCondition()
Only apply the transformation if the condition evaluates to true for the given `RecordCondition`. The conditions are allowed to reference fields that are not used in the actual transformation. Example Use Cases: - Apply a different bucket transformation to an age column if the zip code column for the same record is within a specific range. - Redact a field if the date of birth field is greater than 85.
.google.privacy.dlp.v2.RecordCondition condition = 3;
- Specified by:
getCondition
in interfaceFieldTransformationOrBuilder
- Returns:
- The condition.
-
setCondition
public FieldTransformation.Builder setCondition(RecordCondition value)
Only apply the transformation if the condition evaluates to true for the given `RecordCondition`. The conditions are allowed to reference fields that are not used in the actual transformation. Example Use Cases: - Apply a different bucket transformation to an age column if the zip code column for the same record is within a specific range. - Redact a field if the date of birth field is greater than 85.
.google.privacy.dlp.v2.RecordCondition condition = 3;
-
setCondition
public FieldTransformation.Builder setCondition(RecordCondition.Builder builderForValue)
Only apply the transformation if the condition evaluates to true for the given `RecordCondition`. The conditions are allowed to reference fields that are not used in the actual transformation. Example Use Cases: - Apply a different bucket transformation to an age column if the zip code column for the same record is within a specific range. - Redact a field if the date of birth field is greater than 85.
.google.privacy.dlp.v2.RecordCondition condition = 3;
-
mergeCondition
public FieldTransformation.Builder mergeCondition(RecordCondition value)
Only apply the transformation if the condition evaluates to true for the given `RecordCondition`. The conditions are allowed to reference fields that are not used in the actual transformation. Example Use Cases: - Apply a different bucket transformation to an age column if the zip code column for the same record is within a specific range. - Redact a field if the date of birth field is greater than 85.
.google.privacy.dlp.v2.RecordCondition condition = 3;
-
clearCondition
public FieldTransformation.Builder clearCondition()
Only apply the transformation if the condition evaluates to true for the given `RecordCondition`. The conditions are allowed to reference fields that are not used in the actual transformation. Example Use Cases: - Apply a different bucket transformation to an age column if the zip code column for the same record is within a specific range. - Redact a field if the date of birth field is greater than 85.
.google.privacy.dlp.v2.RecordCondition condition = 3;
-
getConditionBuilder
public RecordCondition.Builder getConditionBuilder()
Only apply the transformation if the condition evaluates to true for the given `RecordCondition`. The conditions are allowed to reference fields that are not used in the actual transformation. Example Use Cases: - Apply a different bucket transformation to an age column if the zip code column for the same record is within a specific range. - Redact a field if the date of birth field is greater than 85.
.google.privacy.dlp.v2.RecordCondition condition = 3;
-
getConditionOrBuilder
public RecordConditionOrBuilder getConditionOrBuilder()
Only apply the transformation if the condition evaluates to true for the given `RecordCondition`. The conditions are allowed to reference fields that are not used in the actual transformation. Example Use Cases: - Apply a different bucket transformation to an age column if the zip code column for the same record is within a specific range. - Redact a field if the date of birth field is greater than 85.
.google.privacy.dlp.v2.RecordCondition condition = 3;
- Specified by:
getConditionOrBuilder
in interfaceFieldTransformationOrBuilder
-
hasPrimitiveTransformation
public boolean hasPrimitiveTransformation()
Apply the transformation to the entire field.
.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4;
- Specified by:
hasPrimitiveTransformation
in interfaceFieldTransformationOrBuilder
- Returns:
- Whether the primitiveTransformation field is set.
-
getPrimitiveTransformation
public PrimitiveTransformation getPrimitiveTransformation()
Apply the transformation to the entire field.
.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4;
- Specified by:
getPrimitiveTransformation
in interfaceFieldTransformationOrBuilder
- Returns:
- The primitiveTransformation.
-
setPrimitiveTransformation
public FieldTransformation.Builder setPrimitiveTransformation(PrimitiveTransformation value)
Apply the transformation to the entire field.
.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4;
-
setPrimitiveTransformation
public FieldTransformation.Builder setPrimitiveTransformation(PrimitiveTransformation.Builder builderForValue)
Apply the transformation to the entire field.
.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4;
-
mergePrimitiveTransformation
public FieldTransformation.Builder mergePrimitiveTransformation(PrimitiveTransformation value)
Apply the transformation to the entire field.
.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4;
-
clearPrimitiveTransformation
public FieldTransformation.Builder clearPrimitiveTransformation()
Apply the transformation to the entire field.
.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4;
-
getPrimitiveTransformationBuilder
public PrimitiveTransformation.Builder getPrimitiveTransformationBuilder()
Apply the transformation to the entire field.
.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4;
-
getPrimitiveTransformationOrBuilder
public PrimitiveTransformationOrBuilder getPrimitiveTransformationOrBuilder()
Apply the transformation to the entire field.
.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4;
- Specified by:
getPrimitiveTransformationOrBuilder
in interfaceFieldTransformationOrBuilder
-
hasInfoTypeTransformations
public boolean hasInfoTypeTransformations()
Treat the contents of the field as free text, and selectively transform content that matches an `InfoType`.
.google.privacy.dlp.v2.InfoTypeTransformations info_type_transformations = 5;
- Specified by:
hasInfoTypeTransformations
in interfaceFieldTransformationOrBuilder
- Returns:
- Whether the infoTypeTransformations field is set.
-
getInfoTypeTransformations
public InfoTypeTransformations getInfoTypeTransformations()
Treat the contents of the field as free text, and selectively transform content that matches an `InfoType`.
.google.privacy.dlp.v2.InfoTypeTransformations info_type_transformations = 5;
- Specified by:
getInfoTypeTransformations
in interfaceFieldTransformationOrBuilder
- Returns:
- The infoTypeTransformations.
-
setInfoTypeTransformations
public FieldTransformation.Builder setInfoTypeTransformations(InfoTypeTransformations value)
Treat the contents of the field as free text, and selectively transform content that matches an `InfoType`.
.google.privacy.dlp.v2.InfoTypeTransformations info_type_transformations = 5;
-
setInfoTypeTransformations
public FieldTransformation.Builder setInfoTypeTransformations(InfoTypeTransformations.Builder builderForValue)
Treat the contents of the field as free text, and selectively transform content that matches an `InfoType`.
.google.privacy.dlp.v2.InfoTypeTransformations info_type_transformations = 5;
-
mergeInfoTypeTransformations
public FieldTransformation.Builder mergeInfoTypeTransformations(InfoTypeTransformations value)
Treat the contents of the field as free text, and selectively transform content that matches an `InfoType`.
.google.privacy.dlp.v2.InfoTypeTransformations info_type_transformations = 5;
-
clearInfoTypeTransformations
public FieldTransformation.Builder clearInfoTypeTransformations()
Treat the contents of the field as free text, and selectively transform content that matches an `InfoType`.
.google.privacy.dlp.v2.InfoTypeTransformations info_type_transformations = 5;
-
getInfoTypeTransformationsBuilder
public InfoTypeTransformations.Builder getInfoTypeTransformationsBuilder()
Treat the contents of the field as free text, and selectively transform content that matches an `InfoType`.
.google.privacy.dlp.v2.InfoTypeTransformations info_type_transformations = 5;
-
getInfoTypeTransformationsOrBuilder
public InfoTypeTransformationsOrBuilder getInfoTypeTransformationsOrBuilder()
Treat the contents of the field as free text, and selectively transform content that matches an `InfoType`.
.google.privacy.dlp.v2.InfoTypeTransformations info_type_transformations = 5;
- Specified by:
getInfoTypeTransformationsOrBuilder
in interfaceFieldTransformationOrBuilder
-
setUnknownFields
public final FieldTransformation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<FieldTransformation.Builder>
-
mergeUnknownFields
public final FieldTransformation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<FieldTransformation.Builder>
-
-