public enum ContentOption extends java.lang.Enum<ContentOption> implements ProtocolMessageEnum
Options describing which parts of the provided content should be scanned.Protobuf enum
google.privacy.dlp.v2.ContentOption
Enum Constant and Description |
---|
CONTENT_IMAGE
Images found in the data.
|
CONTENT_TEXT
Text content within the data, excluding any metadata.
|
CONTENT_UNSPECIFIED
Includes entire content of a file or a data stream.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
CONTENT_IMAGE_VALUE
Images found in the data.
|
static int |
CONTENT_TEXT_VALUE
Text content within the data, excluding any metadata.
|
static int |
CONTENT_UNSPECIFIED_VALUE
Includes entire content of a file or a data stream.
|
Modifier and Type | Method and Description |
---|---|
static ContentOption |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<ContentOption> |
internalGetValueMap() |
static ContentOption |
valueOf(Descriptors.EnumValueDescriptor desc) |
static ContentOption |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static ContentOption |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ContentOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ContentOption CONTENT_UNSPECIFIED
Includes entire content of a file or a data stream.
CONTENT_UNSPECIFIED = 0;
public static final ContentOption CONTENT_TEXT
Text content within the data, excluding any metadata.
CONTENT_TEXT = 1;
public static final ContentOption CONTENT_IMAGE
Images found in the data.
CONTENT_IMAGE = 2;
public static final ContentOption UNRECOGNIZED
public static final int CONTENT_UNSPECIFIED_VALUE
Includes entire content of a file or a data stream.
CONTENT_UNSPECIFIED = 0;
public static final int CONTENT_TEXT_VALUE
Text content within the data, excluding any metadata.
CONTENT_TEXT = 1;
public static final int CONTENT_IMAGE_VALUE
Images found in the data.
CONTENT_IMAGE = 2;
public static ContentOption[] values()
for (ContentOption c : ContentOption.values()) System.out.println(c);
public static ContentOption valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static ContentOption valueOf(int value)
forNumber(int)
instead.public static ContentOption forNumber(int value)
public static Internal.EnumLiteMap<ContentOption> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static ContentOption valueOf(Descriptors.EnumValueDescriptor desc)