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: String

    Identifier. The unique identifier of the example. Format: `projects/{project}/locations/{location}/apps/{app}/examples/{example}`

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

    Type: String

    Required. Display name of the example.

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

    Type: String

    Optional. Human-readable description of the example.

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

    Type: String

    Optional. 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: Bool

    Output 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: String

    Etag 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: String

    Optional. 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

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: String

    Required. The IANA standard MIME type of the source data.

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

    Type: Bytes

    Required. 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: String

    Required. 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: Bytes

    Required. 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: String

    Optional. 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: String

    Optional. 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: String

    Output 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: String

    Optional. 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: String

    Optional. The matching ID of the [tool call][google.cloud.ces.v1.ToolCall] the response is for.

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

    Type: String

    Output 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: String

    Required. 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: String

    Output 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.