public static enum Document.KnowledgeType extends Enum<Document.KnowledgeType> implements com.google.protobuf.ProtocolMessageEnum
The knowledge type of document content.Protobuf enum
google.cloud.dialogflow.v2beta1.Document.KnowledgeType| Enum Constant and Description |
|---|
EXTRACTIVE_QA
Documents for which unstructured text is extracted and used for
question answering.
|
FAQ
The document content contains question and answer pairs as either HTML or
CSV.
|
KNOWLEDGE_TYPE_UNSPECIFIED
The type is unspecified or arbitrary.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
EXTRACTIVE_QA_VALUE
Documents for which unstructured text is extracted and used for
question answering.
|
static int |
FAQ_VALUE
The document content contains question and answer pairs as either HTML or
CSV.
|
static int |
KNOWLEDGE_TYPE_UNSPECIFIED_VALUE
The type is unspecified or arbitrary.
|
| Modifier and Type | Method and Description |
|---|---|
static Document.KnowledgeType |
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<Document.KnowledgeType> |
internalGetValueMap() |
static Document.KnowledgeType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Document.KnowledgeType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Document.KnowledgeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Document.KnowledgeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Document.KnowledgeType KNOWLEDGE_TYPE_UNSPECIFIED
The type is unspecified or arbitrary.
KNOWLEDGE_TYPE_UNSPECIFIED = 0;public static final Document.KnowledgeType FAQ
The document content contains question and answer pairs as either HTML or CSV. Typical FAQ HTML formats are parsed accurately, but unusual formats may fail to be parsed. CSV must have questions in the first column and answers in the second, with no header. Because of this explicit format, they are always parsed accurately.
FAQ = 1;public static final Document.KnowledgeType EXTRACTIVE_QA
Documents for which unstructured text is extracted and used for question answering.
EXTRACTIVE_QA = 2;public static final Document.KnowledgeType UNRECOGNIZED
public static final int KNOWLEDGE_TYPE_UNSPECIFIED_VALUE
The type is unspecified or arbitrary.
KNOWLEDGE_TYPE_UNSPECIFIED = 0;public static final int FAQ_VALUE
The document content contains question and answer pairs as either HTML or CSV. Typical FAQ HTML formats are parsed accurately, but unusual formats may fail to be parsed. CSV must have questions in the first column and answers in the second, with no header. Because of this explicit format, they are always parsed accurately.
FAQ = 1;public static final int EXTRACTIVE_QA_VALUE
Documents for which unstructured text is extracted and used for question answering.
EXTRACTIVE_QA = 2;public static Document.KnowledgeType[] values()
for (Document.KnowledgeType c : Document.KnowledgeType.values()) System.out.println(c);
public static Document.KnowledgeType 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 Document.KnowledgeType valueOf(int value)
forNumber(int) instead.public static Document.KnowledgeType forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<Document.KnowledgeType> 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 Document.KnowledgeType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2019 Google LLC. All rights reserved.