public sealed class DataMaskingPolicy : IMessage<DataMaskingPolicy>, IEquatable<DataMaskingPolicy>, IDeepCloneable<DataMaskingPolicy>, IBufferMessage, IMessage
Reference documentation and code samples for the BigQuery Data Policy v1 API class DataMaskingPolicy.
The data masking policy that is used to specify data masking rule.
The name of the BigQuery routine that contains the custom masking
routine, in the format of
projects/{project_number}/datasets/{dataset_id}/routines/{routine_id}.
[[["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\u003eDataMaskingPolicy\u003c/code\u003e class in the Google.Cloud.BigQuery.DataPolicies.V1 namespace is used to define rules for masking data.\u003c/p\u003e\n"],["\u003cp\u003eThis class supports different versions, with 1.5.0 being the latest and 1.2.0 currently displayed, and offers methods to check for the existence of predefined expressions or routines.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDataMaskingPolicy\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.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDataMaskingPolicy\u003c/code\u003e can be constructed either as an empty object or as a clone of another \u003ccode\u003eDataMaskingPolicy\u003c/code\u003e instance.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers two primary mechanisms for specifying masking rules: setting a predefined expression through the \u003ccode\u003ePredefinedExpression\u003c/code\u003e property or specifying a custom routine via the \u003ccode\u003eRoutine\u003c/code\u003e property.\u003c/p\u003e\n"]]],[],null,[]]