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