NAME
Google::Ai::Generativelanguage::V1beta::CachedContent - Compiled Protocol Buffers messages for google/ai/generativelanguage/v1beta/cached_content.proto
SYNOPSIS
use Google::Ai::Generativelanguage::V1beta::CachedContent;
my $msg = Google::Ai::Generativelanguage::V1beta::CachedContent::CachedContent->new({
expire_time => $expire_time,
ttl => $ttl,
name => $name,
display_name => $display_name,
});
# Read or update a field
my $val = $msg->expire_time();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Ai::Generativelanguage::V1beta::CachedContent::CachedContent->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/ai/generativelanguage/v1beta/cached_content.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Ai::Generativelanguage::V1beta::CachedContent::CachedContent
Content that has been preprocessed and can be used in subsequent request to GenerativeService.
Cached content can be only used with model it was created for.
Inherits from Protobuf::Message.
Accessors
$msg->expire_time()/$msg->expire_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input.
$msg->ttl()/$msg->ttl($value)Type:
Message(Google::Protobuf::Duration::Duration)Input only. New TTL for this resource, input only.
$msg->name()/$msg->name($value)Type:
StringOutput only. Identifier. The resource name referring to the cached content. Format: `cachedContents/{id}`
$msg->display_name()/$msg->display_name($value)Type:
StringOptional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters.
$msg->model()/$msg->model($value)Type:
StringRequired. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`
$msg->system_instruction()/$msg->system_instruction($value)Type:
Message(Google::Ai::Generativelanguage::V1beta::Content::Content)Optional. Input only. Immutable. Developer set system instruction. Currently text only.
$msg->contents()/$msg->contents($value)Type:
Message(Google::Ai::Generativelanguage::V1beta::Content::Content)Optional. Input only. Immutable. The content to cache.
$msg->tools()/$msg->tools($value)Type:
Message(Google::Ai::Generativelanguage::V1beta::Content::Tool)Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response
$msg->tool_config()/$msg->tool_config($value)Type:
Message(Google::Ai::Generativelanguage::V1beta::Content::ToolConfig)Optional. Input only. Immutable. Tool config. This config is shared for all tools.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Creation time of the cache entry.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. When the cache entry was last updated in UTC time.
$msg->usage_metadata()/$msg->usage_metadata($value)Type:
Message(Google::Ai::Generativelanguage::V1beta::CachedContent::CachedContent::UsageMetadata)Output only. Metadata on the usage of the cached content.
SEE ALSO
Protobuf, Protobuf::Message, Google::Ai::Generativelanguage::V1beta::CachedContent::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.