Service Client: Google::Cloud::Dialogflow::V2::Participant::ParticipantsClient

Client stub representing the remote Participants 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::V2::Participant - Compiled Protocol Buffers messages for google/cloud/dialogflow/v2/participant.proto

SYNOPSIS

use Google::Cloud::Dialogflow::V2::Participant;

my $msg = Google::Cloud::Dialogflow::V2::Participant::Participant->new({
    name => $name,
    role => $role,
    sip_recording_media_label => $sip_recording_media_label,
    obfuscated_external_user_id => $obfuscated_external_user_id,
});

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/dialogflow/v2/participant.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::V2::Participant::Participant

Represents a conversation participant (human agent, virtual agent, end-user).

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Optional. The unique identifier of this participant. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`.

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

    Type: Enum (Google::Cloud::Dialogflow::V2::Participant::Role)

    Immutable. The role this participant plays in the conversation. This field must be set during participant creation and is then immutable.

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

    Type: String

    Optional. Label applied to streams representing this participant in SIPREC XML metadata and SDP. This is used to assign transcriptions from that media stream to this participant. This field can be updated.

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

    Type: String

    Optional. Obfuscated user id that should be associated with the created participant.

    You can specify a user id as follows:

    1. If you set this field in [CreateParticipantRequest][google.cloud.dialogflow.v2.CreateParticipantRequest.participant] or [UpdateParticipantRequest][google.cloud.dialogflow.v2.UpdateParticipantRequest.participant], Dialogflow adds the obfuscated user id with the participant.

    2. If you set this field in [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.obfuscated_external_user_id] or [StreamingAnalyzeContent] [google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.obfuscated_external_user_id], Dialogflow will update [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2.Participant.obfuscated_external_user_id].

    Dialogflow returns an error if you try to add a user id for a non-[END_USER][google.cloud.dialogflow.v2.Participant.Role.END_USER] participant.

    Dialogflow uses this user id for billing and measurement purposes. For example, Dialogflow determines whether a user in one conversation returned in a later conversation.

    Additionally, to link an escalated Virtual Agent conversation with its corresponding Agent Assist conversation for analytics, this field in Agent Assist conversations should be populated to indicate the user id of the `END_USER` participant in the escalated conversation.

    Note:

    * Please never pass raw user ids to Dialogflow. Always obfuscate your user id first. * Dialogflow only accepts a UTF-8 encoded string, e.g., a hex digest of a hash function like SHA-512. * The length of the user id must be <= 256 characters.

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

    Type: Message (Google::Cloud::Dialogflow::V2::Participant::Participant::DocumentsMetadataFiltersEntry)

    Optional. Key-value filters on the metadata of documents returned by article suggestion. If specified, article suggestion only returns suggested documents that match all filters in their [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple values for a metadata key should be concatenated by comma. For example, filters to match all documents that have 'US' or 'CA' in their market metadata values and 'agent' in their user metadata values will be ``` documents_metadata_filters { key: "market" value: "US,CA" } documents_metadata_filters { key: "user" value: "agent" } ```

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

    Type: Enum (Google::Cloud::Dialogflow::V2::Participant::AgentDesktopSource)

    Optional. For tracking the utilization of prebuilt Agent Assist integration modules. This field is only inscope for Integration type that include UI Modules, Backend Modules, and Agent Desktop connector, it is out of scope for CCaaS and Direct Integration. For each human agent, prebuilt UI Modules needs to trigger the UpdateParticipant API to update this field. Both [CreateParticipantRequest][google.cloud.dialogflow.v2.CreateParticipantRequest.participant] and [UpdateParticipantRequest][google.cloud.dialogflow.v2.UpdateParticipantRequest.participant] will be supported.

Enum: Participant::Role

  • ROLE_UNSPECIFIED => 0

  • HUMAN_AGENT => 1

  • AUTOMATED_AGENT => 2

  • END_USER => 3

Enum: Participant::AgentDesktopSource

  • AGENT_DESKTOP_SOURCE_UNSPECIFIED => 0

  • LIVE_PERSON => 1

  • GENESYS_CLOUD => 2

  • TWILIO => 3

  • SALESFORCE => 4

  • OTHER => 8

Google::Cloud::Dialogflow::V2::Participant::Message

Represents a message posted into a conversation.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Optional. The unique identifier of the message. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>`.

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

    Type: String

    Optional. The message content. Only one of `content` and `companion_query` should be set - not both.

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

    Type: Message (Google::Cloud::Dialogflow::V2::Participant::ResponseMessage)

    Optional. Automated agent responses.

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

    Type: String

    Optional. The message language. This should be a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example: "en-US".

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

    Type: String

    Output only. The participant that sends this message.

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

    Type: Enum (Google::Cloud::Dialogflow::V2::Participant::Role)

    Output only. The role of the participant.

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

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

    Output only. The time when the message was created in Contact Center AI.

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

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

    Optional. The time when the message was sent. For voice messages, this is the time when an utterance started.

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

    Type: Message (Google::Cloud::Dialogflow::V2::Participant::MessageAnnotation)

    Output only. The annotation for the message.

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

    Type: Message (Google::Cloud::Dialogflow::V2::Session::SentimentAnalysisResult)

    Output only. The sentiment analysis result for the message.

