Enum Document.KnowledgeType
- java.lang.Object
-
- java.lang.Enum<Document.KnowledgeType>
-
- com.google.cloud.dialogflow.v2beta1.Document.KnowledgeType
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Document.KnowledgeType>
- Enclosing class:
- Document
public static enum Document.KnowledgeType extends Enum<Document.KnowledgeType> implements com.google.protobuf.ProtocolMessageEnum
The knowledge type of document content.
Protobuf enumgoogle.cloud.dialogflow.v2beta1.Document.KnowledgeType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AGENT_FACING_SMART_REPLYThe document contains agent-facing Smart Reply entries.ARTICLE_SUGGESTIONThe entire document content as a whole can be used for query results.EXTRACTIVE_QADocuments for which unstructured text is extracted and used for question answering.FAQThe document content contains question and answer pairs as either HTML or CSV.KNOWLEDGE_TYPE_UNSPECIFIEDThe type is unspecified or arbitrary.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intAGENT_FACING_SMART_REPLY_VALUEThe document contains agent-facing Smart Reply entries.static intARTICLE_SUGGESTION_VALUEThe entire document content as a whole can be used for query results.static intEXTRACTIVE_QA_VALUEDocuments for which unstructured text is extracted and used for question answering.static intFAQ_VALUEThe document content contains question and answer pairs as either HTML or CSV.static intKNOWLEDGE_TYPE_UNSPECIFIED_VALUEThe type is unspecified or arbitrary.static Document.KnowledgeTypeSMART_REPLYThe legacy enum for agent-facing smart reply feature.static intSMART_REPLY_VALUEThe legacy enum for agent-facing smart reply feature.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Document.KnowledgeTypeforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<Document.KnowledgeType>internalGetValueMap()static Document.KnowledgeTypevalueOf(int value)Deprecated.static Document.KnowledgeTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static Document.KnowledgeTypevalueOf(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.
-
-
-
Enum Constant Detail
-
KNOWLEDGE_TYPE_UNSPECIFIED
public static final Document.KnowledgeType KNOWLEDGE_TYPE_UNSPECIFIED
The type is unspecified or arbitrary.
KNOWLEDGE_TYPE_UNSPECIFIED = 0;
-
FAQ
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;
-
EXTRACTIVE_QA
public static final Document.KnowledgeType EXTRACTIVE_QA
Documents for which unstructured text is extracted and used for question answering.
EXTRACTIVE_QA = 2;
-
ARTICLE_SUGGESTION
public static final Document.KnowledgeType ARTICLE_SUGGESTION
The entire document content as a whole can be used for query results. Only for Contact Center Solutions on Dialogflow.
ARTICLE_SUGGESTION = 3;
-
AGENT_FACING_SMART_REPLY
public static final Document.KnowledgeType AGENT_FACING_SMART_REPLY
The document contains agent-facing Smart Reply entries.
AGENT_FACING_SMART_REPLY = 4;
-
UNRECOGNIZED
public static final Document.KnowledgeType UNRECOGNIZED
-
-
Field Detail
-
SMART_REPLY
public static final Document.KnowledgeType SMART_REPLY
The legacy enum for agent-facing smart reply feature.
SMART_REPLY = 4;
-
KNOWLEDGE_TYPE_UNSPECIFIED_VALUE
public static final int KNOWLEDGE_TYPE_UNSPECIFIED_VALUE
The type is unspecified or arbitrary.
KNOWLEDGE_TYPE_UNSPECIFIED = 0;- See Also:
- Constant Field Values
-
FAQ_VALUE
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;- See Also:
- Constant Field Values
-
EXTRACTIVE_QA_VALUE
public static final int EXTRACTIVE_QA_VALUE
Documents for which unstructured text is extracted and used for question answering.
EXTRACTIVE_QA = 2;- See Also:
- Constant Field Values
-
ARTICLE_SUGGESTION_VALUE
public static final int ARTICLE_SUGGESTION_VALUE
The entire document content as a whole can be used for query results. Only for Contact Center Solutions on Dialogflow.
ARTICLE_SUGGESTION = 3;- See Also:
- Constant Field Values
-
AGENT_FACING_SMART_REPLY_VALUE
public static final int AGENT_FACING_SMART_REPLY_VALUE
The document contains agent-facing Smart Reply entries.
AGENT_FACING_SMART_REPLY = 4;- See Also:
- Constant Field Values
-
SMART_REPLY_VALUE
public static final int SMART_REPLY_VALUE
The legacy enum for agent-facing smart reply feature.
SMART_REPLY = 4;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static Document.KnowledgeType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Document.KnowledgeType c : Document.KnowledgeType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Document.KnowledgeType valueOf(String name)
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 public static Document.KnowledgeType valueOf(int value)
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
public static Document.KnowledgeType forNumber(int value)
- 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<Document.KnowledgeType> 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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static Document.KnowledgeType 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
-
-