Google Cloud Dialogflow V2 Client - Class GenerateStatelessSummaryRequest (1.7.2)

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
NameDescription
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
TypeDescription
Google\Cloud\Dialogflow\V2\GenerateStatelessSummaryRequest\MinimalConversation|null

hasStatelessConversation

clearStatelessConversation

setStatelessConversation

Required. The conversation to suggest a summary for.

Parameter
NameDescription
var Google\Cloud\Dialogflow\V2\GenerateStatelessSummaryRequest\MinimalConversation
Returns
TypeDescription
$this

getConversationProfile

Required. A ConversationProfile containing information required for Summary generation.

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

Returns
TypeDescription
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
NameDescription
var Google\Cloud\Dialogflow\V2\ConversationProfile
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var int
Returns
TypeDescription
$this