Google Cloud Dialogflow V2 Client - Class DocumentQuerySource (1.11.0)

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
NameDescription
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
TypeDescription
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
NameDescription
var string[]
Returns
TypeDescription
$this