Google Cloud Dialogflow V2 Client - Class GenerateStatelessSummaryRequest (1.12.1)

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

The request message for Conversations.GenerateStatelessSummary.

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

Namespace

Google \ Cloud \ Dialogflow \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ stateless_conversation Google\Cloud\Dialogflow\V2\GenerateStatelessSummaryRequest\MinimalConversation

Required. The conversation to suggest a summary for.

↳ conversation_profile Google\Cloud\Dialogflow\V2\ConversationProfile

Required. A ConversationProfile containing information required for Summary generation. Required fields: {language_code, security_settings} Optional fields: {agent_assistant_config}

↳ latest_message string

The name of the latest conversation message used as context for generating a Summary. If empty, the latest message of the conversation will be used. The format is specific to the user and the names of the messages provided.

↳ max_context_size int

Max number of messages prior to and including [latest_message] to use as context when compiling the suggestion. By default 500 and at most 1000.

getStatelessConversation

Required. The conversation to suggest a summary for.

Returns
Type Description
Google\Cloud\Dialogflow\V2\GenerateStatelessSummaryRequest\MinimalConversation|null

hasStatelessConversation

clearStatelessConversation

setStatelessConversation

Required. The conversation to suggest a summary for.

Parameter
Name Description
var Google\Cloud\Dialogflow\V2\GenerateStatelessSummaryRequest\MinimalConversation
Returns
Type Description
$this

getConversationProfile

Required. A ConversationProfile containing information required for Summary generation.

Required fields: {language_code, security_settings} Optional fields: {agent_assistant_config}

Returns
Type Description
Google\Cloud\Dialogflow\V2\ConversationProfile|null

hasConversationProfile

clearConversationProfile

setConversationProfile

Required. A ConversationProfile containing information required for Summary generation.

Required fields: {language_code, security_settings} Optional fields: {agent_assistant_config}

Parameter
Name Description
var Google\Cloud\Dialogflow\V2\ConversationProfile
Returns
Type Description
$this

getLatestMessage

The name of the latest conversation message used as context for generating a Summary. If empty, the latest message of the conversation will be used. The format is specific to the user and the names of the messages provided.

Returns
Type Description
string

setLatestMessage

The name of the latest conversation message used as context for generating a Summary. If empty, the latest message of the conversation will be used. The format is specific to the user and the names of the messages provided.

Parameter
Name Description
var string
Returns
Type Description
$this

getMaxContextSize

Max number of messages prior to and including [latest_message] to use as context when compiling the suggestion. By default 500 and at most 1000.

Returns
Type Description
int

setMaxContextSize

Max number of messages prior to and including [latest_message] to use as context when compiling the suggestion. By default 500 and at most 1000.

Parameter
Name Description
var int
Returns
Type Description
$this