Google Cloud Dialogflow V2 Client - Class DocumentQuerySource (1.17.2)

Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class DocumentQuerySource.

Document source settings.

Supported features: SMART_REPLY, SMART_COMPOSE.

Generated from protobuf message google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource

Namespace

Google \ Cloud \ Dialogflow \ V2 \ HumanAgentAssistantConfig \ SuggestionQueryConfig

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ documents array

Required. Knowledge documents to query from. Format: projects/<Project ID>/locations/<Location ID>/knowledgeBases/<KnowledgeBase ID>/documents/<Document ID>. Currently, at most 5 documents are supported.

getDocuments

Required. Knowledge documents to query from. Format: projects/<Project ID>/locations/<Location ID>/knowledgeBases/<KnowledgeBase ID>/documents/<Document ID>.

Currently, at most 5 documents are supported.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setDocuments

Required. Knowledge documents to query from. Format: projects/<Project ID>/locations/<Location ID>/knowledgeBases/<KnowledgeBase ID>/documents/<Document ID>.

Currently, at most 5 documents are supported.

Parameter
Name Description
var string[]
Returns
Type Description
$this