Package com.google.privacy.dlp.v2
Enum ResourceVisibility
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<ResourceVisibility>
@Generated
public enum ResourceVisibility
extends Enum<ResourceVisibility>
implements com.google.protobuf.ProtocolMessageEnum
How broadly the data in the resource has been shared. New items may be added over time. A higher number means more restricted.Protobuf enum
google.privacy.dlp.v2.ResourceVisibility-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionMay contain public items.Visible to any user.Visible only to specific users.Unused. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intMay contain public items.static final intVisible to any user.static final intVisible only to specific users.static final intUnused. -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceVisibilityforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<ResourceVisibility>static ResourceVisibilityvalueOf(int value) Deprecated.static ResourceVisibilityvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static ResourceVisibilityReturns the enum constant of this type with the specified name.static ResourceVisibility[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
RESOURCE_VISIBILITY_UNSPECIFIED
Unused.
RESOURCE_VISIBILITY_UNSPECIFIED = 0; -
RESOURCE_VISIBILITY_PUBLIC
Visible to any user.
RESOURCE_VISIBILITY_PUBLIC = 10; -
RESOURCE_VISIBILITY_INCONCLUSIVE
May contain public items. For example, if a Cloud Storage bucket has uniform bucket level access disabled, some objects inside it may be public, but none are known yet.
RESOURCE_VISIBILITY_INCONCLUSIVE = 15; -
RESOURCE_VISIBILITY_RESTRICTED
Visible only to specific users.
RESOURCE_VISIBILITY_RESTRICTED = 20; -
UNRECOGNIZED
-
-
Field Details
-
RESOURCE_VISIBILITY_UNSPECIFIED_VALUE
public static final int RESOURCE_VISIBILITY_UNSPECIFIED_VALUEUnused.
RESOURCE_VISIBILITY_UNSPECIFIED = 0;- See Also:
-
RESOURCE_VISIBILITY_PUBLIC_VALUE
public static final int RESOURCE_VISIBILITY_PUBLIC_VALUEVisible to any user.
RESOURCE_VISIBILITY_PUBLIC = 10;- See Also:
-
RESOURCE_VISIBILITY_INCONCLUSIVE_VALUE
public static final int RESOURCE_VISIBILITY_INCONCLUSIVE_VALUEMay contain public items. For example, if a Cloud Storage bucket has uniform bucket level access disabled, some objects inside it may be public, but none are known yet.
RESOURCE_VISIBILITY_INCONCLUSIVE = 15;- See Also:
-
RESOURCE_VISIBILITY_RESTRICTED_VALUE
public static final int RESOURCE_VISIBILITY_RESTRICTED_VALUEVisible only to specific users.
RESOURCE_VISIBILITY_RESTRICTED = 20;- 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
-
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
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
-