public sealed class TransformationConfig : IMessage<TransformationConfig>, IEquatable<TransformationConfig>, IDeepCloneable<TransformationConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Data Loss Prevention v2 API class TransformationConfig.
User specified templates and configs for how to deidentify structured,
unstructures, and image files. User must provide either a unstructured
deidentify template or at least one redact image config.
De-identify template.
If this template is specified, it will serve as the default de-identify
template. This template cannot contain record_transformations since it
can be used for unstructured content such as free-form text files. If this
template is not set, a default ReplaceWithInfoTypeConfig will be used to
de-identify unstructured content.
Image redact template.
If this template is specified, it will serve as the de-identify template
for images. If this template is not set, all findings in the image will be
redacted with a black box.
public string StructuredDeidentifyTemplate { get; set; }
Structured de-identify template.
If this template is specified, it will serve as the de-identify template
for structured content such as delimited files and tables. If this template
is not set but the deidentify_template is set, then deidentify_template
will also apply to the structured content. If neither template is set, a
default ReplaceWithInfoTypeConfig will be used to de-identify structured
content.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eTransformationConfig\u003c/code\u003e class within the Google Cloud Data Loss Prevention v2 API is used to define user-specified templates and configurations for de-identifying various types of content, including structured, unstructured, and image files.\u003c/p\u003e\n"],["\u003cp\u003eThere are multiple versions of the \u003ccode\u003eTransformationConfig\u003c/code\u003e class available, ranging from version 2.15.0 up to the latest version 4.16.0, and you can reference the specific documentation per version.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTransformationConfig\u003c/code\u003e class implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and also inherits members from the base \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eUsers can set specific de-identification templates for unstructured content (\u003ccode\u003eDeidentifyTemplate\u003c/code\u003e), images (\u003ccode\u003eImageRedactTemplate\u003c/code\u003e), and structured content (\u003ccode\u003eStructuredDeidentifyTemplate\u003c/code\u003e), with default configurations in place if a specific template is not provided.\u003c/p\u003e\n"],["\u003cp\u003eThis class supports the ability to create a new instance of the \u003ccode\u003eTransformationConfig\u003c/code\u003e or clone an existing instance with the provided constructors.\u003c/p\u003e\n"]]],[],null,[]]