Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class KnowledgeType.
The knowledge type of document content.
Protobuf type google.cloud.dialogflow.v2.Document.KnowledgeType
Namespace
Google \ Cloud \ Dialogflow \ V2 \ Document
Methods
static::name
Parameter
Name
Description
value
mixed
static::value
Parameter
Name
Description
name
mixed
Constants
KNOWLEDGE_TYPE_UNSPECIFIED
Value: 0
The type is unspecified or arbitrary.
Generated from protobuf enum KNOWLEDGE_TYPE_UNSPECIFIED = 0;
FAQ
Value: 1
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.
Generated from protobuf enum FAQ = 1;
EXTRACTIVE_QA
Value: 2
Documents for which unstructured text is extracted and used for
question answering.
Generated from protobuf enum EXTRACTIVE_QA = 2;
ARTICLE_SUGGESTION
Value: 3
The entire document content as a whole can be used for query results.
Only for Contact Center Solutions on Dialogflow.
Generated from protobuf enum ARTICLE_SUGGESTION = 3;
AGENT_FACING_SMART_REPLY
Value: 4
The document contains agent-facing Smart Reply entries.
Generated from protobuf enum AGENT_FACING_SMART_REPLY = 4;
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Dialogflow V2 Client - Class KnowledgeType (2.1.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.2 (latest)](/php/docs/reference/cloud-dialogflow/latest/V2.Document.KnowledgeType)\n- [2.1.1](/php/docs/reference/cloud-dialogflow/2.1.1/V2.Document.KnowledgeType)\n- [2.0.1](/php/docs/reference/cloud-dialogflow/2.0.1/V2.Document.KnowledgeType)\n- [1.17.2](/php/docs/reference/cloud-dialogflow/1.17.2/V2.Document.KnowledgeType)\n- [1.16.0](/php/docs/reference/cloud-dialogflow/1.16.0/V2.Document.KnowledgeType)\n- [1.15.1](/php/docs/reference/cloud-dialogflow/1.15.1/V2.Document.KnowledgeType)\n- [1.14.0](/php/docs/reference/cloud-dialogflow/1.14.0/V2.Document.KnowledgeType)\n- [1.13.0](/php/docs/reference/cloud-dialogflow/1.13.0/V2.Document.KnowledgeType)\n- [1.12.3](/php/docs/reference/cloud-dialogflow/1.12.3/V2.Document.KnowledgeType)\n- [1.11.0](/php/docs/reference/cloud-dialogflow/1.11.0/V2.Document.KnowledgeType)\n- [1.10.2](/php/docs/reference/cloud-dialogflow/1.10.2/V2.Document.KnowledgeType)\n- [1.9.0](/php/docs/reference/cloud-dialogflow/1.9.0/V2.Document.KnowledgeType)\n- [1.8.0](/php/docs/reference/cloud-dialogflow/1.8.0/V2.Document.KnowledgeType)\n- [1.7.2](/php/docs/reference/cloud-dialogflow/1.7.2/V2.Document.KnowledgeType)\n- [1.6.0](/php/docs/reference/cloud-dialogflow/1.6.0/V2.Document.KnowledgeType)\n- [1.5.0](/php/docs/reference/cloud-dialogflow/1.5.0/V2.Document.KnowledgeType)\n- [1.4.0](/php/docs/reference/cloud-dialogflow/1.4.0/V2.Document.KnowledgeType)\n- [1.3.2](/php/docs/reference/cloud-dialogflow/1.3.2/V2.Document.KnowledgeType)\n- [1.2.0](/php/docs/reference/cloud-dialogflow/1.2.0/V2.Document.KnowledgeType)\n- [1.1.1](/php/docs/reference/cloud-dialogflow/1.1.1/V2.Document.KnowledgeType)\n- [1.0.1](/php/docs/reference/cloud-dialogflow/1.0.1/V2.Document.KnowledgeType) \nReference documentation and code samples for the Google Cloud Dialogflow V2 Client class KnowledgeType.\n\nThe knowledge type of document content.\n\nProtobuf type `google.cloud.dialogflow.v2.Document.KnowledgeType`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dialogflow \\\\ V2 \\\\ Document\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### KNOWLEDGE_TYPE_UNSPECIFIED\n\n Value: 0\n\nThe type is unspecified or arbitrary.\n\nGenerated from protobuf enum `KNOWLEDGE_TYPE_UNSPECIFIED = 0;`\n\n### FAQ\n\n Value: 1\n\nThe document content contains question and answer pairs as either HTML or\nCSV. Typical FAQ HTML formats are parsed accurately, but unusual formats\nmay fail to be parsed.\n\nCSV must have questions in the first column and answers in the second,\nwith no header. Because of this explicit format, they are always parsed\naccurately.\n\nGenerated from protobuf enum `FAQ = 1;`\n\n### EXTRACTIVE_QA\n\n Value: 2\n\nDocuments for which unstructured text is extracted and used for\nquestion answering.\n\nGenerated from protobuf enum `EXTRACTIVE_QA = 2;`\n\n### ARTICLE_SUGGESTION\n\n Value: 3\n\nThe entire document content as a whole can be used for query results.\n\nOnly for Contact Center Solutions on Dialogflow.\n\nGenerated from protobuf enum `ARTICLE_SUGGESTION = 3;`\n\n### AGENT_FACING_SMART_REPLY\n\n Value: 4\n\nThe document contains agent-facing Smart Reply entries.\n\nGenerated from protobuf enum `AGENT_FACING_SMART_REPLY = 4;`"]]