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:
StringOutput 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:
StringRequired. 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=>0IN_PROGRESS=>1COMPLETED=>2
Enum: Conversation::ConversationStage
CONVERSATION_STAGE_UNSPECIFIED=>0VIRTUAL_AGENT_STAGE=>1HUMAN_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:
Int32Output only. Desired country code for the phone number.
$msg->phone_number()/$msg->phone_number($value)Type:
StringOutput 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:
StringRequired. 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:
StringOptional. 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:
StringRequired. The project from which to list all conversation. Format: `projects/<Project ID>/locations/<Location ID>`.
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. 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:
StringOptional. The next_page_token value returned from a previous list request.
$msg->filter()/$msg->filter($value)Type:
StringOptional. 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:
StringToken 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:
StringRequired. 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:
StringRequired. 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:
StringRequired. 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:
StringRequired. 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
$msg->messages()/$msg->messages($value)Type:
Message(Google::Cloud::Dialogflow::V2beta1::Participant::Message)Messages created.
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:
StringRequired. 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:
StringOptional. 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:
Int32Optional. 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:
StringOptional. 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:
StringOptional. 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:
StringRequired. 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
$msg->ingested_context_references()/$msg->ingested_context_references($value)Type:
Message(Google::Cloud::Dialogflow::V2beta1::Conversation::IngestContextReferencesResponse::IngestedContextReferencesEntry)All context references ingested.
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:
StringRequired. The conversation to fetch suggestion for. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>`.
$msg->latest_message()/$msg->latest_message($value)Type:
StringOptional. 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:
Int32Optional. 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:
StringThe 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:
Int32Number 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:
StringOptional. 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:
Int32Optional. 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:
StringThe 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:
Int32Number 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:
StringRequired. 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:
StringThe 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:
StringOptional. 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
$msg->generator_suggestion()/$msg->generator_suggestion($value)Type:
Message(Google::Cloud::Dialogflow::V2beta1::Generator::GeneratorSuggestion)Required. Generated suggestion for a conversation.
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:
StringRequired. 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:
StringRequired. 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:
StringRequired. 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:
StringOptional. 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:
StringOptional. 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:
BoolOptional. Whether to search the query exactly without query rewrite.
Enum: SearchKnowledgeRequest::QuerySource
QUERY_SOURCE_UNSPECIFIED=>0AGENT_QUERY=>1SUGGESTED_QUERY=>2
Google::Cloud::Dialogflow::V2beta1::Conversation::SearchKnowledgeDebugInfo
Debug information related to SearchKnowledge feature.
Inherits from Protobuf::Message.
Accessors
$msg->datastore_response_reason()/$msg->datastore_response_reason($value)Type:
Enum(Google::Cloud::Dialogflow::V2beta1::DatastoreResponseReason)Response reason from datastore which indicates data serving status or answer quality degradation.
$msg->search_knowledge_behavior()/$msg->search_knowledge_behavior($value)Type:
Message(Google::Cloud::Dialogflow::V2beta1::Conversation::SearchKnowledgeDebugInfo::SearchKnowledgeBehavior)Configured behaviors for SearchKnowledge.
$msg->ingested_context_reference_debug_info()/$msg->ingested_context_reference_debug_info($value)Type:
Message(Google::Cloud::Dialogflow::V2beta1::Participant::IngestedContextReferenceDebugInfo)Information about parameters ingested for search knowledge.
$msg->service_latency()/$msg->service_latency($value)Type:
Message(Google::Cloud::Dialogflow::V2beta1::Participant::ServiceLatency)The latency of the service.
$msg->ces_debug_info()/$msg->ces_debug_info($value)Type:
Message(Google::Protobuf::Struct::Struct)Optional. Debug info from the Customer Engagement Suite (CES) execution.
Google::Cloud::Dialogflow::V2beta1::Conversation::SearchKnowledgeResponse
The response message for [Conversations.SearchKnowledge][google.cloud.dialogflow.v2beta1.Conversations.SearchKnowledge].
Inherits from Protobuf::Message.
Accessors
$msg->answers()/$msg->answers($value)Type:
Message(Google::Cloud::Dialogflow::V2beta1::Conversation::SearchKnowledgeAnswer)Most relevant snippets extracted from articles in the given knowledge base, ordered by confidence.
$msg->rewritten_query()/$msg->rewritten_query($value)Type:
StringThe rewritten query used to search knowledge.
$msg->search_knowledge_debug_info()/$msg->search_knowledge_debug_info($value)Type:
Message(Google::Cloud::Dialogflow::V2beta1::Conversation::SearchKnowledgeDebugInfo)Debug info for SearchKnowledge.
Google::Cloud::Dialogflow::V2beta1::Conversation::SearchKnowledgeAnswer
Represents a SearchKnowledge answer.
Inherits from Protobuf::Message.
Accessors
$msg->answer()/$msg->answer($value)Type:
StringThe piece of text from the knowledge base documents that answers the search query
$msg->answer_type()/$msg->answer_type($value)Type:
Enum(Google::Cloud::Dialogflow::V2beta1::SearchKnowledgeAnswer::AnswerType)The type of the answer.
$msg->answer_sources()/$msg->answer_sources($value)Type:
Message(Google::Cloud::Dialogflow::V2beta1::Conversation::SearchKnowledgeAnswer::AnswerSource)All sources used to generate the answer.
$msg->answer_record()/$msg->answer_record($value)Type:
StringThe name of the answer record. Format: `projects/<Project ID>/locations/<location ID>/answer Records/<Answer Record ID>`
Enum: SearchKnowledgeAnswer::AnswerType
ANSWER_TYPE_UNSPECIFIED=>0FAQ=>1GENERATIVE=>2INTENT=>3PLAYBOOK=>4EVENT=>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:
StringRequired. 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:
StringOptional. 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.