Google Cloud Dialogflow V2 Client - Class GenerativeSource (1.17.0)

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

Details about source of Generative answer.

Generated from protobuf message google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource

Namespace

Google \ Cloud \ Dialogflow \ V2 \ KnowledgeAssistAnswer \ KnowledgeAnswer

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ snippets array<GenerativeSource\Snippet>

All snippets used for this Generative Prediction, with their source URI and data.

getSnippets

All snippets used for this Generative Prediction, with their source URI and data.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setSnippets

All snippets used for this Generative Prediction, with their source URI and data.

Parameter
Name Description
var array<GenerativeSource\Snippet>
Returns
Type Description
$this