Service Client: Google::Cloud::Dialogflow::V2beta1::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::V2beta1::Generator - Compiled Protocol Buffers messages for google/cloud/dialogflow/v2beta1/generator.proto

SYNOPSIS

use Google::Cloud::Dialogflow::V2beta1::Generator;

my $msg = Google::Cloud::Dialogflow::V2beta1::Generator::CreateGeneratorRequest->new({
    parent => $parent,
    generator => $generator,
    generator_id => $generator_id,
});

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/dialogflow/v2beta1/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::V2beta1::Generator::CreateGeneratorRequest

Request message of CreateGenerator.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The project/location to create generator for. Format: `projects/<Project ID>/locations/<Location ID>`

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

    Type: Message (Google::Cloud::Dialogflow::V2beta1::Generator::Generator)

    Required. The generator to create.

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

    Type: String

    Optional. The ID to use for the generator, which will become the final component of the generator's resource name.

    The generator ID must be compliant with the regression formula `[a-zA-Z][a-zA-Z0-9_-]*` with the characters length in range of [3,64]. If the field is not provided, an Id will be auto-generated. If the field is provided, the caller is responsible for 1. the uniqueness of the ID, otherwise the request will be rejected. 2. the consistency for whether to use custom ID or not under a project to better ensure uniqueness.

Google::Cloud::Dialogflow::V2beta1::Generator::GetGeneratorRequest

