# BigQuery Data Policy Service V1 API - Class Google::Cloud::Bigquery::DataPolicies::V1::DataMaskingPolicy (v1.4.0)

1.4.0 (latest) 1.3.0 1.2.1 1.1.0 1.0.1 0.10.0 0.9.0 0.8.1 0.7.2 0.6.0 0.5.0 0.4.0 0.3.1 0.2.0 0.1.0 Reference documentation and code samples for the BigQuery Data Policy Service V1 API class Google::Cloud::Bigquery::DataPolicies::V1::DataMaskingPolicy.

The data masking policy that is used to specify data masking rule.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #predefined_expression

    def predefined_expression() -> ::Google::Cloud::Bigquery::DataPolicies::V1::DataMaskingPolicy::PredefinedExpression

**Returns**

- ([::Google::Cloud::Bigquery::DataPolicies::V1::DataMaskingPolicy::PredefinedExpression](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-data_policies-v1/latest/Google-Cloud-Bigquery-DataPolicies-V1-DataMaskingPolicy-PredefinedExpression)) --- A predefined masking expression.


  Note: The following fields are mutually exclusive: `predefined_expression`, `routine`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #predefined_expression=

    def predefined_expression=(value) -> ::Google::Cloud::Bigquery::DataPolicies::V1::DataMaskingPolicy::PredefinedExpression

**Parameter**

- **value** ([::Google::Cloud::Bigquery::DataPolicies::V1::DataMaskingPolicy::PredefinedExpression](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-data_policies-v1/latest/Google-Cloud-Bigquery-DataPolicies-V1-DataMaskingPolicy-PredefinedExpression)) --- A predefined masking expression.


  Note: The following fields are mutually exclusive: `predefined_expression`, `routine`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Bigquery::DataPolicies::V1::DataMaskingPolicy::PredefinedExpression](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-data_policies-v1/latest/Google-Cloud-Bigquery-DataPolicies-V1-DataMaskingPolicy-PredefinedExpression)) --- A predefined masking expression.


  Note: The following fields are mutually exclusive: `predefined_expression`, `routine`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #routine

    def routine() -> ::String

**Returns**

- (::String) --- 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}`.


  Note: The following fields are mutually exclusive: `routine`, `predefined_expression`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #routine=

    def routine=(value) -> ::String

**Parameter**

- **value** (::String) --- 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}`.


  Note: The following fields are mutually exclusive: `routine`, `predefined_expression`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::String) --- 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}`.


  Note: The following fields are mutually exclusive: `routine`, `predefined_expression`. If a field in that set is populated, all other fields in the set will automatically be cleared.