public sealed class CharacterMaskConfig : IMessage<CharacterMaskConfig>, IEquatable<CharacterMaskConfig>, IDeepCloneable<CharacterMaskConfig>, IBufferMessage, IMessage
Partially mask a string by replacing a given number of characters with a
fixed character. Masking can start from the beginning or end of the string.
This can be used on data of any type (numbers, longs, and so on) and when
de-identifying structured data we'll attempt to preserve the original data's
type. (This allows you to take a long like 123 and modify it to a string like
**3.
public RepeatedField<CharsToIgnore> CharactersToIgnore { get; }
When masking a string, items in this list will be skipped when replacing
characters. For example, if the input string is 555-555-5555 and you
instruct Cloud DLP to skip - and mask 5 characters with *, Cloud DLP
returns ***-**5-5555.
Character to use to mask the sensitive values—for example, * for an
alphabetic string such as a name, or 0 for a numeric string such as ZIP
code or credit card number. This string must have a length of 1. If not
supplied, this value defaults to * for strings, and 0 for digits.
Mask characters in reverse order. For example, if masking_character is
0, number_to_mask is 14, and reverse_order is false, then the
input string 1234-5678-9012-3456 is masked as 00000000000000-3456.
If masking_character is *, number_to_mask is 3, and reverse_order
is true, then the string 12345 is masked as 12***.
[[["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\u003eThis webpage provides documentation for the \u003ccode\u003eCharacterMaskConfig\u003c/code\u003e class within the \u003ccode\u003eGoogle.Cloud.Dlp.V2\u003c/code\u003e namespace, detailing its functionality for masking strings in the Google Cloud Data Loss Prevention (DLP) API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCharacterMaskConfig\u003c/code\u003e class allows partial masking of strings by replacing a specified number of characters with a designated mask character, starting from either the beginning or the end of the string.\u003c/p\u003e\n"],["\u003cp\u003eUsers can configure the masking process by setting properties such as \u003ccode\u003eMaskingCharacter\u003c/code\u003e, \u003ccode\u003eNumberToMask\u003c/code\u003e, and \u003ccode\u003eReverseOrder\u003c/code\u003e, as well as defining characters to be skipped during the masking process using the \u003ccode\u003eCharactersToIgnore\u003c/code\u003e property.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation includes details on the class's constructors, properties, inheritance, and the various versions available, ranging from version 2.15.0 to the latest version 4.16.0, allowing users to navigate through different versions of this specific DLP feature.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCharacterMaskConfig\u003c/code\u003e is designed to mask sensitive data in various types, such as numbers and strings, and it implements the \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, \u003ccode\u003eIBufferMessage\u003c/code\u003e and \u003ccode\u003eIMessage\u003c/code\u003e interfaces to ensure its ability to work with the Google Protocol Buffer system.\u003c/p\u003e\n"]]],[],null,[]]