public static enum DataMaskingPolicy.PredefinedExpression extends Enum<DataMaskingPolicy.PredefinedExpression> implements com.google.protobuf.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| Enum Constant and Description |
|---|
ALWAYS_NULL
Masking expression to replace data with NULLs.
|
DEFAULT_MASKING_VALUE
Masking expression to replace data with their default masking values.
|
PREDEFINED_EXPRESSION_UNSPECIFIED
Default, unspecified predefined expression.
|
SHA256
Masking expression to replace data with SHA-256 hash.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALWAYS_NULL_VALUE
Masking expression to replace data with NULLs.
|
static int |
DEFAULT_MASKING_VALUE_VALUE
Masking expression to replace data with their default masking values.
|
static int |
PREDEFINED_EXPRESSION_UNSPECIFIED_VALUE
Default, unspecified predefined expression.
|
static int |
SHA256_VALUE
Masking expression to replace data with SHA-256 hash.
|
| Modifier and Type | Method and Description |
|---|---|
static DataMaskingPolicy.PredefinedExpression |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<DataMaskingPolicy.PredefinedExpression> |
internalGetValueMap() |
static DataMaskingPolicy.PredefinedExpression |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static DataMaskingPolicy.PredefinedExpression |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static DataMaskingPolicy.PredefinedExpression |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DataMaskingPolicy.PredefinedExpression[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DataMaskingPolicy.PredefinedExpression PREDEFINED_EXPRESSION_UNSPECIFIED
Default, unspecified predefined expression. No masking will take place since no expression is specified.
PREDEFINED_EXPRESSION_UNSPECIFIED = 0;public static final DataMaskingPolicy.PredefinedExpression SHA256
Masking expression to replace data with SHA-256 hash.
SHA256 = 3;public static final DataMaskingPolicy.PredefinedExpression ALWAYS_NULL
Masking expression to replace data with NULLs.
ALWAYS_NULL = 5;public static final DataMaskingPolicy.PredefinedExpression 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;public static final DataMaskingPolicy.PredefinedExpression UNRECOGNIZED
public static final int PREDEFINED_EXPRESSION_UNSPECIFIED_VALUE
Default, unspecified predefined expression. No masking will take place since no expression is specified.
PREDEFINED_EXPRESSION_UNSPECIFIED = 0;public static final int SHA256_VALUE
Masking expression to replace data with SHA-256 hash.
SHA256 = 3;public static final int ALWAYS_NULL_VALUE
Masking expression to replace data with NULLs.
ALWAYS_NULL = 5;public static final int 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;public static DataMaskingPolicy.PredefinedExpression[] values()
for (DataMaskingPolicy.PredefinedExpression c : DataMaskingPolicy.PredefinedExpression.values()) System.out.println(c);
public static DataMaskingPolicy.PredefinedExpression valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static DataMaskingPolicy.PredefinedExpression valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static DataMaskingPolicy.PredefinedExpression forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<DataMaskingPolicy.PredefinedExpression> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static DataMaskingPolicy.PredefinedExpression valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024 Google LLC. All rights reserved.