Class PredefinedExpression (0.6.16)
PredefinedExpression(value)
The available masking rules. Learn more here:
https://cloud.google.com/bigquery/docs/column-data-masking-intro#masking_options.
- STRING: ""
- BYTES: b''
- INTEGER: 0
- FLOAT: 0.0
- NUMERIC: 0
- BOOLEAN: FALSE
- TIMESTAMP: 1970-01-01 00:00:00 UTC
- DATE: 1970-01-01
- TIME: 00:00:00
- DATETIME: 1970-01-01T00:00:00
- GEOGRAPHY: POINT(0 0)
- BIGNUMERIC: 0
- ARRAY: []
- STRUCT: NOT_APPLICABLE
- JSON: NULL
Enums |
Name |
Description |
PREDEFINED_EXPRESSION_UNSPECIFIED |
Default, unspecified predefined expression. No masking will take place since no expression is specified. |
SHA256 |
Masking expression to replace data with SHA-256 hash. |
ALWAYS_NULL |
Masking expression to replace data with NULLs. |
DEFAULT_MASKING_VALUE |
Masking expression to replace data with their default masking values. The default masking values for each type listed as below: |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-28 UTC.
[[["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-28 UTC."],[],[],null,["# Class PredefinedExpression (0.6.16)\n\nVersion latestkeyboard_arrow_down\n\n- [0.6.16 (latest)](/python/docs/reference/bigquerydatapolicy/latest/google.cloud.bigquery_datapolicies_v2beta1.types.DataMaskingPolicy.PredefinedExpression)\n- [0.6.15](/python/docs/reference/bigquerydatapolicy/0.6.15/google.cloud.bigquery_datapolicies_v2beta1.types.DataMaskingPolicy.PredefinedExpression)\n- [0.5.3](/python/docs/reference/bigquerydatapolicy/0.5.3/google.cloud.bigquery_datapolicies_v2beta1.types.DataMaskingPolicy.PredefinedExpression)\n- [0.4.0](/python/docs/reference/bigquerydatapolicy/0.4.0/google.cloud.bigquery_datapolicies_v2beta1.types.DataMaskingPolicy.PredefinedExpression)\n- [0.3.2](/python/docs/reference/bigquerydatapolicy/0.3.2/google.cloud.bigquery_datapolicies_v2beta1.types.DataMaskingPolicy.PredefinedExpression)\n- [0.2.0](/python/docs/reference/bigquerydatapolicy/0.2.0/google.cloud.bigquery_datapolicies_v2beta1.types.DataMaskingPolicy.PredefinedExpression)\n- [0.1.1](/python/docs/reference/bigquerydatapolicy/0.1.1/google.cloud.bigquery_datapolicies_v2beta1.types.DataMaskingPolicy.PredefinedExpression) \n\n PredefinedExpression(value)\n\nThe available masking rules. Learn more here:\n\u003chttps://cloud.google.com/bigquery/docs/column-data-masking-intro#masking_options\u003e. \n\n - STRING: \"\"\n - BYTES: b''\n - INTEGER: 0\n - FLOAT: 0.0\n - NUMERIC: 0\n - BOOLEAN: FALSE\n - TIMESTAMP: 1970-01-01 00:00:00 UTC\n - DATE: 1970-01-01\n - TIME: 00:00:00\n - DATETIME: 1970-01-01T00:00:00\n - GEOGRAPHY: POINT(0 0)\n - BIGNUMERIC: 0\n - ARRAY: []\n - STRUCT: NOT_APPLICABLE\n - JSON: NULL"]]