Google::Cloud::Dialogflow::V2::Participant::CreateParticipantRequest

The request message for [Participants.CreateParticipant][google.cloud.dialogflow.v2.Participants.CreateParticipant].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

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

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

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

    Required. The participant to create.

Google::Cloud::Dialogflow::V2::Participant::GetParticipantRequest

The request message for [Participants.GetParticipant][google.cloud.dialogflow.v2.Participants.GetParticipant].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

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

Google::Cloud::Dialogflow::V2::Participant::ListParticipantsRequest

The request message for [Participants.ListParticipants][google.cloud.dialogflow.v2.Participants.ListParticipants].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The conversation to list all participants from. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation 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.

Google::Cloud::Dialogflow::V2::Participant::ListParticipantsResponse

The response message for [Participants.ListParticipants][google.cloud.dialogflow.v2.Participants.ListParticipants].

Inherits from Protobuf::Message.

Accessors

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

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

    The list of participants. There is 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::V2::Participant::UpdateParticipantRequest

The request message for [Participants.UpdateParticipant][google.cloud.dialogflow.v2.Participants.UpdateParticipant].

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Dialogflow::V2::Participant::AnalyzeContentRequest

The request message for [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the participant this text comes from. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`.

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

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

    The natural language text to be processed.

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

    Type: Message (Google::Cloud::Dialogflow::V2::Participant::AudioInput)

    The natural language speech audio to be processed.

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

    Type: Message (Google::Cloud::Dialogflow::V2::Session::EventInput)

    An input event to send to Dialogflow.

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

    Type: Message (Google::Cloud::Dialogflow::V2::Participant::SuggestionInput)

    An input representing the selection of a suggestion.

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

    Type: Message (Google::Cloud::Dialogflow::V2::AudioConfig::OutputAudioConfig)

    Speech synthesis configuration. The speech synthesis settings for a virtual agent that may be configured for the associated conversation profile are not used when calling AnalyzeContent. If this configuration is not supplied, speech synthesis is disabled.

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

    Type: Message (Google::Cloud::Dialogflow::V2::Session::QueryParameters)

    Parameters for a Dialogflow virtual-agent query.

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

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

    Parameters for a human assist query.

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

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

    Additional parameters to be put into Dialogflow CX session parameters. To remove a parameter from the session, clients should explicitly set the parameter value to null.

    Note: this field should only be used if you are connecting to a Dialogflow CX agent.

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

    Type: String

    A unique identifier for this request. Restricted to 36 ASCII characters. A random UUID is recommended. This request is only idempotent if a `request_id` is provided.

Google::Cloud::Dialogflow::V2::Participant::DtmfParameters

The message in the response that indicates the parameters of DTMF.

Inherits from Protobuf::Message.

Accessors

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

    Type: Bool

    Indicates whether DTMF input can be handled in the next request.

Google::Cloud::Dialogflow::V2::Participant::AnalyzeContentResponse

The response message for [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The output text content. This field is set if the automated agent responded with text to show to the user.

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

    Type: Message (Google::Cloud::Dialogflow::V2::Participant::OutputAudio)

    The audio data bytes encoded as specified in the request. This field is set if:

    - `reply_audio_config` was specified in the request, or
    - The automated agent responded with audio to play to the user. In such
      case, `reply_audio.config` contains settings used to synthesize the
      speech.

    In some scenarios, multiple output audio fields may be present in the response structure. In these cases, only the top-most-level audio output has content.

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

    Type: Message (Google::Cloud::Dialogflow::V2::Participant::AutomatedAgentReply)

    Only set if a Dialogflow automated agent has responded. Note that in [AutomatedAgentReply.DetectIntentResponse][], [Sessions.DetectIntentResponse.output_audio][] and [Sessions.DetectIntentResponse.output_audio_config][] are always empty, use [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio] instead.

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

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

    Message analyzed by CCAI.

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

    Type: Message (Google::Cloud::Dialogflow::V2::Participant::SuggestionResult)

    The suggestions for most recent human agent. The order is the same as [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].

    Note that any failure of Agent Assist features will not lead to the overall failure of an AnalyzeContent API call. Instead, the features will fail silently with the error field set in the corresponding SuggestionResult.

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

    Type: Message (Google::Cloud::Dialogflow::V2::Participant::SuggestionResult)

    The suggestions for end user. The order is the same as [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].

    Same as human_agent_suggestion_results, any failure of Agent Assist features will not lead to the overall failure of an AnalyzeContent API call. Instead, the features will fail silently with the error field set in the corresponding SuggestionResult.

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

    Type: Message (Google::Cloud::Dialogflow::V2::Participant::DtmfParameters)

    Indicates the parameters of DTMF.

Google::Cloud::Dialogflow::V2::Participant::StreamingAnalyzeContentRequest

The top-level message sent by the client to the [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent] method.

Multiple request messages should be sent in order:

1. The first message must contain [participant][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.participant], [config][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.config] and optionally [query_params][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.query_params]. If you want to receive an audio response, it should also contain [reply_audio_config][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.reply_audio_config]. The message must not contain [input][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.input].

2. If [config][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.config] in the first message was set to [audio_config][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.audio_config], all subsequent messages must contain [input_audio][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.input_audio] to continue with Speech recognition. However, note that:

   * Dialogflow will bill you for the audio so far.
   * Dialogflow discards all Speech recognition results in favor of the
     text input.

3. If
[StreamingAnalyzeContentRequest.config][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.config]
in the first message was set
  to
  [StreamingAnalyzeContentRequest.text_config][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.text_config],
  then the second message must contain only
  [input_text][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.input_text].
  Moreover, you must not send more than two messages.

After you sent all input, you must half-close or abort the request stream.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the participant this text comes from. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`.

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

    Type: Message (Google::Cloud::Dialogflow::V2::AudioConfig::InputAudioConfig)

    Instructs the speech recognizer how to process the speech audio.

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

    Type: Message (Google::Cloud::Dialogflow::V2::Participant::InputTextConfig)

    The natural language text to be processed.

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

    Type: Message (Google::Cloud::Dialogflow::V2::AudioConfig::OutputAudioConfig)

    Speech synthesis configuration. The speech synthesis settings for a virtual agent that may be configured for the associated conversation profile are not used when calling StreamingAnalyzeContent. If this configuration is not supplied, speech synthesis is disabled.

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

    Type: Bytes

    The input audio content to be recognized. Must be sent if `audio_config` is set in the first message. The complete audio over all streaming messages must not exceed 1 minute.

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

    Type: String

    The UTF-8 encoded natural language text to be processed. Must be sent if `text_config` is set in the first message. Text length must not exceed 256 bytes for virtual agent interactions. The `input_text` field can be only sent once, and would cancel the speech recognition if any ongoing.

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

    Type: Message (Google::Cloud::Dialogflow::V2::AudioConfig::TelephonyDtmfEvents)

    The DTMF digits used to invoke intent and fill in parameter value.

    This input is ignored if the previous response indicated that DTMF input is not accepted.

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

    Type: Message (Google::Cloud::Dialogflow::V2::Participant::SuggestionInput)

    Optional. Input for confirming, revising, or canceling a suggestion.

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

    Type: Message (Google::Cloud::Dialogflow::V2::Session::QueryParameters)

    Parameters for a Dialogflow virtual-agent query.

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

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

    Parameters for a human assist query.

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

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

    Additional parameters to be put into Dialogflow CX session parameters. To remove a parameter from the session, clients should explicitly set the parameter value to null.

    Note: this field should only be used if you are connecting to a Dialogflow CX agent.

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

    Type: Bool

    Optional. Enable full bidirectional streaming. You can keep streaming the audio until timeout, and there's no need to half close the stream to get the response.

    Restrictions:

    - Timeout: 3 mins. - Audio Encoding: only supports [AudioEncoding.AUDIO_ENCODING_LINEAR_16][google.cloud.dialogflow.v2.AudioEncoding.AUDIO_ENCODING_LINEAR_16] and [AudioEncoding.AUDIO_ENCODING_MULAW][google.cloud.dialogflow.v2.AudioEncoding.AUDIO_ENCODING_MULAW] - Lifecycle: conversation should be in `Assist Stage`, go to [Conversations.CreateConversation][google.cloud.dialogflow.v2.Conversations.CreateConversation] for more information.

    InvalidArgument Error will be returned if the one of restriction checks failed.

    You can find more details in https://cloud.google.com/agent-assist/docs/extended-streaming

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

    Type: Bool

    Optional. Enable partial responses from Dialogflow CX agent. If this flag is not enabled, response stream still contains only one final response even if some `Fulfillment`s in Dialogflow CX agent have been configured to return partial responses.

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

    Type: Bool

    Optional. If multiple uttereances are detected in the audio stream, process them individually instead of stitching them together to form a single utterance.

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

    Type: Bool

    If true, `StreamingAnalyzeContentResponse.debugging_info` will get populated.

Google::Cloud::Dialogflow::V2::Participant::StreamingAnalyzeContentResponse

The top-level message returned from the `StreamingAnalyzeContent` method.

Multiple response messages can be returned in order:

1. If the input was set to streaming audio, the first one or more messages contain `recognition_result`. Each `recognition_result` represents a more complete transcript of what the user said. When a user speaks multiple sentences, the API will emit multiple messages where `is_final = true`. Each time the system detects a distinct pause or completed thought, it locks in that segment, marks it `is_final = true`, and then immediately starts a new recognition cycle for the next sentence on the same stream.

2. In virtual agent stage: if `enable_partial_automated_agent_reply` is true, the following N (currently 1 <= N <= 4) messages contain `automated_agent_reply` and optionally `reply_audio` returned by the virtual agent. The first (N-1) `automated_agent_reply`s will have `automated_agent_reply_type` set to `PARTIAL`. The last `automated_agent_reply` has `automated_agent_reply_type` set to `FINAL`. If `enable_partial_automated_agent_reply` is not enabled, response stream only contains the final reply.

In human assist stage: the following N (N >= 1) messages contain
`human_agent_suggestion_results`, `end_user_suggestion_results` or
`message`.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Dialogflow::V2::Session::StreamingRecognitionResult)

    The result of speech recognition.

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

    Type: String

    The output text content. This field is set if an automated agent responded with a text for the user.

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

    Type: Message (Google::Cloud::Dialogflow::V2::Participant::OutputAudio)

    The audio data bytes encoded as specified in the request. This field is set if:

    - The `reply_audio_config` field is specified in the request.
    - The automated agent, which this output comes from, responded with audio.
      In such case, the `reply_audio.config` field contains settings used to
      synthesize the speech.

    In some scenarios, multiple output audio fields may be present in the response structure. In these cases, only the top-most-level audio output has content.

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

    Type: Message (Google::Cloud::Dialogflow::V2::Participant::AutomatedAgentReply)

    Note that in [AutomatedAgentReply.DetectIntentResponse][], [Sessions.DetectIntentResponse.output_audio][] and [Sessions.DetectIntentResponse.output_audio_config][] are always empty, use [reply_audio][google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse.reply_audio] instead.

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

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

    Message analyzed by CCAI.

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

    Type: Message (Google::Cloud::Dialogflow::V2::Participant::SuggestionResult)

    The suggestions for most recent human agent. The order is the same as [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].

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

    Type: Message (Google::Cloud::Dialogflow::V2::Participant::SuggestionResult)

    The suggestions for end user. The order is the same as [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].

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

    Type: Message (Google::Cloud::Dialogflow::V2::Participant::DtmfParameters)

    Indicates the parameters of DTMF.

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

    Type: Message (Google::Cloud::Dialogflow::V2::Session::CloudConversationDebuggingInfo)

    Debugging info that would get populated when `StreamingAnalyzeContentRequest.enable_debugging_info` is set to true.

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

    Type: String

    The name of the actual Cloud speech model used for speech recognition.

