NAME
Google::Cloud::Ces::V1::Example - Compiled Protocol Buffers messages for google/cloud/ces/v1/example.proto
SYNOPSIS
use Google::Cloud::Ces::V1::Example;
my $msg = Google::Cloud::Ces::V1::Example::Example->new({
name => $name,
display_name => $display_name,
description => $description,
entry_agent => $entry_agent,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Ces::V1::Example::Example->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/ces/v1/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::Ces::V1::Example::Example
An example represents a sample conversation between the user and the agent(s).
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringIdentifier. The unique identifier of the example. Format: `projects/{project}/locations/{location}/apps/{app}/examples/{example}`
$msg->display_name()/$msg->display_name($value)Type:
StringRequired. Display name of the example.
$msg->description()/$msg->description($value)Type:
StringOptional. Human-readable description of the example.
$msg->entry_agent()/$msg->entry_agent($value)Type:
StringOptional. The agent that initially handles the conversation. If not specified, the example represents a conversation that is handled by the root agent. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
$msg->messages()/$msg->messages($value)Type:
Message(Google::Cloud::Ces::V1::Example::Message)Optional. The collection of messages that make up the conversation.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Timestamp when the example was created.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Timestamp when the example was last updated.
$msg->invalid()/$msg->invalid($value)Type:
BoolOutput only. The example may become invalid if referencing resources are deleted. Invalid examples will not be used as few-shot examples.
$msg->etag()/$msg->etag($value)Type:
StringEtag used to ensure the object hasn't changed during a read-modify-write operation. If the etag is empty, the update will overwrite any concurrent changes.
Google::Cloud::Ces::V1::Example::Message
A message within a conversation.
Inherits from Protobuf::Message.
Accessors
$msg->role()/$msg->role($value)Type:
StringOptional. The role within the conversation, e.g., user, agent.
$msg->chunks()/$msg->chunks($value)Type:
Message(Google::Cloud::Ces::V1::Example::Chunk)Optional. Content of the message as a series of chunks.
$msg->event_time()/$msg->event_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an [example][google.cloud.ces.v1.Example].
Google::Cloud::Ces::V1::Example::Chunk
A chunk of content within a message.
Inherits from Protobuf::Message.
Accessors
$msg->text()/$msg->text($value)Type:
StringOptional. Text data.
$msg->transcript()/$msg->transcript($value)Type:
StringOptional. Transcript associated with the audio.
$msg->blob()/$msg->blob($value)Type:
Message(Google::Cloud::Ces::V1::Example::Blob)Optional. Blob data.
$msg->payload()/$msg->payload($value)Type:
Message(Google::Protobuf::Struct::Struct)Optional. Custom payload data.
$msg->image()/$msg->image($value)Type:
Message(Google::Cloud::Ces::V1::Example::Image)Optional. Image data.
$msg->tool_call()/$msg->tool_call($value)Type:
Message(Google::Cloud::Ces::V1::Example::ToolCall)Optional. Tool execution request.
$msg->tool_response()/$msg->tool_response($value)Type:
Message(Google::Cloud::Ces::V1::Example::ToolResponse)Optional. Tool execution response.
$msg->agent_transfer()/$msg->agent_transfer($value)Type:
Message(Google::Cloud::Ces::V1::Example::AgentTransfer)Optional. Agent transfer event.
$msg->updated_variables()/$msg->updated_variables($value)Type:
Message(Google::Protobuf::Struct::Struct)A struct represents variables that were updated in the conversation, keyed by variable names.
$msg->default_variables()/$msg->default_variables($value)Type:
Message(Google::Protobuf::Struct::Struct)A struct represents default variables at the start of the conversation, keyed by variable names.
Google::Cloud::Ces::V1::Example::Blob
Represents a blob input or output in the conversation.
Inherits from Protobuf::Message.
Accessors
$msg->mime_type()/$msg->mime_type($value)Type:
StringRequired. The IANA standard MIME type of the source data.
$msg->data()/$msg->data($value)Type:
BytesRequired. Raw bytes of the blob.
Google::Cloud::Ces::V1::Example::Image
Represents an image input or output in the conversation.
Inherits from Protobuf::Message.
Accessors
$msg->mime_type()/$msg->mime_type($value)Type:
StringRequired. The IANA standard MIME type of the source data. Supported image types includes: * image/png * image/jpeg * image/webp
$msg->data()/$msg->data($value)Type:
BytesRequired. Raw bytes of the image.
Google::Cloud::Ces::V1::Example::ToolCall
Request for the client or the agent to execute the specified tool.
Inherits from Protobuf::Message.
Accessors
$msg->tool()/$msg->tool($value)Type:
StringOptional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
$msg->toolset_tool()/$msg->toolset_tool($value)Type:
Message(Google::Cloud::Ces::V1::ToolsetTool::ToolsetTool)Optional. The toolset tool to execute.
$msg->id()/$msg->id($value)Type:
StringOptional. The unique identifier of the tool call. If populated, the client should return the execution result with the matching ID in [ToolResponse][google.cloud.ces.v1.ToolResponse.id].
$msg->display_name()/$msg->display_name($value)Type:
StringOutput only. Display name of the tool.
$msg->args()/$msg->args($value)Type:
Message(Google::Protobuf::Struct::Struct)Optional. The input parameters and values for the tool in JSON object format.
Google::Cloud::Ces::V1::Example::ToolResponse
The execution result of a specific tool from the client or the agent.
Inherits from Protobuf::Message.
Accessors
$msg->tool()/$msg->tool($value)Type:
StringOptional. The name of the tool to execute. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
$msg->toolset_tool()/$msg->toolset_tool($value)Type:
Message(Google::Cloud::Ces::V1::ToolsetTool::ToolsetTool)Optional. The toolset tool that got executed.
$msg->id()/$msg->id($value)Type:
StringOptional. The matching ID of the [tool call][google.cloud.ces.v1.ToolCall] the response is for.
$msg->display_name()/$msg->display_name($value)Type:
StringOutput only. Display name of the tool.
$msg->response()/$msg->response($value)Type:
Message(Google::Protobuf::Struct::Struct)Required. The tool execution result in JSON object format. Use "output" key to specify tool response and "error" key to specify error details (if any). If "output" and "error" keys are not specified, then whole "response" is treated as tool execution result.
Google::Cloud::Ces::V1::Example::AgentTransfer
Represents an event indicating the transfer of a conversation to a different agent.
Inherits from Protobuf::Message.
Accessors
$msg->target_agent()/$msg->target_agent($value)Type:
StringRequired. The agent to which the conversation is being transferred. The agent will handle the conversation from this point forward. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
$msg->display_name()/$msg->display_name($value)Type:
StringOutput only. Display name of the agent.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Ces::V1::Example::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.