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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<FieldTransformation.Builder>
public FieldTransformation.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<FieldTransformation.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<FieldTransformation.Builder>
public FieldTransformation getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public FieldTransformation build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public FieldTransformation buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public FieldTransformation.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<FieldTransformation.Builder>
public FieldTransformation.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<FieldTransformation.Builder>
public FieldTransformation.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<FieldTransformation.Builder>
public FieldTransformation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<FieldTransformation.Builder>
public FieldTransformation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<FieldTransformation.Builder>
public FieldTransformation.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<FieldTransformation.Builder>
public FieldTransformation.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<FieldTransformation.Builder>
public FieldTransformation.Builder mergeFrom(FieldTransformation other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<FieldTransformation.Builder>
public FieldTransformation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<FieldTransformation.Builder>
java.io.IOException
public FieldTransformation.TransformationCase getTransformationCase()
getTransformationCase
in interface FieldTransformationOrBuilder
public 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 FieldTransformationOrBuilder
public int getFieldsCount()
Input field(s) to apply the transformation to. [required]
repeated .google.privacy.dlp.v2.FieldId fields = 1;
getFieldsCount
in interface FieldTransformationOrBuilder
public FieldId getFields(int index)
Input field(s) to apply the transformation to. [required]
repeated .google.privacy.dlp.v2.FieldId fields = 1;
getFields
in interface FieldTransformationOrBuilder
public 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 FieldTransformationOrBuilder
public 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 FieldTransformationOrBuilder
public 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 FieldTransformationOrBuilder
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. [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 FieldTransformationOrBuilder
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. [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 FieldTransformationOrBuilder
public boolean hasPrimitiveTransformation()
Apply the transformation to the entire field.
.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4;
hasPrimitiveTransformation
in interface FieldTransformationOrBuilder
public PrimitiveTransformation getPrimitiveTransformation()
Apply the transformation to the entire field.
.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4;
getPrimitiveTransformation
in interface FieldTransformationOrBuilder
public 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 FieldTransformationOrBuilder
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;
hasInfoTypeTransformations
in interface FieldTransformationOrBuilder
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;
getInfoTypeTransformations
in interface FieldTransformationOrBuilder
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;
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 FieldTransformationOrBuilder
public final FieldTransformation.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<FieldTransformation.Builder>
public final FieldTransformation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<FieldTransformation.Builder>