Google Cloud Dialogflow Cx V3 Client - Class CitedSnippet (0.4.0)

Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class CitedSnippet.

Snippet cited by the answer generation model.

Generated from protobuf message google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.CitedSnippet

Namespace

Google \ Cloud \ Dialogflow \ Cx \ V3 \ DataStoreConnectionSignals

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ search_snippet Google\Cloud\Dialogflow\Cx\V3\DataStoreConnectionSignals\SearchSnippet

Details of the snippet.

↳ snippet_index int

Index of the snippet in search_snippets field.

getSearchSnippet

Details of the snippet.

Returns
Type Description
Google\Cloud\Dialogflow\Cx\V3\DataStoreConnectionSignals\SearchSnippet|null

hasSearchSnippet

clearSearchSnippet

setSearchSnippet

Details of the snippet.

Parameter
Name Description
var Google\Cloud\Dialogflow\Cx\V3\DataStoreConnectionSignals\SearchSnippet
Returns
Type Description
$this

getSnippetIndex

Index of the snippet in search_snippets field.

Returns
Type Description
int

setSnippetIndex

Index of the snippet in search_snippets field.

Parameter
Name Description
var int
Returns
Type Description
$this