Google Cloud Dialogflow V2 Client - Class GeneratorSuggestion (2.3.0)

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

Suggestion generated using a Generator.

Generated from protobuf message google.cloud.dialogflow.v2.GeneratorSuggestion

Namespace

Google \ Cloud \ Dialogflow \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ free_form_suggestion FreeFormSuggestion

Optional. Free form suggestion.

↳ summary_suggestion SummarySuggestion

Optional. Suggested summary.

↳ agent_coaching_suggestion AgentCoachingSuggestion

Optional. Suggestion to coach the agent.

↳ tool_call_info array<GeneratorSuggestion\ToolCallInfo>

Optional. List of request and response for tool calls executed.

getFreeFormSuggestion

Optional. Free form suggestion.

Returns
Type Description
FreeFormSuggestion|null

hasFreeFormSuggestion

setFreeFormSuggestion

Optional. Free form suggestion.

Parameter
Name Description
var FreeFormSuggestion
Returns
Type Description
$this

getSummarySuggestion

Optional. Suggested summary.

Returns
Type Description
SummarySuggestion|null

hasSummarySuggestion

setSummarySuggestion

Optional. Suggested summary.

Parameter
Name Description
var SummarySuggestion
Returns
Type Description
$this

getAgentCoachingSuggestion

Optional. Suggestion to coach the agent.

Returns
Type Description
AgentCoachingSuggestion|null

hasAgentCoachingSuggestion

setAgentCoachingSuggestion

Optional. Suggestion to coach the agent.

Parameter
Name Description
var AgentCoachingSuggestion
Returns
Type Description
$this

getToolCallInfo

Optional. List of request and response for tool calls executed.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setToolCallInfo

Optional. List of request and response for tool calls executed.

Parameter
Name Description
var array<GeneratorSuggestion\ToolCallInfo>
Returns
Type Description
$this

getSuggestion

Returns
Type Description
string