Google Cloud Dialogflow V2 Client - Class GenerateStatelessSummaryRequest (1.17.0)

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 GenerateStatelessSummaryRequest\MinimalConversation

Required. The conversation to suggest a summary for.

↳ conversation_profile ConversationProfile

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

↳ latest_message string

Optional. 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

Optional. 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
GenerateStatelessSummaryRequest\MinimalConversation|null

hasStatelessConversation

clearStatelessConversation

setStatelessConversation

Required. The conversation to suggest a summary for.

Parameter
Name Description
var 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
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 ConversationProfile
Returns
Type Description
$this

getLatestMessage

Optional. 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

Optional. 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

Optional. 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

Optional. 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