NAME

Google::Cloud::Dialogflow::Cx::V3::Fulfillment - Compiled Protocol Buffers messages for google/cloud/dialogflow/cx/v3/fulfillment.proto

SYNOPSIS

use Google::Cloud::Dialogflow::Cx::V3::Fulfillment;

my $msg = Google::Cloud::Dialogflow::Cx::V3::Fulfillment::Fulfillment->new({
    messages => $messages,
    webhook => $webhook,
    return_partial_responses => $return_partial_responses,
    tag => $tag,
});

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/dialogflow/cx/v3/fulfillment.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::V3::Fulfillment::Fulfillment

A fulfillment can do one or more of the following actions at the same time:

* Generate rich message responses.
* Set parameter values.
* Call the webhook.

Fulfillments can be called at various stages in the [Page][google.cloud.dialogflow.cx.v3.Page] or [Form][google.cloud.dialogflow.cx.v3.Form] lifecycle. For example, when a [DetectIntentRequest][google.cloud.dialogflow.cx.v3.DetectIntentRequest] drives a session to enter a new page, the page's entry fulfillment can add a static response to the [QueryResult][google.cloud.dialogflow.cx.v3.QueryResult] in the returning [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse], call the webhook (for example, to load user data from a database), or both.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Dialogflow::Cx::V3::ResponseMessage::ResponseMessage)

    The list of rich message responses to present to the user.

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

    Type: String

    The webhook to call. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/webhooks/<WebhookID>`.

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

    Type: Bool

    Whether Dialogflow should return currently queued fulfillment response messages in streaming APIs. If a webhook is specified, it happens before Dialogflow invokes webhook. Warning: 1) This flag only affects streaming API. Responses are still queued and returned once in non-streaming API. 2) The flag can be enabled in any fulfillment but only the first 3 partial responses will be returned. You may only want to apply it to fulfillments that have slow webhooks.

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

    Type: String

    The value of this field will be populated in the [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] `fulfillmentInfo.tag` field by Dialogflow when the associated webhook is called. The tag is typically used by the webhook service to identify which fulfillment is being called, but it could be used for other purposes. This field is required if `webhook` is specified.

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

    Type: String

    Optional. The name of the code block function to execute, if this is a code block fulfillment. The code block itself is implied by the fulfillment's parent, e.g. a playbook.

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

    Type: Message (Google::Cloud::Dialogflow::Cx::V3::Fulfillment::Fulfillment::SetParameterAction)

    Set parameter values before executing the webhook.

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

    Type: Message (Google::Cloud::Dialogflow::Cx::V3::Fulfillment::Fulfillment::ConditionalCases)

    Conditional cases for this fulfillment.

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

    Type: Message (Google::Cloud::Dialogflow::Cx::V3::AdvancedSettings::AdvancedSettings)

    Hierarchical advanced settings for this fulfillment. The settings exposed at the lower level overrides the settings exposed at the higher level.

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

    Type: Bool

    If the flag is true, the agent will utilize LLM to generate a text response. If LLM generation fails, the defined [responses][google.cloud.dialogflow.cx.v3.Fulfillment.messages] in the fulfillment will be respected. This flag is only useful for fulfillments associated with no-match event handlers.

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

    Type: Message (Google::Cloud::Dialogflow::Cx::V3::Fulfillment::Fulfillment::GeneratorSettings)

    A list of Generators to be called during this fulfillment.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Dialogflow::Cx::V3::Fulfillment::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.