NAME

Google::Actions::Sdk::V2::Conversation::Prompt - Compiled Protocol Buffers messages for google/actions/sdk/v2/conversation/prompt/prompt.proto

SYNOPSIS

use Google::Actions::Sdk::V2::Conversation::Prompt;

my $msg = Google::Actions::Sdk::V2::Conversation::Prompt::Prompt->new({
    append => $append,
    override => $override,
    first_simple => $first_simple,
    content => $content,
});

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

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Actions::Sdk::V2::Conversation::Prompt::Prompt->parse($bytes);

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

DESCRIPTION

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

MESSAGES

Google::Actions::Sdk::V2::Conversation::Prompt::Prompt

Represent a response to a user.

Inherits from Protobuf::Message.

Accessors

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

    Type: Bool

    Optional. Mode for how this messages should be merged with previously defined messages. "false" will clear all previously defined messages (first and last simple, content, suggestions link and canvas) and add messages defined in this prompt. "true" will add messages defined in this prompt to messages defined in previous responses. Setting this field to "true" will also enable appending to some fields inside Simple prompts, the Suggestion prompt and the Canvas prompt (part of the Content prompt). The Content and Link messages will always be overwritten if defined in the prompt. Default value is "false".

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

    Type: Bool

    Optional. Mode for how this messages should be merged with previously defined messages. "true" clears all previously defined messages (first and last simple, content, suggestions link and canvas) and adds messages defined in this prompt. "false" adds messages defined in this prompt to messages defined in previous responses. Leaving this field to "false" also enables appending to some fields inside Simple prompts, the Suggestions prompt, and the Canvas prompt (part of the Content prompt). The Content and Link messages are always overwritten if defined in the prompt. Default value is "false".

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

    Type: Message (Google::Actions::Sdk::V2::Conversation::Simple::Simple)

    Optional. The first voice and text-only response.

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

    Type: Message (Google::Actions::Sdk::V2::Conversation::Content::Content)

    Optional. A content like a card, list or media to display to the user.

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

    Type: Message (Google::Actions::Sdk::V2::Conversation::Simple::Simple)

    Optional. The last voice and text-only response.

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

    Type: Message (Google::Actions::Sdk::V2::Conversation::Suggestion::Suggestion)

    Optional. Suggestions to be displayed to the user which will always appear at the end of the response. If the "override" field in the containing prompt is "false", the titles defined in this field will be added to titles defined in any previously defined suggestions prompts and duplicate values will be removed.

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

    Type: Message (Google::Actions::Sdk::V2::Conversation::Link::Link)

    Optional. An additional suggestion chip that can link out to the associated app or site. The chip will be rendered with the title "Open <name>". Max 20 chars.

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

    Type: Message (Google::Actions::Sdk::V2::Conversation::Canvas::Canvas)

    Optional. Represents a Interactive Canvas response to be sent to the user.

SEE ALSO

Protobuf, Protobuf::Message, Google::Actions::Sdk::V2::Conversation::Prompt::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.