NAME

Google::Cloud::Dialogflow::Cx::V3beta1::ResponseMessage - Compiled Protocol Buffers messages for google/cloud/dialogflow/cx/v3beta1/response_message.proto

SYNOPSIS

use Google::Cloud::Dialogflow::Cx::V3beta1::ResponseMessage;

my $msg = Google::Cloud::Dialogflow::Cx::V3beta1::ResponseMessage::ResponseMessage->new({
    text => $text,
    payload => $payload,
    conversation_success => $conversation_success,
    output_audio_text => $output_audio_text,
});

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/dialogflow/cx/v3beta1/response_message.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::Cx::V3beta1::ResponseMessage::ResponseMessage

Represents a response message that can be returned by a conversational agent.

Response messages are also used for output audio synthesis. The approach is as follows:

* If at least one OutputAudioText response is present, then all OutputAudioText responses are linearly concatenated, and the result is used for output audio synthesis. * If the OutputAudioText responses are a mixture of text and SSML, then the concatenated result is treated as SSML; otherwise, the result is treated as either text or SSML as appropriate. The agent designer should ideally use either text or SSML consistently throughout the bot design. * Otherwise, all Text responses are linearly concatenated, and the result is used for output audio synthesis.

This approach allows for more sophisticated user experience scenarios, where the text displayed to the user may differ from what is heard.

Inherits from Protobuf::Message.

Accessors

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Dialogflow::Cx::V3beta1::ResponseMessage::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.