public static enum Document.Type extends java.lang.Enum<Document.Type> implements ProtocolMessageEnum
The document types enum.Protobuf enum
google.cloud.language.v1.Document.Type
Enum Constant and Description |
---|
HTML
HTML
|
PLAIN_TEXT
Plain text
|
TYPE_UNSPECIFIED
The content type is not specified.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
HTML_VALUE
HTML
|
static int |
PLAIN_TEXT_VALUE
Plain text
|
static int |
TYPE_UNSPECIFIED_VALUE
The content type is not specified.
|
Modifier and Type | Method and Description |
---|---|
static Document.Type |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<Document.Type> |
internalGetValueMap() |
static Document.Type |
valueOf(Descriptors.EnumValueDescriptor desc) |
static Document.Type |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Document.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Document.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Document.Type TYPE_UNSPECIFIED
The content type is not specified.
TYPE_UNSPECIFIED = 0;
public static final Document.Type PLAIN_TEXT
Plain text
PLAIN_TEXT = 1;
public static final Document.Type HTML
HTML
HTML = 2;
public static final Document.Type UNRECOGNIZED
public static final int TYPE_UNSPECIFIED_VALUE
The content type is not specified.
TYPE_UNSPECIFIED = 0;
public static final int PLAIN_TEXT_VALUE
Plain text
PLAIN_TEXT = 1;
public static final int HTML_VALUE
HTML
HTML = 2;
public static Document.Type[] values()
for (Document.Type c : Document.Type.values()) System.out.println(c);
public static Document.Type 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 Document.Type valueOf(int value)
forNumber(int)
instead.public static Document.Type forNumber(int value)
public static Internal.EnumLiteMap<Document.Type> 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 Document.Type valueOf(Descriptors.EnumValueDescriptor desc)