Google::Cloud::Dialogflow::V2::Participant::SuggestArticlesRequest

The request message for [Participants.SuggestArticles][google.cloud.dialogflow.v2.Participants.SuggestArticles].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the participant to fetch suggestion for. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`.

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

    Type: String

    Optional. The name of the latest conversation message to compile suggestion for. If empty, it will be the latest message of the conversation.

    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][google.cloud.dialogflow.v2.SuggestArticlesRequest.latest_message] to use as context when compiling the suggestion. By default 20 and at most 50.

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

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

    Parameters for a human assist query.

Google::Cloud::Dialogflow::V2::Participant::SuggestArticlesResponse

The response message for [Participants.SuggestArticles][google.cloud.dialogflow.v2.Participants.SuggestArticles].

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Dialogflow::V2::Participant::ArticleAnswer)

    Articles ordered by score in descending order.

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

    Type: String

    The name of the latest conversation message used to compile suggestion for.

    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 [latest_message][google.cloud.dialogflow.v2.SuggestArticlesResponse.latest_message] to compile the suggestion. It may be smaller than the [SuggestArticlesRequest.context_size][google.cloud.dialogflow.v2.SuggestArticlesRequest.context_size] field in the request if there aren't that many messages in the conversation.

Google::Cloud::Dialogflow::V2::Participant::SuggestFaqAnswersRequest

The request message for [Participants.SuggestFaqAnswers][google.cloud.dialogflow.v2.Participants.SuggestFaqAnswers].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the participant to fetch suggestion for. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`.

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

    Type: String

    Optional. The name of the latest conversation message to compile suggestion for. If empty, it will be the latest message of the conversation.

    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 20 and at most 50.

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

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

    Parameters for a human assist query.

Google::Cloud::Dialogflow::V2::Participant::SuggestFaqAnswersResponse

The request message for [Participants.SuggestFaqAnswers][google.cloud.dialogflow.v2.Participants.SuggestFaqAnswers].

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Dialogflow::V2::Participant::FaqAnswer)

    Answers extracted from FAQ documents.

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

    Type: String

    The name of the latest conversation message used to compile suggestion for.

    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 [latest_message][google.cloud.dialogflow.v2.SuggestFaqAnswersResponse.latest_message] to compile the suggestion. It may be smaller than the [SuggestFaqAnswersRequest.context_size][google.cloud.dialogflow.v2.SuggestFaqAnswersRequest.context_size] field in the request if there aren't that many messages in the conversation.

Google::Cloud::Dialogflow::V2::Participant::GenerateSuggestionsResponse

The response message for [Conversations.GenerateSuggestions][google.cloud.dialogflow.v2.Conversations.GenerateSuggestions].

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Dialogflow::V2::Participant::GenerateSuggestionsResponse::GeneratorSuggestionAnswer)

    The answers generated for the conversation based on context.

  • $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>`.

Google::Cloud::Dialogflow::V2::Participant::ToolCallSuggestion

Structured wrapper that pairs tool execution details with strongly-typed citations.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Dialogflow::V2::Generator::GeneratorSuggestion::ToolCallInfo)

    Optional. Tool execution request/response details.

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

    Type: String

    Optional. The conversational text update generated by the agent accompanying this tool call (e.g. "The status of your order 12345 is currently being retrieved..."). This is a status update emitted alongside in-flight tool execution and is not accumulated into the final response.

Google::Cloud::Dialogflow::V2::Participant::ToolCallEvents

Represents events containing tool call execution progress.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Dialogflow::V2::Participant::CompanionSuggestion

Represents a companion suggestion answer.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Dialogflow::V2::Participant::GenerateCompanionSuggestionsResponse

Represents the response message for GenerateCompanionSuggestions.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Dialogflow::V2::Participant::CompanionSuggestion)

    Contains the core suggestion generated by the Companion Agent.

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

    Type: String

    Answer record that uniquely identifies the suggestion. Format: `projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>`.

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

    Type: String

    The name of the latest conversation message used to compile suggestion for. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>`.

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

    Type: Int32

    Output only. The 1-based sequential index of the suggestion generated in this session.