Request message of GetGenerator.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The generator resource name to retrieve. Format: `projects/<Project ID>/locations/<Location ID>`/generators/<Generator ID>`

Google::Cloud::Dialogflow::V2beta1::Generator::ListGeneratorsRequest

Request message of ListGenerators.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The project/location to list generators for. Format: `projects/<Project ID>/locations/<Location ID>`

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

    Type: Int32

    Optional. Maximum number of conversation models to return in a single page. Default to 10.

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

    Type: String

    Optional. The next_page_token value returned from a previous list request.

Google::Cloud::Dialogflow::V2beta1::Generator::ListGeneratorsResponse

Response of ListGenerators.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Dialogflow::V2beta1::Generator::Generator)

    List of generators retrieved.

  • $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::V2beta1::Generator::DeleteGeneratorRequest

Request of DeleteGenerator.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The generator resource name to delete. Format: `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>`

Google::Cloud::Dialogflow::V2beta1::Generator::UpdateGeneratorRequest

Request of UpdateGenerator.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Dialogflow::V2beta1::Generator::MessageEntry

Represents a message entry of a conversation.

Inherits from Protobuf::Message.

Accessors

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

    Type: Enum (Google::Cloud::Dialogflow::V2beta1::MessageEntry::Role)

    Optional. Participant role of the message.

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

    Type: String

    Optional. Transcript content of the message.

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

    Type: String

    Optional. The language of the text. See [Language Support](https://cloud.google.com/dialogflow/docs/reference/language) for a list of the currently supported language codes.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Optional. Create time of the message entry.

Enum: MessageEntry::Role

  • ROLE_UNSPECIFIED => 0

  • HUMAN_AGENT => 1

  • AUTOMATED_AGENT => 2

  • END_USER => 3

Google::Cloud::Dialogflow::V2beta1::Generator::ConversationContext

Context of the conversation, including transcripts.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Dialogflow::V2beta1::Generator::SummarizationSectionList

List of summarization sections.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Dialogflow::V2beta1::Generator::FewShotExample

Providing examples in the generator (i.e. building a few-shot generator) helps convey the desired format of the LLM response.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Dialogflow::V2beta1::Generator::InferenceParameter

The parameters of inference.

Inherits from Protobuf::Message.

Accessors

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

    Type: Int32

    Optional. Maximum number of the output tokens for the generator.

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

    Type: Double

    Optional. Controls the randomness of LLM predictions. Low temperature = less random. High temperature = more random. If unset (or 0), uses a default value of 0.

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

    Type: Int32

    Optional. Top-k changes how the model selects tokens for output. A top-k of 1 means the selected token is the most probable among all tokens in the model's vocabulary (also called greedy decoding), while a top-k of 3 means that the next token is selected from among the 3 most probable tokens (using temperature). For each token selection step, the top K tokens with the highest probabilities are sampled. Then tokens are further filtered based on topP with the final token selected using temperature sampling. Specify a lower value for less random responses and a higher value for more random responses. Acceptable value is [1, 40], default to 40.

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

    Type: Double

    Optional. Top-p changes how the model selects tokens for output. Tokens are selected from most K (see topK parameter) probable to least until the sum of their probabilities equals the top-p value. For example, if tokens A, B, and C have a probability of 0.3, 0.2, and 0.1 and the top-p value is 0.5, then the model will select either A or B as the next token (using temperature) and doesn't consider C. The default top-p value is 0.95. Specify a lower value for less random responses and a higher value for more random responses. Acceptable value is [0.0, 1.0], default to 0.95.

Google::Cloud::Dialogflow::V2beta1::Generator::AgentCoachingContext

Agent Coaching context that customer can configure.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Optional. The overarching guidance for the agent coaching. This should be set only for v1.5 and later versions.

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

    Type: Message (Google::Cloud::Dialogflow::V2beta1::AgentCoachingInstruction::AgentCoachingInstruction)

    Optional. Customized instructions for agent coaching.

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

    Type: String

    Optional. Version of the feature. If not set, default to latest version. Current candidates are ["2.5"].

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

    Type: String

    Optional. Output language code.

Google::Cloud::Dialogflow::V2beta1::Generator::SummarizationSection

Represents the section of summarization.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Optional. Name of the section, for example, "situation".

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

    Type: String

    Optional. Definition of the section, for example, "what the customer needs help with or has question about."

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

    Type: Enum (Google::Cloud::Dialogflow::V2beta1::SummarizationSection::Type)

    Optional. Type of the summarization section.

Enum: SummarizationSection::Type

  • TYPE_UNSPECIFIED => 0

  • SITUATION => 1

  • ACTION => 2

  • RESOLUTION => 3

  • REASON_FOR_CANCELLATION => 4

  • CUSTOMER_SATISFACTION => 5

  • ENTITIES => 6

  • CUSTOMER_DEFINED => 7

  • SITUATION_CONCISE => 9

  • ACTION_CONCISE => 10

Google::Cloud::Dialogflow::V2beta1::Generator::SummarizationContext

Summarization context that customer can configure.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Dialogflow::V2beta1::Generator::SummarizationSection)

    Optional. List of sections. Note it contains both predefined section sand customer defined sections.

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

    Type: Message (Google::Cloud::Dialogflow::V2beta1::Generator::FewShotExample)

    Optional. List of few shot examples.

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

    Type: String

    Optional. Version of the feature. If not set, default to latest version. Current candidates are ["1.0"].

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

    Type: String

    Optional. The target language of the generated summary. The language code for conversation will be used if this field is empty. Supported 2.0 and later versions.

Google::Cloud::Dialogflow::V2beta1::Generator::FreeFormContext

Free form generator context that customer can configure.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Optional. Free form text input to LLM.

Google::Cloud::Dialogflow::V2beta1::Generator::Generator

LLM generator.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Dialogflow::V2beta1::Generator::FreeFormSuggestion

Suggestion generated using free form generator.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Free form suggestion.

Google::Cloud::Dialogflow::V2beta1::Generator::SummarySuggestion

Suggested summary of the conversation.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Dialogflow::V2beta1::Generator::AgentCoachingSuggestion

Suggestion for coaching agents.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Dialogflow::V2beta1::Generator::GeneratorSuggestion

Suggestion generated using a Generator.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Dialogflow::V2beta1::Generator::SuggestionDedupingConfig

Config for suggestion deduping. NEXT_ID: 3

Inherits from Protobuf::Message.

Accessors

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

    Type: Bool

    Optional. Whether to enable suggestion deduping.

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

    Type: Float

    Optional. The threshold for similarity between two suggestions. Acceptable value is [0.0, 1.0], default to 0.8

Google::Cloud::Dialogflow::V2beta1::Generator::RaiSettings

Settings for Responsible AI checks.

Inherits from Protobuf::Message.

Accessors

SEE ALSO

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

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.