Service Client: Google::Ai::Generativelanguage::V1beta::CacheService::CacheServiceClient
Client stub representing the remote CacheService gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to ai.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Ai::Generativelanguage::V1beta::CacheService - Compiled Protocol Buffers messages for google/ai/generativelanguage/v1beta/cache_service.proto
SYNOPSIS
use Google::Ai::Generativelanguage::V1beta::CacheService;
my $msg = Google::Ai::Generativelanguage::V1beta::CacheService::ListCachedContentsRequest->new({
page_size => $page_size,
page_token => $page_token,
});
# Read or update a field
my $val = $msg->page_size();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Ai::Generativelanguage::V1beta::CacheService::ListCachedContentsRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/ai/generativelanguage/v1beta/cache_service.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::CacheService::ListCachedContentsRequest
Request to list CachedContents.
Inherits from Protobuf::Message.
Accessors
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. The maximum number of cached contents to return. The service may return fewer than this value. If unspecified, some default (under maximum) number of items will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. A page token, received from a previous `ListCachedContents` call. Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to `ListCachedContents` must match the call that provided the page token.
Google::Ai::Generativelanguage::V1beta::CacheService::ListCachedContentsResponse
Response with CachedContents list.
Inherits from Protobuf::Message.
Accessors
$msg->cached_contents()/$msg->cached_contents($value)Type:
Message(Google::Ai::Generativelanguage::V1beta::CachedContent::CachedContent)List of cached contents.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
Google::Ai::Generativelanguage::V1beta::CacheService::CreateCachedContentRequest
Request to create CachedContent.
Inherits from Protobuf::Message.
Accessors
$msg->cached_content()/$msg->cached_content($value)Type:
Message(Google::Ai::Generativelanguage::V1beta::CachedContent::CachedContent)Required. The cached content to create.
Google::Ai::Generativelanguage::V1beta::CacheService::GetCachedContentRequest
Request to read CachedContent.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name referring to the content cache entry. Format: `cachedContents/{id}`
Google::Ai::Generativelanguage::V1beta::CacheService::UpdateCachedContentRequest
Request to update CachedContent.
Inherits from Protobuf::Message.
Accessors
$msg->cached_content()/$msg->cached_content($value)Type:
Message(Google::Ai::Generativelanguage::V1beta::CachedContent::CachedContent)Required. The content cache entry to update
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)The list of fields to update.
Google::Ai::Generativelanguage::V1beta::CacheService::DeleteCachedContentRequest
Request to delete CachedContent.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name referring to the content cache entry Format: `cachedContents/{id}`
SEE ALSO
Protobuf, Protobuf::Message, Google::Ai::Generativelanguage::V1beta::CacheService::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.