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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
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];
Parameter
Name | Description |
values | Iterable<? extends com.google.privacy.dlp.v2.FieldId>
|
Returns
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];
Parameter
Returns
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];
Parameter
Returns
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];
Parameters
Returns
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];
Parameters
Returns
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];
Returns
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];
Parameter
Returns
public FieldTransformation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public FieldTransformation build()
Returns
public FieldTransformation buildPartial()
Returns
public FieldTransformation.Builder clear()
Returns
Overrides
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;
Returns
public FieldTransformation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
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];
Returns
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;
Returns
public FieldTransformation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public FieldTransformation.Builder clearPrimitiveTransformation()
Apply the transformation to the entire field.
.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4;
Returns
public FieldTransformation.Builder clearTransformation()
Returns
public FieldTransformation.Builder clone()
Returns
Overrides
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;
Returns
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;
Returns
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;
Returns
public FieldTransformation getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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];
Parameter
Returns
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];
Parameter
Returns
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];
Returns
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];
Returns
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];
Returns
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];
Parameter
Returns
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];
Returns
Type | Description |
List<? extends com.google.privacy.dlp.v2.FieldIdOrBuilder> | |
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;
Returns
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;
Returns
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;
Returns
public PrimitiveTransformation getPrimitiveTransformation()
Apply the transformation to the entire field.
.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4;
Returns
public PrimitiveTransformation.Builder getPrimitiveTransformationBuilder()
Apply the transformation to the entire field.
.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4;
Returns
public PrimitiveTransformationOrBuilder getPrimitiveTransformationOrBuilder()
Apply the transformation to the entire field.
.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4;
Returns
public FieldTransformation.TransformationCase getTransformationCase()
Returns
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;
Returns
Type | Description |
boolean | Whether the condition field is set.
|
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;
Returns
Type | Description |
boolean | Whether the infoTypeTransformations field is set.
|
public boolean hasPrimitiveTransformation()
Apply the transformation to the entire field.
.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4;
Returns
Type | Description |
boolean | Whether the primitiveTransformation field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
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;
Parameter
Returns
public FieldTransformation.Builder mergeFrom(FieldTransformation other)
Parameter
Returns
public FieldTransformation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public FieldTransformation.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
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;
Parameter
Returns
public FieldTransformation.Builder mergePrimitiveTransformation(PrimitiveTransformation value)
Apply the transformation to the entire field.
.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4;
Parameter
Returns
public final FieldTransformation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
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];
Parameter
Returns
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;
Parameter
Returns
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;
Parameter
Returns
public FieldTransformation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
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];
Parameters
Returns
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];
Parameters
Returns
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;
Parameter
Returns
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;
Parameter
Returns
public FieldTransformation.Builder setPrimitiveTransformation(PrimitiveTransformation value)
Apply the transformation to the entire field.
.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4;
Parameter
Returns
public FieldTransformation.Builder setPrimitiveTransformation(PrimitiveTransformation.Builder builderForValue)
Apply the transformation to the entire field.
.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4;
Parameter
Returns
public FieldTransformation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final FieldTransformation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides