- 1.35.0 (latest)
- 1.34.0
- 1.33.0
- 1.32.1
- 1.31.0
- 1.30.0
- 1.26.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.1
- 1.12.0
- 1.11.0
- 1.10.0
- 1.9.0
- 1.8.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.0
- 1.0.0
- 0.39.0
- 0.38.0
- 0.37.1
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.26.2
- 0.25.0
- 0.24.0
- 0.23.0
- 0.22.0
- 0.21.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.13.0
- 0.12.0
- 0.11.1
- 0.10.0
Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class CachedContent.
A resource used in LLM queries for users to explicitly specify what to cache and how to cache.
Generated from protobuf message google.cloud.aiplatform.v1.CachedContent
Namespace
Google \ Cloud \ AIPlatform \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ expire_time
Google\Protobuf\Timestamp
Timestamp of when this resource is considered expired. This is always provided on output, regardless of what was sent on input.
↳ ttl
Google\Protobuf\Duration
Input only. The TTL for this resource. The expiration time is computed: now + TTL.
↳ name
string
Immutable. Identifier. The server-generated resource name of the cached content Format: projects/{project}/locations/{location}/cachedContents/{cached_content}
↳ display_name
string
Optional. Immutable. The user-generated meaningful display name of the cached content.
↳ model
string
Immutable. The name of the Model
to use for cached content. Currently, only the published Gemini base models are supported, in form of projects/{PROJECT}/locations/{LOCATION}/publishers/google/models/{MODEL}
↳ system_instruction
↳ contents
↳ tools
array< Tool
>
Optional. Input only. Immutable. A list of Tools
the model may use to generate the next response
↳ tool_config
↳ create_time
↳ update_time
↳ usage_metadata
↳ encryption_spec
EncryptionSpec
Input only. Immutable. Customer-managed encryption key spec for a CachedContent
. If set, this CachedContent
and all its sub-resources will be secured by this key.
getExpireTime
Timestamp of when this resource is considered expired.
This is always provided on output, regardless of what was sent on input.
hasExpireTime
setExpireTime
Timestamp of when this resource is considered expired.
This is always provided on output, regardless of what was sent on input.
$this
getTtl
Input only. The TTL for this resource. The expiration time is computed: now + TTL.
hasTtl
setTtl
Input only. The TTL for this resource. The expiration time is computed: now + TTL.
$this
getName
Immutable. Identifier. The server-generated resource name of the cached content Format: projects/{project}/locations/{location}/cachedContents/{cached_content}
string
setName
Immutable. Identifier. The server-generated resource name of the cached content Format: projects/{project}/locations/{location}/cachedContents/{cached_content}
var
string
$this
getDisplayName
Optional. Immutable. The user-generated meaningful display name of the cached content.
string
setDisplayName
Optional. Immutable. The user-generated meaningful display name of the cached content.
var
string
$this
getModel
Immutable. The name of the Model
to use for cached content. Currently,
only the published Gemini base models are supported, in form of
projects/{PROJECT}/locations/{LOCATION}/publishers/google/models/{MODEL}
string
setModel
Immutable. The name of the Model
to use for cached content. Currently,
only the published Gemini base models are supported, in form of
projects/{PROJECT}/locations/{LOCATION}/publishers/google/models/{MODEL}
var
string
$this
getSystemInstruction
Optional. Input only. Immutable. Developer set system instruction.
Currently, text only
hasSystemInstruction
clearSystemInstruction
setSystemInstruction
Optional. Input only. Immutable. Developer set system instruction.
Currently, text only
$this
getContents
Optional. Input only. Immutable. The content to cache
setContents
Optional. Input only. Immutable. The content to cache
$this
getTools
Optional. Input only. Immutable. A list of Tools
the model may use to
generate the next response
setTools
Optional. Input only. Immutable. A list of Tools
the model may use to
generate the next response
$this
getToolConfig
Optional. Input only. Immutable. Tool config. This config is shared for all tools
hasToolConfig
clearToolConfig
setToolConfig
Optional. Input only. Immutable. Tool config. This config is shared for all tools
$this
getCreateTime
Output only. Creation time of the cache entry.
hasCreateTime
clearCreateTime
setCreateTime
Output only. Creation time of the cache entry.
$this
getUpdateTime
Output only. When the cache entry was last updated in UTC time.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. When the cache entry was last updated in UTC time.
$this
getUsageMetadata
Output only. Metadata on the usage of the cached content.
hasUsageMetadata
clearUsageMetadata
setUsageMetadata
Output only. Metadata on the usage of the cached content.
$this
getEncryptionSpec
Input only. Immutable. Customer-managed encryption key spec for a CachedContent
. If set, this CachedContent
and all its sub-resources
will be secured by this key.
hasEncryptionSpec
clearEncryptionSpec
setEncryptionSpec
Input only. Immutable. Customer-managed encryption key spec for a CachedContent
. If set, this CachedContent
and all its sub-resources
will be secured by this key.
$this
getExpiration
string