Enum DataMaskingPolicy.PredefinedExpression (0.5.0)

public enum DataMaskingPolicy.PredefinedExpression extends Enum<DataMaskingPolicy.PredefinedExpression> implements ProtocolMessageEnum

The available masking rules. Learn more here: https://cloud.google.com/bigquery/docs/column-data-masking-intro#masking_options.

Protobuf enum google.cloud.bigquery.datapolicies.v1beta1.DataMaskingPolicy.PredefinedExpression

Implements

ProtocolMessageEnum

Static Fields

NameDescription
ALWAYS_NULL

Masking expression to replace data with NULLs.

ALWAYS_NULL = 5;

ALWAYS_NULL_VALUE

Masking expression to replace data with NULLs.

ALWAYS_NULL = 5;

DEFAULT_MASKING_VALUE

Masking expression to replace data with their default masking values. The default masking values for each type listed as below:

  • STRING: ""
  • BYTES: b''
  • INTEGER: 0
  • FLOAT: 0.0
  • NUMERIC: 0
  • BOOLEAN: FALSE
  • TIMESTAMP: 0001-01-01 00:00:00 UTC
  • DATE: 0001-01-01
  • TIME: 00:00:00
  • DATETIME: 0001-01-01T00:00:00
  • GEOGRAPHY: POINT(0 0)
  • BIGNUMERIC: 0
  • ARRAY: []
  • STRUCT: NOT_APPLICABLE
  • JSON: NULL

DEFAULT_MASKING_VALUE = 7;

DEFAULT_MASKING_VALUE_VALUE

Masking expression to replace data with their default masking values. The default masking values for each type listed as below:

  • STRING: ""
  • BYTES: b''
  • INTEGER: 0
  • FLOAT: 0.0
  • NUMERIC: 0
  • BOOLEAN: FALSE
  • TIMESTAMP: 0001-01-01 00:00:00 UTC
  • DATE: 0001-01-01
  • TIME: 00:00:00
  • DATETIME: 0001-01-01T00:00:00
  • GEOGRAPHY: POINT(0 0)
  • BIGNUMERIC: 0
  • ARRAY: []
  • STRUCT: NOT_APPLICABLE
  • JSON: NULL

DEFAULT_MASKING_VALUE = 7;

PREDEFINED_EXPRESSION_UNSPECIFIED

Default, unspecified predefined expression. No masking will take place since no expression is specified.

PREDEFINED_EXPRESSION_UNSPECIFIED = 0;

PREDEFINED_EXPRESSION_UNSPECIFIED_VALUE

Default, unspecified predefined expression. No masking will take place since no expression is specified.

PREDEFINED_EXPRESSION_UNSPECIFIED = 0;

SHA256

Masking expression to replace data with SHA-256 hash.

SHA256 = 3;

SHA256_VALUE

Masking expression to replace data with SHA-256 hash.

SHA256 = 3;

UNRECOGNIZED

Static Methods

NameDescription
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

NameDescription
getDescriptorForType()
getNumber()
getValueDescriptor()