Reference documentation and code samples for the BigQuery Data Policy Service V1beta1 API module Google::Cloud::Bigquery::DataPolicies::V1beta1::DataMaskingPolicy::PredefinedExpression.
[[["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-09 UTC."],[],[],null,["# BigQuery Data Policy Service V1beta1 API - Module Google::Cloud::Bigquery::DataPolicies::V1beta1::DataMaskingPolicy::PredefinedExpression (v0.8.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.8.0 (latest)](/ruby/docs/reference/google-cloud-bigquery-data_policies-v1beta1/latest/Google-Cloud-Bigquery-DataPolicies-V1beta1-DataMaskingPolicy-PredefinedExpression)\n- [0.7.1](/ruby/docs/reference/google-cloud-bigquery-data_policies-v1beta1/0.7.1/Google-Cloud-Bigquery-DataPolicies-V1beta1-DataMaskingPolicy-PredefinedExpression)\n- [0.6.0](/ruby/docs/reference/google-cloud-bigquery-data_policies-v1beta1/0.6.0/Google-Cloud-Bigquery-DataPolicies-V1beta1-DataMaskingPolicy-PredefinedExpression)\n- [0.5.1](/ruby/docs/reference/google-cloud-bigquery-data_policies-v1beta1/0.5.1/Google-Cloud-Bigquery-DataPolicies-V1beta1-DataMaskingPolicy-PredefinedExpression)\n- [0.4.2](/ruby/docs/reference/google-cloud-bigquery-data_policies-v1beta1/0.4.2/Google-Cloud-Bigquery-DataPolicies-V1beta1-DataMaskingPolicy-PredefinedExpression)\n- [0.3.0](/ruby/docs/reference/google-cloud-bigquery-data_policies-v1beta1/0.3.0/Google-Cloud-Bigquery-DataPolicies-V1beta1-DataMaskingPolicy-PredefinedExpression)\n- [0.2.1](/ruby/docs/reference/google-cloud-bigquery-data_policies-v1beta1/0.2.1/Google-Cloud-Bigquery-DataPolicies-V1beta1-DataMaskingPolicy-PredefinedExpression)\n- [0.1.0](/ruby/docs/reference/google-cloud-bigquery-data_policies-v1beta1/0.1.0/Google-Cloud-Bigquery-DataPolicies-V1beta1-DataMaskingPolicy-PredefinedExpression) \nReference documentation and code samples for the BigQuery Data Policy Service V1beta1 API module Google::Cloud::Bigquery::DataPolicies::V1beta1::DataMaskingPolicy::PredefinedExpression.\n\nThe available masking rules. Learn more here:\n\u003chttps://cloud.google.com/bigquery/docs/column-data-masking-intro#masking_options\u003e.\n\nConstants\n---------\n\n### PREDEFINED_EXPRESSION_UNSPECIFIED\n\n**value:** 0 \nDefault, unspecified predefined expression. No masking will take place\nsince no expression is specified.\n\n### SHA256\n\n**value:** 3 \nMasking expression to replace data with SHA-256 hash.\n\n### ALWAYS_NULL\n\n**value:** 5 \nMasking expression to replace data with NULLs.\n\n### DEFAULT_MASKING_VALUE\n\n**value:** 7 \n\nMasking expression to replace data with their default masking values.\nThe default masking values for each type listed as below:\n\n\u003cbr /\u003e\n\n- STRING: \"\"\n- BYTES: b''\n- INTEGER: 0\n- FLOAT: 0.0\n- NUMERIC: 0\n- BOOLEAN: FALSE\n- TIMESTAMP: 0001-01-01 00:00:00 UTC\n- DATE: 0001-01-01\n- TIME: 00:00:00\n- DATETIME: 0001-01-01T00:00:00\n- GEOGRAPHY: POINT(0 0)\n- BIGNUMERIC: 0\n- ARRAY: \\[\\]\n- STRUCT: NOT_APPLICABLE\n- JSON: NULL"]]