Service Client: Google::Cloud::Dialogflow::V2::ConversationModel::ConversationModelsClient
Client stub representing the remote ConversationModels 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::ConversationModel - Compiled Protocol Buffers messages for google/cloud/dialogflow/v2/conversation_model.proto
SYNOPSIS
use Google::Cloud::Dialogflow::V2::ConversationModel;
my $msg = Google::Cloud::Dialogflow::V2::ConversationModel::ConversationModel->new({
name => $name,
display_name => $display_name,
create_time => $create_time,
datasets => $datasets,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Dialogflow::V2::ConversationModel::ConversationModel->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/dialogflow/v2/conversation_model.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::ConversationModel::ConversationModel
Represents a conversation model.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringConversationModel resource name. Format: `projects/<Project ID>/conversationModels/<Conversation Model ID>`
$msg->display_name()/$msg->display_name($value)Type:
StringRequired. The display name of the model. At most 64 bytes long.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Creation time of this model.
$msg->datasets()/$msg->datasets($value)Type:
Message(Google::Cloud::Dialogflow::V2::ConversationModel::InputDataset)Required. Datasets used to create model.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Dialogflow::V2::ConversationModel::State)Output only. State of the model. A model can only serve prediction requests after it gets deployed.
$msg->language_code()/$msg->language_code($value)Type:
StringLanguage code for the conversation model. If not specified, the language is en-US. Language at ConversationModel should be set for all non en-us languages. This should be a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example: "en-US".
$msg->article_suggestion_model_metadata()/$msg->article_suggestion_model_metadata($value)Type:
Message(Google::Cloud::Dialogflow::V2::ConversationModel::ArticleSuggestionModelMetadata)Metadata for article suggestion models.
$msg->smart_reply_model_metadata()/$msg->smart_reply_model_metadata($value)Type:
Message(Google::Cloud::Dialogflow::V2::ConversationModel::SmartReplyModelMetadata)Metadata for smart reply models.
$msg->satisfies_pzs()/$msg->satisfies_pzs($value)Type:
BoolOutput only. A read only boolean field reflecting Zone Separation status of the model.
$msg->satisfies_pzi()/$msg->satisfies_pzi($value)Type:
BoolOutput only. A read only boolean field reflecting Zone Isolation status of the model.
Enum: ConversationModel::State
STATE_UNSPECIFIED=>0CREATING=>1UNDEPLOYED=>2DEPLOYING=>3DEPLOYED=>4UNDEPLOYING=>5DELETING=>6FAILED=>7PENDING=>8
Enum: ConversationModel::ModelType
MODEL_TYPE_UNSPECIFIED=>0SMART_REPLY_DUAL_ENCODER_MODEL=>2SMART_REPLY_BERT_MODEL=>6
Google::Cloud::Dialogflow::V2::ConversationModel::ConversationModelEvaluation
Represents evaluation result of a conversation model.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringThe resource name of the evaluation. Format: `projects/<Project ID>/conversationModels/<Conversation Model ID>/evaluations/<Evaluation ID>`
$msg->display_name()/$msg->display_name($value)Type:
StringOptional. The display name of the model evaluation. At most 64 bytes long.
$msg->evaluation_config()/$msg->evaluation_config($value)Type:
Message(Google::Cloud::Dialogflow::V2::ConversationModel::EvaluationConfig)Optional. The configuration of the evaluation task.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Creation time of this model.
$msg->smart_reply_metrics()/$msg->smart_reply_metrics($value)Type:
Message(Google::Cloud::Dialogflow::V2::ConversationModel::SmartReplyMetrics)Output only. Only available when model is for smart reply.
$msg->raw_human_eval_template_csv()/$msg->raw_human_eval_template_csv($value)Type:
StringOutput only. Human eval template in csv format. It takes real-world conversations provided through input dataset, generates example suggestions for customer to verify quality of the model. For Smart Reply, the generated csv file contains columns of Context, (Suggestions,Q1,Q2)*3, Actual reply. Context contains at most 10 latest messages in the conversation prior to the current suggestion. Q1: "Would you send it as the next message of agent?" Evaluated based on whether the suggest is appropriate to be sent by agent in current context. Q2: "Does the suggestion move the conversation closer to resolution?" Evaluated based on whether the suggestion provide solutions, or answers customer's question or collect information from customer to resolve the customer's issue. Actual reply column contains the actual agent reply sent in the context.
Google::Cloud::Dialogflow::V2::ConversationModel::EvaluationConfig
The configuration for model evaluation.
Inherits from Protobuf::Message.
Accessors
$msg->datasets()/$msg->datasets($value)Type:
Message(Google::Cloud::Dialogflow::V2::ConversationModel::InputDataset)Required. Datasets used for evaluation.
$msg->smart_reply_config()/$msg->smart_reply_config($value)Type:
Message(Google::Cloud::Dialogflow::V2::ConversationModel::EvaluationConfig::SmartReplyConfig)Configuration for smart reply model evaluation.
$msg->smart_compose_config()/$msg->smart_compose_config($value)Type:
Message(Google::Cloud::Dialogflow::V2::ConversationModel::EvaluationConfig::SmartComposeConfig)Configuration for smart compose model evaluation.
Google::Cloud::Dialogflow::V2::ConversationModel::InputDataset
InputDataset used to create model or do evaluation. NextID:5
Inherits from Protobuf::Message.
Accessors
$msg->dataset()/$msg->dataset($value)Type:
StringRequired. ConversationDataset resource name. Format: `projects/<Project ID>/locations/<Location ID>/conversationDatasets/<Conversation Dataset ID>`
Google::Cloud::Dialogflow::V2::ConversationModel::ArticleSuggestionModelMetadata
Metadata for article suggestion models.
Inherits from Protobuf::Message.
Accessors
$msg->training_model_type()/$msg->training_model_type($value)Type:
Enum(Google::Cloud::Dialogflow::V2::ConversationModel::ModelType)Optional. Type of the article suggestion model. If not provided, model_type is used.
Google::Cloud::Dialogflow::V2::ConversationModel::SmartReplyModelMetadata
Metadata for smart reply models.
Inherits from Protobuf::Message.
Accessors
$msg->training_model_type()/$msg->training_model_type($value)Type:
Enum(Google::Cloud::Dialogflow::V2::ConversationModel::ModelType)Optional. Type of the smart reply model. If not provided, model_type is used.
Google::Cloud::Dialogflow::V2::ConversationModel::SmartReplyMetrics
The evaluation metrics for smart reply model.
Inherits from Protobuf::Message.
Accessors
$msg->allowlist_coverage()/$msg->allowlist_coverage($value)Type:
FloatPercentage of target participant messages in the evaluation dataset for which similar messages have appeared at least once in the allowlist. Should be [0, 1].
$msg->top_n_metrics()/$msg->top_n_metrics($value)Type:
Message(Google::Cloud::Dialogflow::V2::ConversationModel::SmartReplyMetrics::TopNMetrics)Metrics of top n smart replies, sorted by [TopNMetric.n][].
$msg->conversation_count()/$msg->conversation_count($value)Type:
Int64Total number of conversations used to generate this metric.
Google::Cloud::Dialogflow::V2::ConversationModel::CreateConversationModelRequest
The request message for [ConversationModels.CreateConversationModel][google.cloud.dialogflow.v2.ConversationModels.CreateConversationModel]
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringThe project to create conversation model for. Format: `projects/<Project ID>`
$msg->conversation_model()/$msg->conversation_model($value)Type:
Message(Google::Cloud::Dialogflow::V2::ConversationModel::ConversationModel)Required. The conversation model to create.
Google::Cloud::Dialogflow::V2::ConversationModel::GetConversationModelRequest
The request message for [ConversationModels.GetConversationModel][google.cloud.dialogflow.v2.ConversationModels.GetConversationModel]
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The conversation model to retrieve. Format: `projects/<Project ID>/conversationModels/<Conversation Model ID>`
Google::Cloud::Dialogflow::V2::ConversationModel::ListConversationModelsRequest
The request message for [ConversationModels.ListConversationModels][google.cloud.dialogflow.v2.ConversationModels.ListConversationModels]
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The project to list all conversation models for. Format: `projects/<Project ID>`
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. Maximum number of conversation models to return in a single page. By default 100 and at most 1000.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. The next_page_token value returned from a previous list request.
Google::Cloud::Dialogflow::V2::ConversationModel::ListConversationModelsResponse
The response message for [ConversationModels.ListConversationModels][google.cloud.dialogflow.v2.ConversationModels.ListConversationModels]
Inherits from Protobuf::Message.
Accessors
$msg->conversation_models()/$msg->conversation_models($value)Type:
Message(Google::Cloud::Dialogflow::V2::ConversationModel::ConversationModel)The list of models to return.
$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::ConversationModel::DeleteConversationModelRequest
The request message for [ConversationModels.DeleteConversationModel][google.cloud.dialogflow.v2.ConversationModels.DeleteConversationModel]
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The conversation model to delete. Format: `projects/<Project ID>/conversationModels/<Conversation Model ID>`
Google::Cloud::Dialogflow::V2::ConversationModel::DeployConversationModelRequest
The request message for [ConversationModels.DeployConversationModel][google.cloud.dialogflow.v2.ConversationModels.DeployConversationModel]
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The conversation model to deploy. Format: `projects/<Project ID>/conversationModels/<Conversation Model ID>`
Google::Cloud::Dialogflow::V2::ConversationModel::UndeployConversationModelRequest
The request message for [ConversationModels.UndeployConversationModel][google.cloud.dialogflow.v2.ConversationModels.UndeployConversationModel]
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The conversation model to undeploy. Format: `projects/<Project ID>/conversationModels/<Conversation Model ID>`
Google::Cloud::Dialogflow::V2::ConversationModel::GetConversationModelEvaluationRequest
The request message for [ConversationModels.GetConversationModelEvaluation][google.cloud.dialogflow.v2.ConversationModels.GetConversationModelEvaluation]
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The conversation model evaluation resource name. Format: `projects/<Project ID>/conversationModels/<Conversation Model ID>/evaluations/<Evaluation ID>`
Google::Cloud::Dialogflow::V2::ConversationModel::ListConversationModelEvaluationsRequest
The request message for [ConversationModels.ListConversationModelEvaluations][google.cloud.dialogflow.v2.ConversationModels.ListConversationModelEvaluations]
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The conversation model resource name. Format: `projects/<Project ID>/conversationModels/<Conversation Model ID>`
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. Maximum number of evaluations to return in a single page. By default 100 and at most 1000.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. The next_page_token value returned from a previous list request.
Google::Cloud::Dialogflow::V2::ConversationModel::ListConversationModelEvaluationsResponse
The response message for [ConversationModels.ListConversationModelEvaluations][google.cloud.dialogflow.v2.ConversationModels.ListConversationModelEvaluations]
Inherits from Protobuf::Message.
Accessors
$msg->conversation_model_evaluations()/$msg->conversation_model_evaluations($value)Type:
Message(Google::Cloud::Dialogflow::V2::ConversationModel::ConversationModelEvaluation)The list of evaluations to return.
$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::ConversationModel::CreateConversationModelEvaluationRequest
The request message for [ConversationModels.CreateConversationModelEvaluation][google.cloud.dialogflow.v2.ConversationModels.CreateConversationModelEvaluation]
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The conversation model resource name. Format: `projects/<Project ID>/locations/<Location ID>/conversationModels/<Conversation Model ID>`
$msg->conversation_model_evaluation()/$msg->conversation_model_evaluation($value)Type:
Message(Google::Cloud::Dialogflow::V2::ConversationModel::ConversationModelEvaluation)Required. The conversation model evaluation to be created.
Google::Cloud::Dialogflow::V2::ConversationModel::CreateConversationModelOperationMetadata
Metadata for a [ConversationModels.CreateConversationModel][google.cloud.dialogflow.v2.ConversationModels.CreateConversationModel] operation.
Inherits from Protobuf::Message.
Accessors
$msg->conversation_model()/$msg->conversation_model($value)Type:
StringThe resource name of the conversation model. Format: `projects/<Project ID>/conversationModels/<Conversation Model Id>`
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Dialogflow::V2::CreateConversationModelOperationMetadata::State)State of CreateConversationModel operation.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Timestamp when the request to create conversation model is submitted. The time is measured on server side.
$msg->done_time()/$msg->done_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The time when the operation finished.
Enum: CreateConversationModelOperationMetadata::State
STATE_UNSPECIFIED=>0PENDING=>1SUCCEEDED=>2FAILED=>3CANCELLED=>4CANCELLING=>5TRAINING=>6
Google::Cloud::Dialogflow::V2::ConversationModel::DeployConversationModelOperationMetadata
Metadata for a [ConversationModels.DeployConversationModel][google.cloud.dialogflow.v2.ConversationModels.DeployConversationModel] operation.
Inherits from Protobuf::Message.
Accessors
$msg->conversation_model()/$msg->conversation_model($value)Type:
StringThe resource name of the conversation model. Format: `projects/<Project ID>/conversationModels/<Conversation Model Id>`
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Timestamp when request to deploy conversation model was submitted. The time is measured on server side.
$msg->done_time()/$msg->done_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The time when the operation finished.
Google::Cloud::Dialogflow::V2::ConversationModel::UndeployConversationModelOperationMetadata
Metadata for a [ConversationModels.UndeployConversationModel][google.cloud.dialogflow.v2.ConversationModels.UndeployConversationModel] operation.
Inherits from Protobuf::Message.
Accessors
$msg->conversation_model()/$msg->conversation_model($value)Type:
StringThe resource name of the conversation model. Format: `projects/<Project ID>/conversationModels/<Conversation Model Id>`
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Timestamp when the request to undeploy conversation model was submitted. The time is measured on server side.
$msg->done_time()/$msg->done_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The time when the operation finished.
Google::Cloud::Dialogflow::V2::ConversationModel::DeleteConversationModelOperationMetadata
Metadata for a [ConversationModels.DeleteConversationModel][google.cloud.dialogflow.v2.ConversationModels.DeleteConversationModel] operation.
Inherits from Protobuf::Message.
Accessors
$msg->conversation_model()/$msg->conversation_model($value)Type:
StringThe resource name of the conversation model. Format: `projects/<Project ID>/conversationModels/<Conversation Model Id>`
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Timestamp when delete conversation model request was created. The time is measured on server side.
$msg->done_time()/$msg->done_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The time when the operation finished.
Google::Cloud::Dialogflow::V2::ConversationModel::CreateConversationModelEvaluationOperationMetadata
Metadata for a [ConversationModels.CreateConversationModelEvaluation][google.cloud.dialogflow.v2.ConversationModels.CreateConversationModelEvaluation] operation.
Inherits from Protobuf::Message.
Accessors
$msg->conversation_model_evaluation()/$msg->conversation_model_evaluation($value)Type:
StringThe resource name of the conversation model. Format: `projects/<Project ID>/locations/<Location ID>/conversationModels/<Conversation Model Id>/evaluations/<Evaluation Id>`
$msg->conversation_model()/$msg->conversation_model($value)Type:
StringThe resource name of the conversation model. Format: `projects/<Project ID>/locations/<Location ID>/conversationModels/<Conversation Model Id>`
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Dialogflow::V2::CreateConversationModelEvaluationOperationMetadata::State)State of CreateConversationModel operation.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Timestamp when the request to create conversation model was submitted. The time is measured on server side.
Enum: CreateConversationModelEvaluationOperationMetadata::State
STATE_UNSPECIFIED=>0INITIALIZING=>1RUNNING=>2CANCELLED=>3SUCCEEDED=>4FAILED=>5
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Dialogflow::V2::ConversationModel::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.