# BigQuery Data Policy v1beta1 API - Class DataMaskingPolicy (1.0.0-beta05)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [1.0.0-beta05 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1Beta1/latest/Google.Cloud.BigQuery.DataPolicies.V1Beta1.DataMaskingPolicy)
- [1.0.0-beta04](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1Beta1/1.0.0-beta04/Google.Cloud.BigQuery.DataPolicies.V1Beta1.DataMaskingPolicy)

    public sealed class DataMaskingPolicy : IMessage<DataMaskingPolicy>, IEquatable<DataMaskingPolicy>, IDeepCloneable<DataMaskingPolicy>, IBufferMessage, IMessage

Reference documentation and code samples for the BigQuery Data Policy v1beta1 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://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[DataMaskingPolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1Beta1/latest/Google.Cloud.BigQuery.DataPolicies.V1Beta1.DataMaskingPolicy), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[DataMaskingPolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1Beta1/latest/Google.Cloud.BigQuery.DataPolicies.V1Beta1.DataMaskingPolicy), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[DataMaskingPolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1Beta1/latest/Google.Cloud.BigQuery.DataPolicies.V1Beta1.DataMaskingPolicy), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## 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.V1Beta1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1Beta1/latest/Google.Cloud.BigQuery.DataPolicies.V1Beta1)

## Assembly

Google.Cloud.BigQuery.DataPolicies.V1Beta1.dll

## Constructors

### DataMaskingPolicy()

    public DataMaskingPolicy()

### DataMaskingPolicy(DataMaskingPolicy)

    public DataMaskingPolicy(DataMaskingPolicy other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1Beta1/latest/Google.Cloud.BigQuery.DataPolicies.V1Beta1.DataMaskingPolicy` |

## Properties

### HasPredefinedExpression

    public bool HasPredefinedExpression { get; }

Gets whether the "predefined_expression" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### MaskingExpressionCase

    public DataMaskingPolicy.MaskingExpressionOneofCase MaskingExpressionCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1Beta1/latest/Google.Cloud.BigQuery.DataPolicies.V1Beta1.DataMaskingPolicyhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1Beta1/latest/Google.Cloud.BigQuery.DataPolicies.V1Beta1.DataMaskingPolicy.MaskingExpressionOneofCase` |   |

### PredefinedExpression

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

A predefined masking expression.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1Beta1/latest/Google.Cloud.BigQuery.DataPolicies.V1Beta1.DataMaskingPolicyhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1Beta1/latest/Google.Cloud.BigQuery.DataPolicies.V1Beta1.DataMaskingPolicy.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1Beta1/latest/Google.Cloud.BigQuery.DataPolicies.V1Beta1.DataMaskingPolicy.Types.PredefinedExpression` |   |