public sealed class FieldTransformation : IMessage<FieldTransformation>, IEquatable<FieldTransformation>, IDeepCloneable<FieldTransformation>, IBufferMessage, IMessage
The transformation to apply to the field.
Implements
IMessage<FieldTransformation>, IEquatable<FieldTransformation>, IDeepCloneable<FieldTransformation>, IBufferMessage, IMessageNamespace
Google.Cloud.Dlp.V2Assembly
Google.Cloud.Dlp.V2.dll
Constructors
FieldTransformation()
public FieldTransformation()
FieldTransformation(FieldTransformation)
public FieldTransformation(FieldTransformation other)
Parameter | |
---|---|
Name | Description |
other | FieldTransformation |
Properties
Condition
public RecordCondition Condition { get; set; }
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.
Property Value | |
---|---|
Type | Description |
RecordCondition |
Fields
public RepeatedField<FieldId> Fields { get; }
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".
Property Value | |
---|---|
Type | Description |
RepeatedField<FieldId> |
InfoTypeTransformations
public InfoTypeTransformations InfoTypeTransformations { get; set; }
Treat the contents of the field as free text, and selectively
transform content that matches an InfoType
.
Property Value | |
---|---|
Type | Description |
InfoTypeTransformations |
PrimitiveTransformation
public PrimitiveTransformation PrimitiveTransformation { get; set; }
Apply the transformation to the entire field.
Property Value | |
---|---|
Type | Description |
PrimitiveTransformation |
TransformationCase
public FieldTransformation.TransformationOneofCase TransformationCase { get; }
Property Value | |
---|---|
Type | Description |
FieldTransformation.TransformationOneofCase |