Google::Cloud::Dialogflow::V2::Participant::SuggestSmartRepliesRequest

The request message for [Participants.SuggestSmartReplies][google.cloud.dialogflow.v2.Participants.SuggestSmartReplies].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the participant to fetch suggestion for. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`.

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

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

    The current natural language text segment to compile suggestion for. This provides a way for user to get follow up smart reply suggestion after a smart reply selection, without sending a text message.

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

    Type: String

    The name of the latest conversation message to compile suggestion for. If empty, it will be the latest message of the conversation.

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

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

    Type: Int32

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

Google::Cloud::Dialogflow::V2::Participant::SuggestSmartRepliesResponse

The response message for [Participants.SuggestSmartReplies][google.cloud.dialogflow.v2.Participants.SuggestSmartReplies].

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Dialogflow::V2::Participant::SmartReplyAnswer)

    Output only. Multiple reply options provided by smart reply service. The order is based on the rank of the model prediction. The maximum number of the returned replies is set in SmartReplyConfig.

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

    Type: String

    The name of the latest conversation message used to compile suggestion for.

    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 [latest_message][google.cloud.dialogflow.v2.SuggestSmartRepliesResponse.latest_message] to compile the suggestion. It may be smaller than the [SuggestSmartRepliesRequest.context_size][google.cloud.dialogflow.v2.SuggestSmartRepliesRequest.context_size] field in the request if there aren't that many messages in the conversation.

Google::Cloud::Dialogflow::V2::Participant::AudioInput

Represents the natural language speech audio to be processed.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Dialogflow::V2::AudioConfig::InputAudioConfig)

    Required. Instructs the speech recognizer how to process the speech audio.

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

    Type: Bytes

    Required. The natural language speech audio to be processed. A single request can contain up to 2 minutes of speech audio data. The transcribed text cannot contain more than 256 bytes for virtual agent interactions.

Google::Cloud::Dialogflow::V2::Participant::OutputAudio

Represents the natural language speech audio to be played to the end user.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Dialogflow::V2::Participant::AutomatedAgentReply

Represents a response from an automated agent.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Dialogflow::V2::Session::DetectIntentResponse)

    Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.

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

    Type: Message (Google::Cloud::Dialogflow::V2::Participant::ResponseMessage)

    Response messages from the automated agent.

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

    Type: String

    Name of the intent if an intent is matched for the query. For a V2 query, the value format is `projects/<Project ID>/locations/ <Location ID>/agent/intents/<Intent ID>`. For a V3 query, the value format is `projects/<Project ID>/locations/ <Location ID>/agents/<Agent ID>/intents/<Intent ID>`.

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

    Type: String

    Event name if an event is triggered for the query.

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

    Type: Float

    The confidence of the match. Values range from 0.0 (completely uncertain) to 1.0 (completely certain). This value is for informational purpose only and is only used to help match the best intent within the classification threshold. This value may change for the same end-user expression at any time due to a model retraining or change in implementation.

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

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

    The collection of current parameters at the time of this response.

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

    Type: Enum (Google::Cloud::Dialogflow::V2::AutomatedAgentReply::AutomatedAgentReplyType)

    AutomatedAgentReply type.

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

    Type: Bool

    Indicates whether the partial automated agent reply is interruptible when a later reply message arrives. e.g. if the agent specified some music as partial response, it can be cancelled.

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

    Type: String

    The unique identifier of the current Dialogflow CX conversation page. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page ID>`.

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

    Type: Bytes

    The auth code for accessing Call Companion UI.

