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.GeneratedMessage.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.GeneratedMessage.Builder<FieldTransformation.Builder>
implements FieldTransformationOrBuilder
The transformation to apply to the field.Protobuf type
google.privacy.dlp.v2.FieldTransformation-
Method Summary
Modifier and TypeMethodDescriptionaddAllFields(Iterable<? extends FieldId> values) Required.Required.addFields(int index, FieldId.Builder builderForValue) Required.Required.addFields(FieldId.Builder builderForValue) Required.Required.addFieldsBuilder(int index) Required.build()clear()Only apply the transformation if the condition evaluates to true for the given `RecordCondition`.Required.Treat the contents of the field as free text, and selectively transform content that matches an `InfoType`.Apply the transformation to the entire field.Only apply the transformation if the condition evaluates to true for the given `RecordCondition`.Only apply the transformation if the condition evaluates to true for the given `RecordCondition`.Only apply the transformation if the condition evaluates to true for the given `RecordCondition`.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetFields(int index) Required.getFieldsBuilder(int index) Required.Required.intRequired.Required.getFieldsOrBuilder(int index) Required.List<? extends FieldIdOrBuilder>Required.Treat the contents of the field as free text, and selectively transform content that matches an `InfoType`.Treat the contents of the field as free text, and selectively transform content that matches an `InfoType`.Treat the contents of the field as free text, and selectively transform content that matches an `InfoType`.Apply the transformation to the entire field.Apply the transformation to the entire field.Apply the transformation to the entire field.booleanOnly apply the transformation if the condition evaluates to true for the given `RecordCondition`.booleanTreat the contents of the field as free text, and selectively transform content that matches an `InfoType`.booleanApply the transformation to the entire field.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCondition(RecordCondition value) Only apply the transformation if the condition evaluates to true for the given `RecordCondition`.mergeFrom(FieldTransformation other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Treat the contents of the field as free text, and selectively transform content that matches an `InfoType`.Apply the transformation to the entire field.removeFields(int index) Required.setCondition(RecordCondition value) Only apply the transformation if the condition evaluates to true for the given `RecordCondition`.setCondition(RecordCondition.Builder builderForValue) Only apply the transformation if the condition evaluates to true for the given `RecordCondition`.Required.setFields(int index, FieldId.Builder builderForValue) Required.Treat the contents of the field as free text, and selectively transform content that matches an `InfoType`.setInfoTypeTransformations(InfoTypeTransformations.Builder builderForValue) Treat the contents of the field as free text, and selectively transform content that matches an `InfoType`.Apply the transformation to the entire field.setPrimitiveTransformation(PrimitiveTransformation.Builder builderForValue) Apply the transformation to the entire field.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<FieldTransformation.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<FieldTransformation.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.GeneratedMessage.Builder<FieldTransformation.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FieldTransformation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<FieldTransformation.Builder>
-
mergeFrom
public FieldTransformation.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<FieldTransformation.Builder>- Throws:
IOException
-
getTransformationCase
- Specified by:
getTransformationCasein interfaceFieldTransformationOrBuilder
-
clearTransformation
-
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:
getFieldsListin 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:
getFieldsCountin interfaceFieldTransformationOrBuilder
-
getFields
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:
getFieldsin interfaceFieldTransformationOrBuilder
-
setFields
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
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
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
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
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
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
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
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
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
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
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:
getFieldsOrBuilderin interfaceFieldTransformationOrBuilder
-
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:
getFieldsOrBuilderListin interfaceFieldTransformationOrBuilder
-
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
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
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:
hasConditionin interfaceFieldTransformationOrBuilder- Returns:
- Whether the condition field is set.
-
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:
getConditionin interfaceFieldTransformationOrBuilder- Returns:
- The condition.
-
setCondition
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
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
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
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
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
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:
getConditionOrBuilderin interfaceFieldTransformationOrBuilder
-
hasPrimitiveTransformation
public boolean hasPrimitiveTransformation()Apply the transformation to the entire field.
.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4;- Specified by:
hasPrimitiveTransformationin interfaceFieldTransformationOrBuilder- Returns:
- Whether the primitiveTransformation field is set.
-
getPrimitiveTransformation
Apply the transformation to the entire field.
.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4;- Specified by:
getPrimitiveTransformationin interfaceFieldTransformationOrBuilder- Returns:
- The primitiveTransformation.
-
setPrimitiveTransformation
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
Apply the transformation to the entire field.
.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4; -
clearPrimitiveTransformation
Apply the transformation to the entire field.
.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4; -
getPrimitiveTransformationBuilder
Apply the transformation to the entire field.
.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4; -
getPrimitiveTransformationOrBuilder
Apply the transformation to the entire field.
.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4;- Specified by:
getPrimitiveTransformationOrBuilderin 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:
hasInfoTypeTransformationsin interfaceFieldTransformationOrBuilder- Returns:
- Whether the infoTypeTransformations field is set.
-
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:
getInfoTypeTransformationsin interfaceFieldTransformationOrBuilder- Returns:
- The infoTypeTransformations.
-
setInfoTypeTransformations
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
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
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
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
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:
getInfoTypeTransformationsOrBuilderin interfaceFieldTransformationOrBuilder
-