1.6.0 (latest) 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    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.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> DataMaskingPolicy

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[DataMaskingPolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataMaskingPolicy.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[DataMaskingPolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataMaskingPolicy.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[DataMaskingPolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataMaskingPolicy.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.BigQuery.DataPolicies.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.md.txt)

## Assembly

Google.Cloud.BigQuery.DataPolicies.V1.dll

## Constructors

### DataMaskingPolicy()

    public DataMaskingPolicy()

### DataMaskingPolicy(DataMaskingPolicy)

    public DataMaskingPolicy(DataMaskingPolicy other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `DataMaskingPolicy` |

## Properties

### HasPredefinedExpression

    public bool HasPredefinedExpression { get; }

Gets whether the "predefined_expression" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### HasRoutine

    public bool HasRoutine { get; }

Gets whether the "routine" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### MaskingExpressionCase

    public DataMaskingPolicy.MaskingExpressionOneofCase MaskingExpressionCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `DataMaskingPolicyMaskingExpressionOneofCase` |   |

### PredefinedExpression

    public DataMaskingPolicy.Types.PredefinedExpression PredefinedExpression { get; set; }

A predefined masking expression.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `DataMaskingPolicyTypesPredefinedExpression` |   |

### Routine

    public string Routine { get; set; }

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}`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |