NAME
Google::Actions::Sdk::V2::Interactionmodel::Intent - Compiled Protocol Buffers messages for google/actions/sdk/v2/interactionmodel/intent.proto
SYNOPSIS
use Google::Actions::Sdk::V2::Interactionmodel::Intent;
my $msg = Google::Actions::Sdk::V2::Interactionmodel::Intent::Intent->new({
parameters => $parameters,
training_phrases => $training_phrases,
});
# Read or update a field
my $val = $msg->parameters();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Actions::Sdk::V2::Interactionmodel::Intent::Intent->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/actions/sdk/v2/interactionmodel/intent.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::Intent::Intent
Intents map open-ended user input to structured objects. Spoken phrases are matched to intents with Google's Natural Language Understanding (NLU). Intent matches can trigger events in your conversation design to progress the user's conversation. The intent name is specified in the name of the file.
Inherits from Protobuf::Message.
Accessors
$msg->parameters()/$msg->parameters($value)Type:
Message(Google::Actions::Sdk::V2::Interactionmodel::Intent::Intent::IntentParameter)The list of parameters within the training phrases. All parameters must be defined here to be used in the training phrase.
$msg->training_phrases()/$msg->training_phrases($value)Type:
StringTraining phrases allow Google’s NLU to automatically match intents with user input. The more unique phrases that are provided, the better chance this intent will be matched. The following is the format of training phrase part which are annotated. Note that `auto` field is optional and the default behavior when `auto` is not specified is equivalent to `auto=false`. `($<paramName> '<sample text>' auto=<true or false>)` `auto = true` means the part was auto annotated by NLU. `auto = false` means the part was annotated by the user. This is the default when auto is not specified. Example: "Book a flight from ($source 'San Francisco' auto=false) to ($dest 'Vancouver')"
SEE ALSO
Protobuf, Protobuf::Message, Google::Actions::Sdk::V2::Interactionmodel::Intent::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.