Enum DataPolicy.DataPolicyType
java.lang.Object
java.lang.Enum<DataPolicy.DataPolicyType>
com.google.cloud.bigquery.datapolicies.v1.DataPolicy.DataPolicyType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<DataPolicy.DataPolicyType>
- Enclosing class:
- DataPolicy
public static enum DataPolicy.DataPolicyType
extends Enum<DataPolicy.DataPolicyType>
implements com.google.protobuf.ProtocolMessageEnum
A list of supported data policy types.Protobuf enum
google.cloud.bigquery.datapolicies.v1.DataPolicy.DataPolicyType-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUsed to create a data policy for column-level security, without data masking.Used to create a data policy for data masking.Default value for the data policy type. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intUsed to create a data policy for column-level security, without data masking.static final intUsed to create a data policy for data masking.static final intDefault value for the data policy type. -
Method Summary
Modifier and TypeMethodDescriptionstatic DataPolicy.DataPolicyTypeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<DataPolicy.DataPolicyType>static DataPolicy.DataPolicyTypevalueOf(int value) Deprecated.static DataPolicy.DataPolicyTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static DataPolicy.DataPolicyTypeReturns the enum constant of this type with the specified name.static DataPolicy.DataPolicyType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DATA_POLICY_TYPE_UNSPECIFIED
Default value for the data policy type. This should not be used.
DATA_POLICY_TYPE_UNSPECIFIED = 0; -
COLUMN_LEVEL_SECURITY_POLICY
Used to create a data policy for column-level security, without data masking.
COLUMN_LEVEL_SECURITY_POLICY = 3; -
DATA_MASKING_POLICY
Used to create a data policy for data masking.
DATA_MASKING_POLICY = 2; -
UNRECOGNIZED
-
-
Field Details
-
DATA_POLICY_TYPE_UNSPECIFIED_VALUE
public static final int DATA_POLICY_TYPE_UNSPECIFIED_VALUEDefault value for the data policy type. This should not be used.
DATA_POLICY_TYPE_UNSPECIFIED = 0;- See Also:
-
COLUMN_LEVEL_SECURITY_POLICY_VALUE
public static final int COLUMN_LEVEL_SECURITY_POLICY_VALUEUsed to create a data policy for column-level security, without data masking.
COLUMN_LEVEL_SECURITY_POLICY = 3;- See Also:
-
DATA_MASKING_POLICY_VALUE
public static final int DATA_MASKING_POLICY_VALUEUsed to create a data policy for data masking.
DATA_MASKING_POLICY = 2;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<DataPolicy.DataPolicyType> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static DataPolicy.DataPolicyType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-