Enum: AutomatedAgentReply::AutomatedAgentReplyType

  • AUTOMATED_AGENT_REPLY_TYPE_UNSPECIFIED => 0

  • PARTIAL => 1

  • FINAL => 2

Google::Cloud::Dialogflow::V2::Participant::ArticleAnswer

Represents article answer.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The article title.

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

    Type: String

    The article URI.

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

    Type: String

    Article snippets.

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

    Type: Float

    Article match confidence. The system's confidence score that this article is a good match for this conversation, as a value from 0.0 (completely uncertain) to 1.0 (completely certain).

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

    Type: Message (Google::Cloud::Dialogflow::V2::Participant::ArticleAnswer::MetadataEntry)

    A map that contains metadata about the answer and the document from which it originates.

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

    Type: String

    The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"

Google::Cloud::Dialogflow::V2::Participant::FaqAnswer

Represents answer from "frequently asked questions".

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The piece of text from the `source` knowledge base document.

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

    Type: Float

    The system's confidence score that this Knowledge answer is a good match for this conversational query, range from 0.0 (completely uncertain) to 1.0 (completely certain).

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

    Type: String

    The corresponding FAQ question.

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

    Type: String

    Indicates which Knowledge Document this answer was extracted from. Format: `projects/<Project ID>/locations/<Location ID>/agent/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>`.

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

    Type: Message (Google::Cloud::Dialogflow::V2::Participant::FaqAnswer::MetadataEntry)

    A map that contains metadata about the answer and the document from which it originates.

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

    Type: String

    The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"

Google::Cloud::Dialogflow::V2::Participant::SmartReplyAnswer

Represents a smart reply answer.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The content of the reply.

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

    Type: Float

    Smart reply confidence. The system's confidence score that this reply is a good match for this conversation, as a value from 0.0 (completely uncertain) to 1.0 (completely certain).

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

    Type: String

    The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"

Google::Cloud::Dialogflow::V2::Participant::IntentSuggestion

Represents an intent suggestion.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The display name of the intent.

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

    Type: String

    The unique identifier of this [intent][google.cloud.dialogflow.v2.Intent]. Format: `projects/<Project ID>/locations/<Location ID>/agent/intents/<Intent ID>`.

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

    Type: String

    Human readable description for better understanding an intent like its scope, content, result etc. Maximum character limit: 140 characters.

Google::Cloud::Dialogflow::V2::Participant::DialogflowAssistAnswer

Represents a Dialogflow assist answer.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Dialogflow::V2::Participant::SuggestionResult

One response of different type of suggestion response which is used in the response of [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] and [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent], as well as [HumanAgentAssistantEvent][google.cloud.dialogflow.v2.HumanAgentAssistantEvent].

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Dialogflow::V2::Participant::InputTextConfig

