Reference documentation and code samples for the Google Cloud BigQuery Data Policies V1 Client class DataMaskingPolicy.
The data masking policy that is used to specify data masking rule.
Generated from protobuf message google.cloud.bigquery.datapolicies.v1.DataMaskingPolicy
Namespace
Google \ Cloud \ BigQuery \ DataPolicies \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ predefined_expression
int
A predefined masking expression.
↳ routine
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}.
getPredefinedExpression
A predefined masking expression.
Returns
Type
Description
int
hasPredefinedExpression
setPredefinedExpression
A predefined masking expression.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getRoutine
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}.
Returns
Type
Description
string
hasRoutine
setRoutine
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"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud BigQuery Data Policies V1 Client - Class DataMaskingPolicy (1.0.5)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.5 (latest)](/php/docs/reference/cloud-bigquery-datapolicies/latest/V1.DataMaskingPolicy)\n- [1.0.4](/php/docs/reference/cloud-bigquery-datapolicies/1.0.4/V1.DataMaskingPolicy)\n- [0.5.5](/php/docs/reference/cloud-bigquery-datapolicies/0.5.5/V1.DataMaskingPolicy)\n- [0.4.1](/php/docs/reference/cloud-bigquery-datapolicies/0.4.1/V1.DataMaskingPolicy)\n- [0.3.3](/php/docs/reference/cloud-bigquery-datapolicies/0.3.3/V1.DataMaskingPolicy)\n- [0.2.4](/php/docs/reference/cloud-bigquery-datapolicies/0.2.4/V1.DataMaskingPolicy)\n- [0.1.1](/php/docs/reference/cloud-bigquery-datapolicies/0.1.1/V1.DataMaskingPolicy) \nReference documentation and code samples for the Google Cloud BigQuery Data Policies V1 Client class DataMaskingPolicy.\n\nThe data masking policy that is used to specify data masking rule.\n\nGenerated from protobuf message `google.cloud.bigquery.datapolicies.v1.DataMaskingPolicy`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ BigQuery \\\\ DataPolicies \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getPredefinedExpression\n\nA predefined masking expression.\n\n### hasPredefinedExpression\n\n### setPredefinedExpression\n\nA predefined masking expression.\n\n### getRoutine\n\nThe name of the BigQuery routine that contains the custom masking\nroutine, in the format of\n`projects/{project_number}/datasets/{dataset_id}/routines/{routine_id}`.\n\n### hasRoutine\n\n### setRoutine\n\nThe name of the BigQuery routine that contains the custom masking\nroutine, in the format of\n`projects/{project_number}/datasets/{dataset_id}/routines/{routine_id}`.\n\n### getMaskingExpression"]]