Service Client: Google::Cloud::Dialogflow::Cx::V3beta1::Generator::GeneratorsClient

Client stub representing the remote Generators gRPC service. Delegates call dispatching to Google::gRPC::Client.

target

The endpoint target address. Defaults to dialogflow.googleapis.com:443.

credentials

The authentication credentials provider. Defaults to application default credentials via Google::Auth.

NAME

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

SYNOPSIS

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

my $msg = Google::Cloud::Dialogflow::Cx::V3beta1::Generator::Generator->new({
    name => $name,
    display_name => $display_name,
    prompt_text => $prompt_text,
    placeholders => $placeholders,
});

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/dialogflow/cx/v3beta1/generator.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::Generator::Generator

Generators contain prompt to be sent to the LLM model to generate text. The prompt can contain parameters which will be resolved before calling the model. It can optionally contain banned phrases to ensure the model responses are safe.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The unique identifier of the generator. Must be set for the [Generators.UpdateGenerator][google.cloud.dialogflow.cx.v3beta1.Generators.UpdateGenerator] method. [Generators.CreateGenerate][] populates the name automatically. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/generators/<GeneratorID>`.

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

    Type: String

    Required. The human-readable name of the generator, unique within the agent. The prompt contains pre-defined parameters such as $conversation, $last-user-utterance, etc. populated by Dialogflow. It can also contain custom placeholders which will be resolved during fulfillment.

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

    Type: Message (Google::Cloud::Dialogflow::Cx::V3beta1::Generator::Phrase)

    Required. Prompt for the LLM model.

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

    Type: Message (Google::Cloud::Dialogflow::Cx::V3beta1::Generator::Generator::Placeholder)

    Optional. List of custom placeholders in the prompt text.

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

    Type: Message (Google::Cloud::Dialogflow::Cx::V3beta1::GenerativeSettings::LlmModelSettings)

    The LLM model settings.

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

    Type: Message (Google::Cloud::Dialogflow::Cx::V3beta1::Generator::Generator::ModelParameter)

    Parameters passed to the LLM to configure its behavior.

Google::Cloud::Dialogflow::Cx::V3beta1::Generator::Phrase

Text input which can be used for prompt or banned phrases.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Text input which can be used for prompt or banned phrases.

Google::Cloud::Dialogflow::Cx::V3beta1::Generator::ListGeneratorsRequest

The request message for [Generators.ListGenerators][google.cloud.dialogflow.cx.v3beta1.Generators.ListGenerators].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The agent to list all generators for. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.

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

    Type: String

    The language to list generators for.

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

    Type: Int32

    The maximum number of items to return in a single page. By default 100 and at most 1000.

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

    Type: String

    The next_page_token value returned from a previous list request.

Google::Cloud::Dialogflow::Cx::V3beta1::Generator::ListGeneratorsResponse

The response message for [Generators.ListGenerators][google.cloud.dialogflow.cx.v3beta1.Generators.ListGenerators].

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Dialogflow::Cx::V3beta1::Generator::Generator)

    The list of generators. There will be a maximum number of items returned based on the page_size field in the request.

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

    Type: String

    Token to retrieve the next page of results, or empty if there are no more results in the list.

Google::Cloud::Dialogflow::Cx::V3beta1::Generator::GetGeneratorRequest

The request message for [Generators.GetGenerator][google.cloud.dialogflow.cx.v3beta1.Generators.GetGenerator].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the generator. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/generators/<GeneratorID>`.

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

    Type: String

    The language to list generators for.

Google::Cloud::Dialogflow::Cx::V3beta1::Generator::CreateGeneratorRequest

The request message for [Generators.CreateGenerator][google.cloud.dialogflow.cx.v3beta1.Generators.CreateGenerator].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The agent to create a generator for. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.

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

    Type: Message (Google::Cloud::Dialogflow::Cx::V3beta1::Generator::Generator)

    Required. The generator to create.

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

    Type: String

    The language to create generators for the following fields: * `Generator.prompt_text.text` If not specified, the agent's default language is used.

Google::Cloud::Dialogflow::Cx::V3beta1::Generator::UpdateGeneratorRequest

The request message for [Generators.UpdateGenerator][google.cloud.dialogflow.cx.v3beta1.Generators.UpdateGenerator].

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Dialogflow::Cx::V3beta1::Generator::DeleteGeneratorRequest

The request message for [Generators.DeleteGenerator][google.cloud.dialogflow.cx.v3beta1.Generators.DeleteGenerator].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the generator to delete. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/generators/<GeneratorID>`.

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

    Type: Bool

    This field has no effect for generators not being used. For generators that are used by pages/flows/transition route groups:

    * If `force` is set to false, an error will be returned with message indicating the referenced resources. * If `force` is set to true, Dialogflow will remove the generator, as well as any references to the generator (i.e. [Generator][Fulfillment.generator]) in fulfillments.

SEE ALSO

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

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.