Service Client: Google::Cloud::Dialogflow::V2beta1::Conversation::ConversationsClient

Client stub representing the remote Conversations gRPC service. Delegates call dispatching to Google::gRPC::Client.

target

The endpoint target address. Defaults to dialogflow.googleapis.com:443.

credentials

The authentication credentials provider. Defaults to application default credentials via Google::Auth.

NAME

Google::Cloud::Dialogflow::V2beta1::Conversation - Compiled Protocol Buffers messages for google/cloud/dialogflow/v2beta1/conversation.proto

SYNOPSIS

use Google::Cloud::Dialogflow::V2beta1::Conversation;

my $msg = Google::Cloud::Dialogflow::V2beta1::Conversation::Conversation->new({
    name => $name,
    lifecycle_state => $lifecycle_state,
    conversation_profile => $conversation_profile,
    phone_number => $phone_number,
});

# Read or update a field
my $val = $msg->name();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Dialogflow::V2beta1::Conversation::Conversation->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/dialogflow/v2beta1/conversation.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Dialogflow::V2beta1::Conversation::Conversation

Represents a conversation. A conversation is an interaction between an agent, including live agents and Dialogflow agents, and a support customer. Conversations can include phone calls and text-based chat sessions.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Output only. Identifier. The unique identifier of this conversation. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>`.

  • $msg->lifecycle_state() / $msg->lifecycle_state($value)

    Type: Enum (Google::Cloud::Dialogflow::V2beta1::Conversation::LifecycleState)

    Output only. The current state of the Conversation.

  • $msg->conversation_profile() / $msg->conversation_profile($value)

    Type: String

    Required. The Conversation Profile to be used to configure this Conversation. This field cannot be updated. Format: `projects/<Project ID>/locations/<Location ID>/conversationProfiles/<Conversation Profile ID>`.

  • $msg->phone_number() / $msg->phone_number($value)

    Type: Message (Google::Cloud::Dialogflow::V2beta1::Conversation::ConversationPhoneNumber)

    Output only. Required if the conversation is to be connected over telephony.

  • $msg->conversation_stage() / $msg->conversation_stage($value)

    Type: Enum (Google::Cloud::Dialogflow::V2beta1::Conversation::ConversationStage)

    Optional. The stage of a conversation. It indicates whether the virtual agent or a human agent is handling the conversation.

    If the conversation is created with the conversation profile that has Dialogflow config set, defaults to [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2beta1.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE]; Otherwise, defaults to [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2beta1.Conversation.ConversationStage.HUMAN_ASSIST_STAGE].

    If the conversation is created with the conversation profile that has Dialogflow config set but explicitly sets conversation_stage to [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2beta1.Conversation.ConversationStage.HUMAN_ASSIST_STAGE], it skips [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2beta1.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE] stage and directly goes to [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2beta1.Conversation.ConversationStage.HUMAN_ASSIST_STAGE].

  • $msg->start_time() / $msg->start_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time the conversation was started.

  • $msg->end_time() / $msg->end_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time the conversation was finished.

  • $msg->telephony_connection_info() / $msg->telephony_connection_info($value)

    Type: Message (Google::Cloud::Dialogflow::V2beta1::Conversation::Conversation::TelephonyConnectionInfo)

    Output only. The telephony connection information.

  • $msg->initial_conversation_profile() / $msg->initial_conversation_profile($value)

    Type: Message (Google::Cloud::Dialogflow::V2beta1::ConversationProfile::ConversationProfile)

    Optional. Output only. The initial conversation profile to be used to configure this conversation, which is a copy of the conversation profile config read at conversation creation time.

  • $msg->ingested_context_references() / $msg->ingested_context_references($value)

    Type: Message (Google::Cloud::Dialogflow::V2beta1::Conversation::Conversation::IngestedContextReferencesEntry)

    Output only. The context reference updates provided by external systems.

  • $msg->initial_generator_contexts() / $msg->initial_generator_contexts($value)

    Type: Message (Google::Cloud::Dialogflow::V2beta1::Conversation::Conversation::InitialGeneratorContextsEntry)

    Output only. A map with generator name as key and generator context as value.

Enum: Conversation::LifecycleState

  • LIFECYCLE_STATE_UNSPECIFIED => 0

  • IN_PROGRESS => 1

  • COMPLETED => 2

Enum: Conversation::ConversationStage

  • CONVERSATION_STAGE_UNSPECIFIED => 0

  • VIRTUAL_AGENT_STAGE => 1

  • HUMAN_ASSIST_STAGE => 2

Google::Cloud::Dialogflow::V2beta1::Conversation::ConversationPhoneNumber

Represents a phone number for telephony integration. It allows for connecting a particular conversation over telephony.

Inherits from Protobuf::Message.

Accessors

  • $msg->country_code() / $msg->country_code($value)

    Type: Int32

    Output only. Desired country code for the phone number.

  • $msg->phone_number() / $msg->phone_number($value)

    Type: String

    Output only. The phone number to connect to this conversation.

Google::Cloud::Dialogflow::V2beta1::Conversation::CreateConversationRequest

The request message for [Conversations.CreateConversation][google.cloud.dialogflow.v2beta1.Conversations.CreateConversation].

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. Resource identifier of the project creating the conversation. Format: `projects/<Project ID>/locations/<Location ID>`.

  • $msg->conversation() / $msg->conversation($value)

    Type: Message (Google::Cloud::Dialogflow::V2beta1::Conversation::Conversation)

    Required. The conversation to create.

  • $msg->conversation_id() / $msg->conversation_id($value)

    Type: String

    Optional. Identifier of the conversation. Generally it's auto generated by Google. Only set it if you cannot wait for the response to return a auto-generated one to you.

    The conversation ID must be compliant with the regression formula `[a-zA-Z][a-zA-Z0-9_-]*` with the characters length in range of [3,64]. If the field is provided, the caller is responsible for 1. the uniqueness of the ID, otherwise the request will be rejected. 2. the consistency for whether to use custom ID or not under a project to better ensure uniqueness.

Google::Cloud::Dialogflow::V2beta1::Conversation::ListConversationsRequest

The request message for [Conversations.ListConversations][google.cloud.dialogflow.v2beta1.Conversations.ListConversations].

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The project from which to list all conversation. Format: `projects/<Project ID>/locations/<Location ID>`.

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    Optional. The next_page_token value returned from a previous list request.

  • $msg->filter() / $msg->filter($value)

    Type: String

    Optional. A filter expression that filters conversations listed in the response. Only `lifecycle_state` can be filtered on in this way. For example, the following expression only returns `COMPLETED` conversations:

    `lifecycle_state = "COMPLETED"`

    For more information about filtering, see [API Filtering](https://aip.dev/160).

Google::Cloud::Dialogflow::V2beta1::Conversation::ListConversationsResponse

The response message for [Conversations.ListConversations][google.cloud.dialogflow.v2beta1.Conversations.ListConversations].

Inherits from Protobuf::Message.

Accessors

  • $msg->conversations() / $msg->conversations($value)

    Type: Message (Google::Cloud::Dialogflow::V2beta1::Conversation::Conversation)

    The list of conversations. There will be a maximum number of items returned based on the page_size field in the request.

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    Token to retrieve the next page of results, or empty if there are no more results in the list.

Google::Cloud::Dialogflow::V2beta1::Conversation::GetConversationRequest

The request message for [Conversations.GetConversation][google.cloud.dialogflow.v2beta1.Conversations.GetConversation].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the conversation. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>`.

