Class CreateCachedContentConfig.Builder
-
- All Implemented Interfaces:
public abstract class CreateCachedContentConfig.BuilderBuilder for CreateCachedContentConfig.
-
-
Constructor Summary
Constructors Constructor Description CreateCachedContentConfig.Builder()
-
Method Summary
-
-
Method Detail
-
httpOptions
abstract CreateCachedContentConfig.Builder httpOptions(HttpOptions httpOptions)
Setter for httpOptions.
httpOptions: Used to override HTTP request options.
-
httpOptions
@CanIgnoreReturnValue() CreateCachedContentConfig.Builder httpOptions(HttpOptions.Builder httpOptionsBuilder)
Setter for httpOptions builder.
httpOptions: Used to override HTTP request options.
-
clearHttpOptions
@CanIgnoreReturnValue() CreateCachedContentConfig.Builder clearHttpOptions()
Clears the value of httpOptions field.
-
ttl
abstract CreateCachedContentConfig.Builder ttl(Duration ttl)
Setter for ttl.
ttl: The TTL for this resource. The expiration time is computed: now + TTL. It is a duration string, with up to nine fractional digits, terminated by 's'. Example: "3.5s".
-
clearTtl
@CanIgnoreReturnValue() CreateCachedContentConfig.Builder clearTtl()
Clears the value of ttl field.
-
expireTime
abstract CreateCachedContentConfig.Builder expireTime(Instant expireTime)
Setter for expireTime.
expireTime: Timestamp of when this resource is considered expired. Uses RFC 3339 format, Example: 2014-10-02T15:01:23Z.
-
clearExpireTime
@CanIgnoreReturnValue() CreateCachedContentConfig.Builder clearExpireTime()
Clears the value of expireTime field.
-
displayName
abstract CreateCachedContentConfig.Builder displayName(String displayName)
Setter for displayName.
displayName: The user-generated meaningful display name of the cached content.
-
clearDisplayName
@CanIgnoreReturnValue() CreateCachedContentConfig.Builder clearDisplayName()
Clears the value of displayName field.
-
contents
abstract CreateCachedContentConfig.Builder contents(List<Content> contents)
Setter for contents.
contents: The content to cache.
-
contents
@CanIgnoreReturnValue() CreateCachedContentConfig.Builder contents(Array<Content> contents)
Setter for contents.
contents: The content to cache.
-
contents
@CanIgnoreReturnValue() CreateCachedContentConfig.Builder contents(Array<Content.Builder> contentsBuilders)
Setter for contents builder.
contents: The content to cache.
-
clearContents
@CanIgnoreReturnValue() CreateCachedContentConfig.Builder clearContents()
Clears the value of contents field.
-
systemInstruction
abstract CreateCachedContentConfig.Builder systemInstruction(Content systemInstruction)
Setter for systemInstruction.
systemInstruction: Developer set system instruction.
-
systemInstruction
@CanIgnoreReturnValue() CreateCachedContentConfig.Builder systemInstruction(Content.Builder systemInstructionBuilder)
Setter for systemInstruction builder.
systemInstruction: Developer set system instruction.
-
clearSystemInstruction
@CanIgnoreReturnValue() CreateCachedContentConfig.Builder clearSystemInstruction()
Clears the value of systemInstruction field.
-
tools
abstract CreateCachedContentConfig.Builder tools(List<Tool> tools)
Setter for tools.
tools: A list of `Tools` the model may use to generate the next response.
-
tools
@CanIgnoreReturnValue() CreateCachedContentConfig.Builder tools(Array<Tool> tools)
Setter for tools.
tools: A list of `Tools` the model may use to generate the next response.
-
tools
@CanIgnoreReturnValue() CreateCachedContentConfig.Builder tools(Array<Tool.Builder> toolsBuilders)
Setter for tools builder.
tools: A list of `Tools` the model may use to generate the next response.
-
clearTools
@CanIgnoreReturnValue() CreateCachedContentConfig.Builder clearTools()
Clears the value of tools field.
-
toolConfig
abstract CreateCachedContentConfig.Builder toolConfig(ToolConfig toolConfig)
Setter for toolConfig.
toolConfig: Configuration for the tools to use. This config is shared for all tools.
-
toolConfig
@CanIgnoreReturnValue() CreateCachedContentConfig.Builder toolConfig(ToolConfig.Builder toolConfigBuilder)
Setter for toolConfig builder.
toolConfig: Configuration for the tools to use. This config is shared for all tools.
-
clearToolConfig
@CanIgnoreReturnValue() CreateCachedContentConfig.Builder clearToolConfig()
Clears the value of toolConfig field.
-
kmsKeyName
abstract CreateCachedContentConfig.Builder kmsKeyName(String kmsKeyName)
Setter for kmsKeyName.
kmsKeyName: The Cloud KMS resource identifier of the customer managed encryption key used to protect a resource. The key needs to be in the same region as where the compute resource is created. See https://cloud.google.com/vertex-ai/docs/general/cmek for more details. If this is set, then all created CachedContent objects will be encrypted with the provided encryption key. Allowed formats: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}
-
clearKmsKeyName
@CanIgnoreReturnValue() CreateCachedContentConfig.Builder clearKmsKeyName()
Clears the value of kmsKeyName field.
-
build
abstract CreateCachedContentConfig build()
-
-
-
-