Google Cloud Dialogflow V2 Client - Class SampleResponse (2.3.0)

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

Sample response that the agent can use. This could be based on applicable instructions and ingested data from other systems.

Generated from protobuf message google.cloud.dialogflow.v2.AgentCoachingSuggestion.SampleResponse

Namespace

Google \ Cloud \ Dialogflow \ V2 \ AgentCoachingSuggestion

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ response_text string

Optional. Sample response for Agent in text.

↳ sources Sources

Output only. Sources for the Sample Response.

↳ duplicate_check_result DuplicateCheckResult

Output only. Duplicate check result for the sample response.

getResponseText

Optional. Sample response for Agent in text.

Returns
Type Description
string

setResponseText

Optional. Sample response for Agent in text.

Parameter
Name Description
var string
Returns
Type Description
$this

getSources

Output only. Sources for the Sample Response.

Returns
Type Description
Sources|null

hasSources

clearSources

setSources

Output only. Sources for the Sample Response.

Parameter
Name Description
var Sources
Returns
Type Description
$this

getDuplicateCheckResult

Output only. Duplicate check result for the sample response.

Returns
Type Description
DuplicateCheckResult|null

hasDuplicateCheckResult

clearDuplicateCheckResult

setDuplicateCheckResult

Output only. Duplicate check result for the sample response.

Parameter
Name Description
var DuplicateCheckResult
Returns
Type Description
$this