Google::Cloud::Dialogflow::V2beta1::Conversation::CompleteConversationRequest

The request message for [Conversations.CompleteConversation][google.cloud.dialogflow.v2beta1.Conversations.CompleteConversation].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. Resource identifier of the conversation to close. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>`.

Google::Cloud::Dialogflow::V2beta1::Conversation::CreateMessageRequest

The request message to create one Message. Currently it is only used in BatchCreateMessagesRequest.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. Resource identifier of the conversation to create message. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>`.

  • $msg->message() / $msg->message($value)

    Type: Message (Google::Cloud::Dialogflow::V2beta1::Participant::Message)

    Required. The message to create. [Message.participant][google.cloud.dialogflow.v2beta1.Message.participant] is required.

Google::Cloud::Dialogflow::V2beta1::Conversation::BatchCreateMessagesRequest

The request message for [Conversations.BatchCreateMessagesRequest][].

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. Resource identifier of the conversation to create message. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>`.

  • $msg->requests() / $msg->requests($value)

    Type: Message (Google::Cloud::Dialogflow::V2beta1::Conversation::CreateMessageRequest)

    Required. A maximum of 300 messages can be created in a batch. [CreateMessageRequest.message.send_time][] is required. All created messages will have identical [Message.create_time][google.cloud.dialogflow.v2beta1.Message.create_time].

Google::Cloud::Dialogflow::V2beta1::Conversation::BatchCreateMessagesResponse

The request message for [Conversations.BatchCreateMessagesResponse][].

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Dialogflow::V2beta1::Conversation::ListMessagesRequest

The request message for [Conversations.ListMessages][google.cloud.dialogflow.v2beta1.Conversations.ListMessages].

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The name of the conversation to list messages for. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>`

  • $msg->filter() / $msg->filter($value)

    Type: String

    Optional. Filter on message fields. Currently predicates on `create_time` and `create_time_epoch_microseconds` are supported. `create_time` only support milliseconds accuracy. E.g., `create_time_epoch_microseconds > 1551790877964485` or `create_time > "2017-01-15T01:30:15.01Z"`.

    For more information about filtering, see [API Filtering](https://aip.dev/160).

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    Optional. The next_page_token value returned from a previous list request.

Google::Cloud::Dialogflow::V2beta1::Conversation::ListMessagesResponse

The response message for [Conversations.ListMessages][google.cloud.dialogflow.v2beta1.Conversations.ListMessages].

Inherits from Protobuf::Message.

Accessors

  • $msg->messages() / $msg->messages($value)

    Type: Message (Google::Cloud::Dialogflow::V2beta1::Participant::Message)

    Required. The list of messages. There will be a maximum number of items returned based on the page_size field in the request. `messages` is sorted by `create_time` in descending order.

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    Optional. Token to retrieve the next page of results, or empty if there are no more results in the list.

Google::Cloud::Dialogflow::V2beta1::Conversation::IngestContextReferencesRequest

The request message for [ConversationsService.IngestContextReferences][].

Inherits from Protobuf::Message.

Accessors

  • $msg->conversation() / $msg->conversation($value)

    Type: String

    Required. Resource identifier of the conversation to ingest context information for. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>`.

  • $msg->context_references() / $msg->context_references($value)

    Type: Message (Google::Cloud::Dialogflow::V2beta1::Conversation::IngestContextReferencesRequest::ContextReferencesEntry)

    Required. The context references to ingest. The key is the name of the context reference and the value contains the contents of the context reference. The key is used to incorporate ingested context references to enhance the generator.

Google::Cloud::Dialogflow::V2beta1::Conversation::IngestContextReferencesResponse

The response message for [ConversationsService.IngestContextReferences][].

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Dialogflow::V2beta1::Conversation::SuggestConversationSummaryRequest

The request message for [Conversations.SuggestConversationSummary][google.cloud.dialogflow.v2beta1.Conversations.SuggestConversationSummary].

Inherits from Protobuf::Message.

Accessors

  • $msg->conversation() / $msg->conversation($value)

    Type: String

    Required. The conversation to fetch suggestion for. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>`.

  • $msg->latest_message() / $msg->latest_message($value)

    Type: String

    Optional. The name of the latest conversation message used as context for compiling suggestion. If empty, the latest message of the conversation will be used.

    Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>`.

  • $msg->context_size() / $msg->context_size($value)

    Type: Int32

    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.

  • $msg->assist_query_params() / $msg->assist_query_params($value)

    Type: Message (Google::Cloud::Dialogflow::V2beta1::Participant::AssistQueryParameters)

    Optional. Parameters for a human assist query. Only used for POC/demo purpose.

Google::Cloud::Dialogflow::V2beta1::Conversation::SuggestConversationSummaryResponse

The response message for [Conversations.SuggestConversationSummary][google.cloud.dialogflow.v2beta1.Conversations.SuggestConversationSummary].

Inherits from Protobuf::Message.

Accessors

  • $msg->summary() / $msg->summary($value)

    Type: Message (Google::Cloud::Dialogflow::V2beta1::Conversation::SuggestConversationSummaryResponse::Summary)

    Generated summary.

  • $msg->latest_message() / $msg->latest_message($value)

    Type: String

    The name of the latest conversation message used as context for compiling suggestion.

    Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>`.

  • $msg->context_size() / $msg->context_size($value)

    Type: Int32

    Number of messages prior to and including [last_conversation_message][] used to compile the suggestion. It may be smaller than the [SuggestSummaryRequest.context_size][] field in the request if there weren't that many messages in the conversation.

Google::Cloud::Dialogflow::V2beta1::Conversation::GenerateStatelessSummaryRequest

The request message for [Conversations.GenerateStatelessSummary][google.cloud.dialogflow.v2beta1.Conversations.GenerateStatelessSummary].

Inherits from Protobuf::Message.

Accessors

  • $msg->stateless_conversation() / $msg->stateless_conversation($value)

    Type: Message (Google::Cloud::Dialogflow::V2beta1::Conversation::GenerateStatelessSummaryRequest::MinimalConversation)

    Required. The conversation to suggest a summary for.

  • $msg->conversation_profile() / $msg->conversation_profile($value)

    Type: Message (Google::Cloud::Dialogflow::V2beta1::ConversationProfile::ConversationProfile)

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

  • $msg->latest_message() / $msg->latest_message($value)

    Type: 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.

  • $msg->max_context_size() / $msg->max_context_size($value)

    Type: Int32

    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.

Google::Cloud::Dialogflow::V2beta1::Conversation::GenerateStatelessSummaryResponse

The response message for [Conversations.GenerateStatelessSummary][google.cloud.dialogflow.v2beta1.Conversations.GenerateStatelessSummary].

Inherits from Protobuf::Message.

Accessors

  • $msg->summary() / $msg->summary($value)

    Type: Message (Google::Cloud::Dialogflow::V2beta1::Conversation::GenerateStatelessSummaryResponse::Summary)

    Generated summary.

  • $msg->latest_message() / $msg->latest_message($value)

    Type: String

    The name of the latest conversation message used as context for compiling suggestion. The format is specific to the user and the names of the messages provided.

  • $msg->context_size() / $msg->context_size($value)

    Type: Int32

    Number of messages prior to and including [last_conversation_message][] used to compile the suggestion. It may be smaller than the [GenerateStatelessSummaryRequest.context_size][] field in the request if there weren't that many messages in the conversation.

Google::Cloud::Dialogflow::V2beta1::Conversation::GenerateStatelessSuggestionRequest

The request message for [Conversations.GenerateStatelessSuggestion][google.cloud.dialogflow.v2beta1.Conversations.GenerateStatelessSuggestion].

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The parent resource to charge for the Suggestion's generation. Format: `projects/<Project ID>/locations/<Location ID>`.

  • $msg->generator() / $msg->generator($value)

    Type: Message (Google::Cloud::Dialogflow::V2beta1::Generator::Generator)

    Uncreated generator. It should be a complete generator that includes all information about the generator.

  • $msg->generator_name() / $msg->generator_name($value)

    Type: String

    The resource name of the existing created generator. Format: `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>`

  • $msg->context_references() / $msg->context_references($value)

    Type: Message (Google::Cloud::Dialogflow::V2beta1::Conversation::GenerateStatelessSuggestionRequest::ContextReferencesEntry)

    Optional. A section of ingested context information. The key is the name of the context reference and the value contains the contents of the context reference. The key is used to incorporate ingested context references to enhance the generator.

  • $msg->conversation_context() / $msg->conversation_context($value)

    Type: Message (Google::Cloud::Dialogflow::V2beta1::Generator::ConversationContext)

    Optional. Context of the conversation, including transcripts.

  • $msg->trigger_events() / $msg->trigger_events($value)

    Type: Enum (Google::Cloud::Dialogflow::V2beta1::TriggerEvent)

    Optional. A list of trigger events. Generator will be triggered only if it's trigger event is included here.

  • $msg->security_settings() / $msg->security_settings($value)

    Type: String

    Optional. Name of the CX SecuritySettings which is used to redact generated response. If this field is empty, try to fetch v2 security_settings, which is a project level setting. If this field is empty and no v2 security_settings set up in this project, no redaction will be done.

    Format: `projects/<Project ID>/locations/<Location ID>/securitySettings/<Security Settings ID>`.

Google::Cloud::Dialogflow::V2beta1::Conversation::GenerateStatelessSuggestionResponse

The response message for [Conversations.GenerateStatelessSuggestion][google.cloud.dialogflow.v2beta1.Conversations.GenerateStatelessSuggestion].

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Dialogflow::V2beta1::Conversation::SearchKnowledgeRequest

The request message for [Conversations.SearchKnowledge][google.cloud.dialogflow.v2beta1.Conversations.SearchKnowledge].

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The parent resource contains the conversation profile Format: 'projects/<Project ID>' or `projects/<Project ID>/locations/<Location ID>`.

  • $msg->query() / $msg->query($value)

    Type: Message (Google::Cloud::Dialogflow::V2beta1::Session::TextInput)

    Required. The natural language text query for knowledge search.

  • $msg->conversation_profile() / $msg->conversation_profile($value)

    Type: String

    Required. The conversation profile used to configure the search. Format: `projects/<Project ID>/locations/<Location ID>/conversationProfiles/<Conversation Profile ID>`.

  • $msg->session_id() / $msg->session_id($value)

    Type: String

    Required. The ID of the search session. The session_id can be combined with Dialogflow V3 Agent ID retrieved from conversation profile or on its own to identify a search session. The search history of the same session will impact the search result. It's up to the API caller to choose an appropriate `Session ID`. It can be a random number or some type of session identifiers (preferably hashed). The length must not exceed 36 characters.

  • $msg->conversation() / $msg->conversation($value)

    Type: String

    Optional. The conversation (between human agent and end user) where the search request is triggered. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>`.

  • $msg->latest_message() / $msg->latest_message($value)

    Type: String

    Optional. The name of the latest conversation message when the request is triggered. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>`.

  • $msg->query_source() / $msg->query_source($value)

    Type: Enum (Google::Cloud::Dialogflow::V2beta1::SearchKnowledgeRequest::QuerySource)

    Optional. The source of the query in the request.

  • $msg->end_user_metadata() / $msg->end_user_metadata($value)

    Type: Message (Google::Protobuf::Struct::Struct)

    Optional. Information about the end-user to improve the relevance and accuracy of generative answers.

    This will be interpreted and used by a language model, so, for good results, the data should be self-descriptive, and in a simple structure.

    Example:

    ```json { "subscription plan": "Business Premium Plus", "devices owned": [ {"model": "Google Pixel 7"}, {"model": "Google Pixel Tablet"} ] } ```

  • $msg->search_config() / $msg->search_config($value)

    Type: Message (Google::Cloud::Dialogflow::V2beta1::Conversation::SearchKnowledgeRequest::SearchConfig)

    Optional. Configuration specific to search queries with data stores.

  • $msg->exact_search() / $msg->exact_search($value)

    Type: Bool

    Optional. Whether to search the query exactly without query rewrite.

Enum: SearchKnowledgeRequest::QuerySource

  • QUERY_SOURCE_UNSPECIFIED => 0

  • AGENT_QUERY => 1

  • SUGGESTED_QUERY => 2

Google::Cloud::Dialogflow::V2beta1::Conversation::SearchKnowledgeDebugInfo

Debug information related to SearchKnowledge feature.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Dialogflow::V2beta1::Conversation::SearchKnowledgeResponse

The response message for [Conversations.SearchKnowledge][google.cloud.dialogflow.v2beta1.Conversations.SearchKnowledge].

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Dialogflow::V2beta1::Conversation::SearchKnowledgeAnswer

Represents a SearchKnowledge answer.

Inherits from Protobuf::Message.

Accessors

Enum: SearchKnowledgeAnswer::AnswerType

  • ANSWER_TYPE_UNSPECIFIED => 0

  • FAQ => 1

  • GENERATIVE => 2

  • INTENT => 3

  • PLAYBOOK => 4

  • EVENT => 5

Google::Cloud::Dialogflow::V2beta1::Conversation::GenerateSuggestionsRequest

The request message for [Conversations.GenerateSuggestions][google.cloud.dialogflow.v2beta1.Conversations.GenerateSuggestions].

Inherits from Protobuf::Message.

Accessors

  • $msg->conversation() / $msg->conversation($value)

    Type: String

    Required. The conversation for which the suggestions are generated. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>`.

    The conversation must be created with a conversation profile which has generators configured in it to be able to get suggestions.

  • $msg->latest_message() / $msg->latest_message($value)

    Type: String

    Optional. The name of the latest conversation message for which the request is triggered. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>`.

  • $msg->trigger_events() / $msg->trigger_events($value)

    Type: Enum (Google::Cloud::Dialogflow::V2beta1::TriggerEvent)

    Optional. A list of trigger events. Only generators configured in the conversation_profile whose trigger_event is listed here will be triggered.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Dialogflow::V2beta1::Conversation::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.