NAME
Google::Actions::Sdk::V2::Interactionmodel::Slot - Compiled Protocol Buffers messages for google/actions/sdk/v2/interactionmodel/slot.proto
SYNOPSIS
use Google::Actions::Sdk::V2::Interactionmodel::Slot;
my $msg = Google::Actions::Sdk::V2::Interactionmodel::Slot::Slot->new({
name => $name,
type => $type,
required => $required,
prompt_settings => $prompt_settings,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Actions::Sdk::V2::Interactionmodel::Slot::Slot->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/actions/sdk/v2/interactionmodel/slot.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::Interactionmodel::Slot::Slot
Configuration for a slot. Slots are single units of data that can be filled through natural language (ie. intent parameters), session parameters, and other sources.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Name of the slot.
$msg->type()/$msg->type($value)Type:
Message(Google::Actions::Sdk::V2::Interactionmodel::Type::ClassReference::ClassReference)Required. Declares the data type of this slot.
$msg->required()/$msg->required($value)Type:
BoolOptional. Indicates whether the slot is required to be filled before advancing. Required slots that are not filled will trigger a customizable prompt to the user.
$msg->prompt_settings()/$msg->prompt_settings($value)Type:
Message(Google::Actions::Sdk::V2::Interactionmodel::Slot::Slot::PromptSettings)Optional. Registers Prompts for different stages of slot filling.
$msg->commit_behavior()/$msg->commit_behavior($value)Type:
Message(Google::Actions::Sdk::V2::Interactionmodel::Slot::Slot::CommitBehavior)Optional. Commit behavior associated with the slot.
$msg->config()/$msg->config($value)Type:
Message(Google::Protobuf::Struct::Value)Optional. Additional configuration associated with the slot which is used for filling the slot. The format of the config is specific to the type of the slot. Resource references to user or session parameter can be added to this config. This config is needed for filling slots related to transactions and user engagement.
Example: For a slot of type actions.type.CompletePurchaseValue, the following config proposes a digital good order with a reference to a client defined session parameter `userSelectedSkuId`:
{ "@type": "type.googleapis.com/ google.actions.transactions.v3.CompletePurchaseValueSpec", "skuId": { "skuType": "SKU_TYPE_IN_APP", "id": "$session.params.userSelectedSkuId", "packageName": "com.example.company" } }$msg->default_value()/$msg->default_value($value)Type:
Message(Google::Actions::Sdk::V2::Interactionmodel::Slot::Slot::DefaultValue)Optional. Configuration to populate a default value for this slot.
SEE ALSO
Protobuf, Protobuf::Message, Google::Actions::Sdk::V2::Interactionmodel::Slot::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.