Service Client: Google::Cloud::Dialogflow::Cx::V3::Example::ExamplesClient
Client stub representing the remote Examples 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::V3::Example - Compiled Protocol Buffers messages for google/cloud/dialogflow/cx/v3/example.proto
SYNOPSIS
use Google::Cloud::Dialogflow::Cx::V3::Example;
my $msg = Google::Cloud::Dialogflow::Cx::V3::Example::CreateExampleRequest->new({
parent => $parent,
example => $example,
});
# Read or update a field
my $val = $msg->parent();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Dialogflow::Cx::V3::Example::CreateExampleRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/dialogflow/cx/v3/example.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::Example::CreateExampleRequest
The request message for [Examples.CreateExample][google.cloud.dialogflow.cx.v3.Examples.CreateExample].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The playbook to create an example for. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
$msg->example()/$msg->example($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3::Example::Example)Required. The example to create.
Google::Cloud::Dialogflow::Cx::V3::Example::DeleteExampleRequest
The request message for [Examples.DeleteExample][google.cloud.dialogflow.cx.v3.Examples.DeleteExample].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the example to delete. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>/examples/<ExampleID>`.
Google::Cloud::Dialogflow::Cx::V3::Example::ListExamplesRequest
The request message for [Examples.ListExamples][google.cloud.dialogflow.cx.v3.Examples.ListExamples].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The playbook to list the examples from. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. 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:
StringOptional. The [next_page_token][ListExampleResponse.next_page_token] value returned from a previous list request.
$msg->language_code()/$msg->language_code($value)Type:
StringOptional. The language to list examples for. If not specified, list all examples under the playbook. Note: languages must be enabled in the agent before they can be used.
Google::Cloud::Dialogflow::Cx::V3::Example::ListExamplesResponse
The response message for [Examples.ListExamples][google.cloud.dialogflow.cx.v3.Examples.ListExamples].
Inherits from Protobuf::Message.
Accessors
$msg->examples()/$msg->examples($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3::Example::Example)The list of examples. There will be a maximum number of items returned based on the [page_size][google.cloud.dialogflow.cx.v3.ListExamplesRequest.page_size] field in the request.
$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::Cx::V3::Example::GetExampleRequest
The request message for [Examples.GetExample][google.cloud.dialogflow.cx.v3.Examples.GetExample].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the example. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>/examples/<ExampleID>`.
Google::Cloud::Dialogflow::Cx::V3::Example::UpdateExampleRequest
The request message for [Examples.UpdateExample][google.cloud.dialogflow.cx.v3.Examples.UpdateExample].
Inherits from Protobuf::Message.
Accessors
$msg->example()/$msg->example($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3::Example::Example)Required. The example to update.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Optional. The mask to control which fields get updated. If the mask is not present, all fields will be updated.
Google::Cloud::Dialogflow::Cx::V3::Example::Example
Example represents a sample execution of the playbook in the conversation.
An example consists of a list of ordered actions performed by end user or Dialogflow agent according the playbook instructions to fulfill the task.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringThe unique identifier of the playbook example. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>/examples/<ExampleID>`.
$msg->playbook_input()/$msg->playbook_input($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3::Trace::PlaybookInput)Optional. The input to the playbook in the example.
$msg->playbook_output()/$msg->playbook_output($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3::Trace::PlaybookOutput)Optional. The output of the playbook in the example.
$msg->actions()/$msg->actions($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3::Trace::Action)Required. The ordered list of actions performed by the end user and the Dialogflow agent.
$msg->display_name()/$msg->display_name($value)Type:
StringRequired. The display name of the example.
$msg->description()/$msg->description($value)Type:
StringOptional. The high level concise description of the example. The max number of characters is 200.
$msg->token_count()/$msg->token_count($value)Type:
Int64Output only. Estimated number of tokes current example takes when sent to the LLM.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The timestamp of initial example creation.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Last time the example was updated.
$msg->conversation_state()/$msg->conversation_state($value)Type:
Enum(Google::Cloud::Dialogflow::Cx::V3::OutputState)Required. Example's output state.
$msg->language_code()/$msg->language_code($value)Type:
StringOptional. The language code of the example. If not specified, the agent's default language is used. Note: languages must be enabled in the agent before they can be used. Note: example's language code is not currently used in dialogflow agents.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Dialogflow::Cx::V3::Example::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.