public static final class FieldTransformation.Builder extends GeneratedMessageV3.Builder<FieldTransformation.Builder> implements FieldTransformationOrBuilder
The transformation to apply to the field.Protobuf type
google.privacy.dlp.v2.FieldTransformation| Modifier and Type | Method and Description |
|---|---|
FieldTransformation.Builder |
addAllFields(java.lang.Iterable<? extends FieldId> values)
Input field(s) to apply the transformation to.
|
FieldTransformation.Builder |
addFields(FieldId.Builder builderForValue)
Input field(s) to apply the transformation to.
|
FieldTransformation.Builder |
addFields(FieldId value)
Input field(s) to apply the transformation to.
|
FieldTransformation.Builder |
addFields(int index,
FieldId.Builder builderForValue)
Input field(s) to apply the transformation to.
|
FieldTransformation.Builder |
addFields(int index,
FieldId value)
Input field(s) to apply the transformation to.
|
FieldId.Builder |
addFieldsBuilder()
Input field(s) to apply the transformation to.
|
FieldId.Builder |
addFieldsBuilder(int index)
Input field(s) to apply the transformation to.
|
FieldTransformation.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.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(Descriptors.FieldDescriptor field) |
FieldTransformation.Builder |
clearFields()
Input field(s) to apply the transformation to.
|
FieldTransformation.Builder |
clearInfoTypeTransformations()
Treat the contents of the field as free text, and selectively
transform content that matches an `InfoType`.
|
FieldTransformation.Builder |
clearOneof(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 Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
FieldId |
getFields(int index)
Input field(s) to apply the transformation to.
|
FieldId.Builder |
getFieldsBuilder(int index)
Input field(s) to apply the transformation to.
|
java.util.List<FieldId.Builder> |
getFieldsBuilderList()
Input field(s) to apply the transformation to.
|
int |
getFieldsCount()
Input field(s) to apply the transformation to.
|
java.util.List<FieldId> |
getFieldsList()
Input field(s) to apply the transformation to.
|
FieldIdOrBuilder |
getFieldsOrBuilder(int index)
Input field(s) to apply the transformation to.
|
java.util.List<? extends FieldIdOrBuilder> |
getFieldsOrBuilderList()
Input field(s) to apply the transformation to.
|
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 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(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
FieldTransformation.Builder |
mergeFrom(FieldTransformation other) |
FieldTransformation.Builder |
mergeFrom(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(UnknownFieldSet unknownFields) |
FieldTransformation.Builder |
removeFields(int index)
Input field(s) to apply the transformation to.
|
FieldTransformation.Builder |
setCondition(RecordCondition.Builder builderForValue)
Only apply the transformation if the condition evaluates to true for the
given `RecordCondition`.
|
FieldTransformation.Builder |
setCondition(RecordCondition value)
Only apply the transformation if the condition evaluates to true for the
given `RecordCondition`.
|
FieldTransformation.Builder |
setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
FieldTransformation.Builder |
setFields(int index,
FieldId.Builder builderForValue)
Input field(s) to apply the transformation to.
|
FieldTransformation.Builder |
setFields(int index,
FieldId value)
Input field(s) to apply the transformation to.
|
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 |
setInfoTypeTransformations(InfoTypeTransformations value)
Treat the contents of the field as free text, and selectively
transform content that matches an `InfoType`.
|
FieldTransformation.Builder |
setPrimitiveTransformation(PrimitiveTransformation.Builder builderForValue)
Apply the transformation to the entire field.
|
FieldTransformation.Builder |
setPrimitiveTransformation(PrimitiveTransformation value)
Apply the transformation to the entire field.
|
FieldTransformation.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
FieldTransformation.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<FieldTransformation.Builder>public FieldTransformation.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<FieldTransformation.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<FieldTransformation.Builder>public FieldTransformation getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic FieldTransformation build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic FieldTransformation buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic FieldTransformation.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<FieldTransformation.Builder>public FieldTransformation.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<FieldTransformation.Builder>public FieldTransformation.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<FieldTransformation.Builder>public FieldTransformation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<FieldTransformation.Builder>public FieldTransformation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<FieldTransformation.Builder>public FieldTransformation.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<FieldTransformation.Builder>public FieldTransformation.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<FieldTransformation.Builder>public FieldTransformation.Builder mergeFrom(FieldTransformation other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<FieldTransformation.Builder>public FieldTransformation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<FieldTransformation.Builder>java.io.IOExceptionpublic FieldTransformation.TransformationCase getTransformationCase()
getTransformationCase in interface FieldTransformationOrBuilderpublic FieldTransformation.Builder clearTransformation()
public java.util.List<FieldId> getFieldsList()
Input field(s) to apply the transformation to. [required]
repeated .google.privacy.dlp.v2.FieldId fields = 1;getFieldsList in interface FieldTransformationOrBuilderpublic int getFieldsCount()
Input field(s) to apply the transformation to. [required]
repeated .google.privacy.dlp.v2.FieldId fields = 1;getFieldsCount in interface FieldTransformationOrBuilderpublic FieldId getFields(int index)
Input field(s) to apply the transformation to. [required]
repeated .google.privacy.dlp.v2.FieldId fields = 1;getFields in interface FieldTransformationOrBuilderpublic FieldTransformation.Builder setFields(int index, FieldId value)
Input field(s) to apply the transformation to. [required]
repeated .google.privacy.dlp.v2.FieldId fields = 1;public FieldTransformation.Builder setFields(int index, FieldId.Builder builderForValue)
Input field(s) to apply the transformation to. [required]
repeated .google.privacy.dlp.v2.FieldId fields = 1;public FieldTransformation.Builder addFields(FieldId value)
Input field(s) to apply the transformation to. [required]
repeated .google.privacy.dlp.v2.FieldId fields = 1;public FieldTransformation.Builder addFields(int index, FieldId value)
Input field(s) to apply the transformation to. [required]
repeated .google.privacy.dlp.v2.FieldId fields = 1;public FieldTransformation.Builder addFields(FieldId.Builder builderForValue)
Input field(s) to apply the transformation to. [required]
repeated .google.privacy.dlp.v2.FieldId fields = 1;public FieldTransformation.Builder addFields(int index, FieldId.Builder builderForValue)
Input field(s) to apply the transformation to. [required]
repeated .google.privacy.dlp.v2.FieldId fields = 1;public FieldTransformation.Builder addAllFields(java.lang.Iterable<? extends FieldId> values)
Input field(s) to apply the transformation to. [required]
repeated .google.privacy.dlp.v2.FieldId fields = 1;public FieldTransformation.Builder clearFields()
Input field(s) to apply the transformation to. [required]
repeated .google.privacy.dlp.v2.FieldId fields = 1;public FieldTransformation.Builder removeFields(int index)
Input field(s) to apply the transformation to. [required]
repeated .google.privacy.dlp.v2.FieldId fields = 1;public FieldId.Builder getFieldsBuilder(int index)
Input field(s) to apply the transformation to. [required]
repeated .google.privacy.dlp.v2.FieldId fields = 1;public FieldIdOrBuilder getFieldsOrBuilder(int index)
Input field(s) to apply the transformation to. [required]
repeated .google.privacy.dlp.v2.FieldId fields = 1;getFieldsOrBuilder in interface FieldTransformationOrBuilderpublic java.util.List<? extends FieldIdOrBuilder> getFieldsOrBuilderList()
Input field(s) to apply the transformation to. [required]
repeated .google.privacy.dlp.v2.FieldId fields = 1;getFieldsOrBuilderList in interface FieldTransformationOrBuilderpublic FieldId.Builder addFieldsBuilder()
Input field(s) to apply the transformation to. [required]
repeated .google.privacy.dlp.v2.FieldId fields = 1;public FieldId.Builder addFieldsBuilder(int index)
Input field(s) to apply the transformation to. [required]
repeated .google.privacy.dlp.v2.FieldId fields = 1;public java.util.List<FieldId.Builder> getFieldsBuilderList()
Input field(s) to apply the transformation to. [required]
repeated .google.privacy.dlp.v2.FieldId fields = 1;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. [optional] 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;hasCondition in interface FieldTransformationOrBuilderpublic 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. [optional] 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;getCondition in interface FieldTransformationOrBuilderpublic 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. [optional] 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;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. [optional] 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;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. [optional] 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;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. [optional] 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;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. [optional] 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;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. [optional] 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 in interface FieldTransformationOrBuilderpublic boolean hasPrimitiveTransformation()
Apply the transformation to the entire field.
.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4;hasPrimitiveTransformation in interface FieldTransformationOrBuilderpublic PrimitiveTransformation getPrimitiveTransformation()
Apply the transformation to the entire field.
.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4;getPrimitiveTransformation in interface FieldTransformationOrBuilderpublic FieldTransformation.Builder setPrimitiveTransformation(PrimitiveTransformation value)
Apply the transformation to the entire field.
.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4;public FieldTransformation.Builder setPrimitiveTransformation(PrimitiveTransformation.Builder builderForValue)
Apply the transformation to the entire field.
.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4;public FieldTransformation.Builder mergePrimitiveTransformation(PrimitiveTransformation value)
Apply the transformation to the entire field.
.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4;public FieldTransformation.Builder clearPrimitiveTransformation()
Apply the transformation to the entire field.
.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4;public PrimitiveTransformation.Builder getPrimitiveTransformationBuilder()
Apply the transformation to the entire field.
.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4;public PrimitiveTransformationOrBuilder getPrimitiveTransformationOrBuilder()
Apply the transformation to the entire field.
.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4;getPrimitiveTransformationOrBuilder in interface FieldTransformationOrBuilderpublic 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;hasInfoTypeTransformations in interface FieldTransformationOrBuilderpublic 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;getInfoTypeTransformations in interface FieldTransformationOrBuilderpublic 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;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;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;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;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;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;getInfoTypeTransformationsOrBuilder in interface FieldTransformationOrBuilderpublic final FieldTransformation.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<FieldTransformation.Builder>public final FieldTransformation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<FieldTransformation.Builder>