public final class FieldTransformation extends GeneratedMessageV3 implements FieldTransformationOrBuilder
The transformation to apply to the field.
Protobuf type google.privacy.dlp.v2.FieldTransformation
Static Fields
public static final int CONDITION_FIELD_NUMBER
Field Value
public static final int FIELDS_FIELD_NUMBER
Field Value
public static final int INFO_TYPE_TRANSFORMATIONS_FIELD_NUMBER
Field Value
public static final int PRIMITIVE_TRANSFORMATION_FIELD_NUMBER
Field Value
Static Methods
public static FieldTransformation getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static FieldTransformation.Builder newBuilder()
Returns
public static FieldTransformation.Builder newBuilder(FieldTransformation prototype)
Parameter
Returns
public static FieldTransformation parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static FieldTransformation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static FieldTransformation parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static FieldTransformation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static FieldTransformation parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static FieldTransformation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static FieldTransformation parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static FieldTransformation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static FieldTransformation parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static FieldTransformation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static FieldTransformation parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static FieldTransformation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<FieldTransformation> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
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 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 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 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 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 Parser<FieldTransformation> getParserForType()
Returns
Overrides
public PrimitiveTransformation getPrimitiveTransformation()
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 int getSerializedSize()
Returns
Overrides
public FieldTransformation.TransformationCase getTransformationCase()
Returns
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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.
|
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public FieldTransformation.Builder newBuilderForType()
Returns
protected FieldTransformation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public FieldTransformation.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions