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
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ documents |
array
Required. Knowledge documents to query from. Format: |
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.
Generated from protobuf field repeated string documents = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
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.
Generated from protobuf field repeated string documents = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
Parameter | |
---|---|
Name | Description |
var |
string[]
|
Returns | |
---|---|
Type | Description |
$this |