Defines the language used in the input text.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The language of this conversational query. See [Language Support](https://cloud.google.com/dialogflow/docs/reference/language) for a list of the currently supported language codes.

Google::Cloud::Dialogflow::V2::Participant::AnnotatedMessagePart

Represents a part of a message possibly annotated with an entity. The part can be an entity or purely a part of the message between two entities or message start/end.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    A part of a message possibly annotated with an entity.

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

    Type: String

    The [Dialogflow system entity type](https://cloud.google.com/dialogflow/docs/reference/system-entities) of this message part. If this is empty, Dialogflow could not annotate the phrase part with a system entity.

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

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

    The [Dialogflow system entity formatted value ](https://cloud.google.com/dialogflow/docs/reference/system-entities) of this message part. For example for a system entity of type `@sys.unit-currency`, this may contain: <pre> { "amount": 5, "currency": "USD" } </pre>

Google::Cloud::Dialogflow::V2::Participant::MessageAnnotation

Represents the result of annotation for the message.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Dialogflow::V2::Participant::AnnotatedMessagePart)

    The collection of annotated message parts ordered by their position in the message. You can recover the annotated message by concatenating [AnnotatedMessagePart.text].

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

    Type: Bool

    Indicates whether the text message contains entities.

Google::Cloud::Dialogflow::V2::Participant::SuggestionInput

Represents the action to take for a tool call that requires confirmation.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Format: `projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>` The answer record associated with the tool call.

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

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

    Optional. Parameters to be used for the tool call. If not provided, the tool will be called without any parameters.

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

    Type: Enum (Google::Cloud::Dialogflow::V2::SuggestionInput::Action)

    Optional. The type of action to take with the tool.

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

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

    Optional. Time when the current suggest input is sent. For tool calls, this timestamp (along with the answer record) will be included in the corresponding tool call result so that it can be identified.

Enum: SuggestionInput::Action

  • ACTION_UNSPECIFIED => 0

  • CANCEL => 1

  • REVISE => 2

  • CONFIRM => 3

Google::Cloud::Dialogflow::V2::Participant::AssistQueryParameters

Represents the parameters of human assist query.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Dialogflow::V2::Participant::AssistQueryParameters::DocumentsMetadataFiltersEntry)

    Key-value filters on the metadata of documents returned by article suggestion. If specified, article suggestion only returns suggested documents that match all filters in their [Document.metadata][google.cloud.dialogflow.v2.Document.metadata]. Multiple values for a metadata key should be concatenated by comma. For example, filters to match all documents that have 'US' or 'CA' in their market metadata values and 'agent' in their user metadata values will be ``` documents_metadata_filters { key: "market" value: "US,CA" } documents_metadata_filters { key: "user" value: "agent" } ```

Google::Cloud::Dialogflow::V2::Participant::ResponseMessage

Response messages from an automated agent.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Dialogflow::V2::Participant::SuggestKnowledgeAssistRequest

The request message for [Participants.SuggestKnowledgeAssist][google.cloud.dialogflow.v2.Participants.SuggestKnowledgeAssist].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the participant to fetch suggestions for. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`.

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

    Type: String

    Optional. The name of the latest conversation message to compile suggestions for. If empty, it will be the latest message of the conversation. 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][google.cloud.dialogflow.v2.SuggestKnowledgeAssistRequest.latest_message] to use as context when compiling the suggestion. The context size is by default 100 and at most 100.

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

    Type: String

    Optional. The previously suggested query for the given conversation. This helps identify whether the next suggestion we generate is reasonably different from the previous one. This is useful to avoid similar suggestions within the conversation.

Google::Cloud::Dialogflow::V2::Participant::SuggestKnowledgeAssistResponse

The response message for [Participants.SuggestKnowledgeAssist][google.cloud.dialogflow.v2.Participants.SuggestKnowledgeAssist].

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Dialogflow::V2::Participant::KnowledgeAssistAnswer)

    Output only. Knowledge Assist suggestion.

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

    Type: String

    The name of the latest conversation message used to compile suggestion for. 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 [latest_message][google.cloud.dialogflow.v2.SuggestKnowledgeAssistResponse.latest_message] to compile the suggestion. It may be smaller than the [SuggestKnowledgeAssistRequest.context_size][google.cloud.dialogflow.v2.SuggestKnowledgeAssistRequest.context_size] field in the request if there are fewer messages in the conversation.

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

    Type: Message (Google::Cloud::Dialogflow::V2::Participant::KnowledgeAssistAnswer::AdditionalSuggestedQueryResult)

    Optional. The list of additional suggested queries based on the context. This is used for the cases when we want to generate multiple queries for a single request.

Google::Cloud::Dialogflow::V2::Participant::IngestedContextReferenceDebugInfo

Debug information related to ingested context reference.

Inherits from Protobuf::Message.

Accessors

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

    Type: Bool

    Indicates if the project is allowlisted to use ingested context reference.

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

    Type: Bool

    The status of context_reference retrieval from database.

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

    Type: Message (Google::Cloud::Dialogflow::V2::Participant::IngestedContextReferenceDebugInfo::IngestedParameterDebugInfo)

    Parameters ingested from the context reference.

Google::Cloud::Dialogflow::V2::Participant::ServiceLatency

Message to represent the latency of the service.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Dialogflow::V2::Participant::KnowledgeAssistDebugInfo

Debug information related to Knowledge Assist feature.

Inherits from Protobuf::Message.

Accessors

Enum: KnowledgeAssistDebugInfo::QueryGenerationFailureReason

  • QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED => 0

  • QUERY_GENERATION_OUT_OF_QUOTA => 1

  • QUERY_GENERATION_FAILED => 2

  • QUERY_GENERATION_NO_QUERY_GENERATED => 3

  • QUERY_GENERATION_RAI_FAILED => 4

  • NOT_IN_ALLOWLIST => 5

  • QUERY_GENERATION_QUERY_REDACTED => 6

  • QUERY_GENERATION_LLM_RESPONSE_PARSE_FAILED => 10

  • QUERY_GENERATION_EMPTY_CONVERSATION => 11

  • QUERY_GENERATION_EMPTY_LAST_MESSAGE => 12

  • QUERY_GENERATION_TRIGGERING_EVENT_CONDITION_NOT_MET => 13

Enum: KnowledgeAssistDebugInfo::QueryCategorizationFailureReason

  • QUERY_CATEGORIZATION_FAILURE_REASON_UNSPECIFIED => 0

  • QUERY_CATEGORIZATION_INVALID_CONFIG => 1

  • QUERY_CATEGORIZATION_RESULT_NOT_FOUND => 2

  • QUERY_CATEGORIZATION_FAILED => 3

Google::Cloud::Dialogflow::V2::Participant::KnowledgeAssistAnswer

Represents a Knowledge Assist answer.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Dialogflow::V2::Participant::StreamingReactiveCompanionSuggestionsRequest

The request message for [Participants.StreamingReactiveCompanionSuggestions][google.cloud.dialogflow.v2.Participants.StreamingReactiveCompanionSuggestions].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The human-agent participant name. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`.

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

    Type: String

    The natural language text to be processed.

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

    Type: Message (Google::Cloud::Dialogflow::V2::Participant::CancelQuery)

    Signals to cancel the current ongoing reactive query processing.

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

    Type: Message (Google::Cloud::Dialogflow::V2::Participant::SuggestionInput)

    An input representing the selection of a suggestion.

Google::Cloud::Dialogflow::V2::Participant::CancelQuery

Message to signal cancellation of the current query turn. Cancels the currently active interactive query, not any query running in the background.

Inherits from Protobuf::Message.

Google::Cloud::Dialogflow::V2::Participant::StreamingReactiveCompanionSuggestionsResponse

The response message for [Participants.StreamingReactiveCompanionSuggestions][google.cloud.dialogflow.v2.Participants.StreamingReactiveCompanionSuggestions].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Streamed response text chunks.

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

    Type: Message (Google::Rpc::Status::Status)

    Status of the response for the current query. If set and non-ok, indicates an error occurred during processing of the current query, or confirms that a requested cancellation has successfully completed (status code CANCELLED).

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

    Type: Message (Google::Cloud::Dialogflow::V2::Participant::StreamingReactiveCompanionSuggestionsResponse::ReactiveModeResponse)

    Output only. The final response from the reactive mode capturing the entire accumulated streaming response, grounding metadata, and tool calls. Only set when `is_final` is `true` and conversational processing for the query turn completes.

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

    Type: Message (Google::Cloud::Dialogflow::V2::Participant::ToolCallEvents)

    Output only. Captures intermediate tool call events that occur during the execution of the reactive query turn. Note that conversational messages within tool calls are displayed within the tool cards and hence are not accumulated within the `reactive_mode_final_response.response` string.

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

    Type: Bool

    Output only. Indicates whether the client/UI can accept a new query for reactive chat. When `is_final` is `true`, the reactive chat interface is unblocked and ready to receive new human agent queries. For synchronous turns, this is set to `true` on the final response chunk. For asynchronous tool calls running in the background, this is set to `true` on the intermediate trigger chunk to unblock the UI while the background tool execution is in progress.

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

    Type: String

    Output only. Only set when `is_final` is `true` and conversational turn processing completes. The final answer record representing the completed suggestion. Only present in the last chunk of the completed response.

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

    Type: String

    Required. The unique message identifier corresponding to the human agent query that generated this response chunk.

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

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

    The timestamp when the response chunk was sent by the service.

Google::Cloud::Dialogflow::V2::Participant::BidiStreamingAnalyzeContentRequest

The request message for [Participants.BidiStreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.BidiStreamingAnalyzeContent].

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Dialogflow::V2::Participant::BidiStreamingAnalyzeContentResponse

The response message for [Participants.BidiStreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.BidiStreamingAnalyzeContent].

Inherits from Protobuf::Message.

Accessors

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Dialogflow::V2::Participant::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.