Service Client: Google::Cloud::Dialogflow::V2::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::V2::Generator - Compiled Protocol Buffers messages for google/cloud/dialogflow/v2/generator.proto
SYNOPSIS
use Google::Cloud::Dialogflow::V2::Generator;
my $msg = Google::Cloud::Dialogflow::V2::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::V2::Generator::CreateGeneratorRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/dialogflow/v2/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::V2::Generator::CreateGeneratorRequest
Request message of CreateGenerator.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The project/location to create generator for. Format: `projects/<Project ID>/locations/<Location ID>`
$msg->generator()/$msg->generator($value)Type:
Message(Google::Cloud::Dialogflow::V2::Generator::Generator)Required. The generator to create.
$msg->generator_id()/$msg->generator_id($value)Type:
StringOptional. 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::V2::Generator::GetGeneratorRequest
Request message of GetGenerator.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The generator resource name to retrieve. Format: `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>`
Google::Cloud::Dialogflow::V2::Generator::ListGeneratorsRequest
Request message of ListGenerators.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The project/location to list generators for. Format: `projects/<Project ID>/locations/<Location ID>`
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. Maximum number of conversation models to return in a single page. Default to 10.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. The next_page_token value returned from a previous list request.
Google::Cloud::Dialogflow::V2::Generator::ListGeneratorsResponse
Response of ListGenerators.
Inherits from Protobuf::Message.
Accessors
$msg->generators()/$msg->generators($value)Type:
Message(Google::Cloud::Dialogflow::V2::Generator::Generator)List of generators retrieved.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringToken to retrieve the next page of results, or empty if there are no more results in the list.
Google::Cloud::Dialogflow::V2::Generator::DeleteGeneratorRequest
Request of DeleteGenerator.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The generator resource name to delete. Format: `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>`
Google::Cloud::Dialogflow::V2::Generator::UpdateGeneratorRequest
Request of UpdateGenerator.
Inherits from Protobuf::Message.
Accessors
$msg->generator()/$msg->generator($value)Type:
Message(Google::Cloud::Dialogflow::V2::Generator::Generator)Required. The generator to update. The name field of generator is to identify the generator to update.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Optional. The list of fields to update.
Google::Cloud::Dialogflow::V2::Generator::MessageEntry
Represents a message entry of a conversation.
Inherits from Protobuf::Message.
Accessors
$msg->role()/$msg->role($value)Type:
Enum(Google::Cloud::Dialogflow::V2::MessageEntry::Role)Optional. Participant role of the message.
$msg->text()/$msg->text($value)Type:
StringOptional. Transcript content of the message.
$msg->language_code()/$msg->language_code($value)Type:
StringOptional. 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=>0HUMAN_AGENT=>1AUTOMATED_AGENT=>2END_USER=>3
Google::Cloud::Dialogflow::V2::Generator::ConversationContext
Context of the conversation, including transcripts.
Inherits from Protobuf::Message.
Accessors
$msg->message_entries()/$msg->message_entries($value)Type:
Message(Google::Cloud::Dialogflow::V2::Generator::MessageEntry)Optional. List of message transcripts in the conversation.
Google::Cloud::Dialogflow::V2::Generator::SummarizationSectionList
List of summarization sections.
Inherits from Protobuf::Message.
Accessors
$msg->summarization_sections()/$msg->summarization_sections($value)Type:
Message(Google::Cloud::Dialogflow::V2::Generator::SummarizationSection)Optional. Summarization sections.
Google::Cloud::Dialogflow::V2::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
$msg->conversation_context()/$msg->conversation_context($value)Type:
Message(Google::Cloud::Dialogflow::V2::Generator::ConversationContext)Optional. Conversation transcripts.
$msg->extra_info()/$msg->extra_info($value)Type:
Message(Google::Cloud::Dialogflow::V2::Generator::FewShotExample::ExtraInfoEntry)Optional. Key is the placeholder field name in input, value is the value of the placeholder. E.g. instruction contains "@price", and ingested data has <"price", "10">
$msg->summarization_section_list()/$msg->summarization_section_list($value)Type:
Message(Google::Cloud::Dialogflow::V2::Generator::SummarizationSectionList)Summarization sections.
$msg->output()/$msg->output($value)Type:
Message(Google::Cloud::Dialogflow::V2::Generator::GeneratorSuggestion)Required. Example output of the model.
Google::Cloud::Dialogflow::V2::Generator::InferenceParameter
The parameters of inference.
Inherits from Protobuf::Message.
Accessors
$msg->max_output_tokens()/$msg->max_output_tokens($value)Type:
Int32Optional. Maximum number of the output tokens for the generator.
$msg->temperature()/$msg->temperature($value)Type:
DoubleOptional. 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:
Int32Optional. 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:
DoubleOptional. 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::V2::Generator::AgentCoachingContext
Agent Coaching context that customer can configure.
Inherits from Protobuf::Message.
Accessors
$msg->overarching_guidance()/$msg->overarching_guidance($value)Type:
StringOptional. 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::V2::AgentCoachingInstruction::AgentCoachingInstruction)Optional. Customized instructions for agent coaching.
$msg->version()/$msg->version($value)Type:
StringOptional. Version of the feature. If not set, default to latest version. Current candidates are ["1.2"].
$msg->output_language_code()/$msg->output_language_code($value)Type:
StringOptional. Output language code.
Google::Cloud::Dialogflow::V2::Generator::SummarizationSection
Represents the section of summarization.
Inherits from Protobuf::Message.
Accessors
$msg->key()/$msg->key($value)Type:
StringOptional. Name of the section, for example, "situation".
$msg->definition()/$msg->definition($value)Type:
StringOptional. 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::V2::SummarizationSection::Type)Optional. Type of the summarization section.
Enum: SummarizationSection::Type
TYPE_UNSPECIFIED=>0SITUATION=>1ACTION=>2RESOLUTION=>3REASON_FOR_CANCELLATION=>4CUSTOMER_SATISFACTION=>5ENTITIES=>6CUSTOMER_DEFINED=>7SITUATION_CONCISE=>9ACTION_CONCISE=>10
Google::Cloud::Dialogflow::V2::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::V2::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::V2::Generator::FewShotExample)Optional. List of few shot examples.
$msg->version()/$msg->version($value)Type:
StringOptional. 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:
StringOptional. 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::V2::Generator::FreeFormContext
Free form generator context that customer can configure.
Inherits from Protobuf::Message.
Accessors
$msg->text()/$msg->text($value)Type:
StringOptional. Free form text input to LLM.
Google::Cloud::Dialogflow::V2::Generator::Generator
LLM generator.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringOutput only. Identifier. The resource name of the generator. Format: `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>`
$msg->description()/$msg->description($value)Type:
StringOptional. Human readable description of the generator.
$msg->free_form_context()/$msg->free_form_context($value)Type:
Message(Google::Cloud::Dialogflow::V2::Generator::FreeFormContext)Input of free from generator to LLM.
$msg->agent_coaching_context()/$msg->agent_coaching_context($value)Type:
Message(Google::Cloud::Dialogflow::V2::Generator::AgentCoachingContext)Input of prebuilt Agent Coaching feature.
$msg->summarization_context()/$msg->summarization_context($value)Type:
Message(Google::Cloud::Dialogflow::V2::Generator::SummarizationContext)Input of prebuilt Summarization feature.
$msg->inference_parameter()/$msg->inference_parameter($value)Type:
Message(Google::Cloud::Dialogflow::V2::Generator::InferenceParameter)Optional. Inference parameters for this generator.
$msg->trigger_event()/$msg->trigger_event($value)Type:
Enum(Google::Cloud::Dialogflow::V2::TriggerEvent)Optional. The trigger event of the generator. It defines when the generator is triggered in a conversation.
$msg->published_model()/$msg->published_model($value)Type:
StringOptional. The published Large Language Model name. * To use the latest model version, specify the model name without version number. Example: `text-bison` * To use a stable model version, specify the version number as well. Example: `text-bison@002`.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Creation time of this generator.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Update time of this generator.
$msg->tools()/$msg->tools($value)Type:
StringOptional. Resource names of the tools that the generator can choose from. Format: `projects/<Project ID>/locations/<Location ID>/tools/<tool ID>`.
$msg->suggestion_deduping_config()/$msg->suggestion_deduping_config($value)Type:
Message(Google::Cloud::Dialogflow::V2::Generator::SuggestionDedupingConfig)Optional. Configuration for suggestion deduping. This is only applicable to AI Coach feature.
$msg->toolset_tools()/$msg->toolset_tools($value)Type:
Message(Google::Cloud::Dialogflow::V2::Toolset::ToolsetTool)Optional. List of CES toolset specs that the generator can choose from.
$msg->ces_tool_specs()/$msg->ces_tool_specs($value)Type:
Message(Google::Cloud::Dialogflow::V2::CesTool::CesToolSpec)Optional. List of CES tool specs that the generator can choose from.
$msg->ces_app_specs()/$msg->ces_app_specs($value)Type:
Message(Google::Cloud::Dialogflow::V2::CesApp::CesAppSpec)Optional. Deprecated: Use `ces_tool_specs` instead. List of CES app specs that the generator can choose from.
Google::Cloud::Dialogflow::V2::Generator::FreeFormSuggestion
Suggestion generated using free form generator.
Inherits from Protobuf::Message.
Accessors
$msg->response()/$msg->response($value)Type:
StringRequired. Free form suggestion.
Google::Cloud::Dialogflow::V2::Generator::SummarySuggestion
Suggested summary of the conversation.
Inherits from Protobuf::Message.
Accessors
$msg->summary_sections()/$msg->summary_sections($value)Type:
Message(Google::Cloud::Dialogflow::V2::Generator::SummarySuggestion::SummarySection)Required. All the parts of generated summary.
Google::Cloud::Dialogflow::V2::Generator::AgentCoachingSuggestion
Suggestion for coaching agents.
Inherits from Protobuf::Message.
Accessors
$msg->applicable_instructions()/$msg->applicable_instructions($value)Type:
Message(Google::Cloud::Dialogflow::V2::AgentCoachingInstruction::AgentCoachingInstruction)Optional. Instructions applicable based on the current context.
$msg->agent_action_suggestions()/$msg->agent_action_suggestions($value)Type:
Message(Google::Cloud::Dialogflow::V2::Generator::AgentCoachingSuggestion::AgentActionSuggestion)Optional. Suggested actions for the agent to take.
$msg->sample_responses()/$msg->sample_responses($value)Type:
Message(Google::Cloud::Dialogflow::V2::Generator::AgentCoachingSuggestion::SampleResponse)Optional. Sample response for the Agent.
Google::Cloud::Dialogflow::V2::Generator::GeneratorSuggestion
Suggestion generated using a Generator.
Inherits from Protobuf::Message.
Accessors
$msg->free_form_suggestion()/$msg->free_form_suggestion($value)Type:
Message(Google::Cloud::Dialogflow::V2::Generator::FreeFormSuggestion)Optional. Free form suggestion.
$msg->summary_suggestion()/$msg->summary_suggestion($value)Type:
Message(Google::Cloud::Dialogflow::V2::Generator::SummarySuggestion)Optional. Suggested summary.
$msg->agent_coaching_suggestion()/$msg->agent_coaching_suggestion($value)Type:
Message(Google::Cloud::Dialogflow::V2::Generator::AgentCoachingSuggestion)Optional. Suggestion to coach the agent.
$msg->tool_call_info()/$msg->tool_call_info($value)Type:
Message(Google::Cloud::Dialogflow::V2::Generator::GeneratorSuggestion::ToolCallInfo)Optional. List of request and response for tool calls executed.
Google::Cloud::Dialogflow::V2::Generator::SuggestionDedupingConfig
Config for suggestion deduping. NEXT_ID: 3
Inherits from Protobuf::Message.
Accessors
$msg->enable_deduping()/$msg->enable_deduping($value)Type:
BoolOptional. Whether to enable suggestion deduping.
$msg->similarity_threshold()/$msg->similarity_threshold($value)Type:
FloatOptional. The threshold for similarity between two suggestions. Acceptable value is [0.0, 1.0], default to 0.8
Google::Cloud::Dialogflow::V2::Generator::RaiSettings
Settings for Responsible AI checks.
Inherits from Protobuf::Message.
Accessors
$msg->rai_category_configs()/$msg->rai_category_configs($value)Type:
Message(Google::Cloud::Dialogflow::V2::Generator::RaiSettings::RaiCategoryConfig)Configuration for a set of RAI categories.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Dialogflow::V2::Generator::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.