Class CreateCachedContentConfig.Builder
- Enclosing class:
- CreateCachedContentConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract CreateCachedContentConfig
build()
Setter for contents.contents
(Content.Builder... contentsBuilders) Setter for contents builder.abstract CreateCachedContentConfig.Builder
Setter for contents.abstract CreateCachedContentConfig.Builder
displayName
(String displayName) Setter for displayName.abstract CreateCachedContentConfig.Builder
expireTime
(Instant expireTime) Setter for expireTime.abstract CreateCachedContentConfig.Builder
httpOptions
(HttpOptions httpOptions) Setter for httpOptions.httpOptions
(HttpOptions.Builder httpOptionsBuilder) Setter for httpOptions builder.abstract CreateCachedContentConfig.Builder
kmsKeyName
(String kmsKeyName) Setter for kmsKeyName.abstract CreateCachedContentConfig.Builder
systemInstruction
(Content systemInstruction) Setter for systemInstruction.systemInstruction
(Content.Builder systemInstructionBuilder) Setter for systemInstruction builder.abstract CreateCachedContentConfig.Builder
toolConfig
(ToolConfig toolConfig) Setter for toolConfig.toolConfig
(ToolConfig.Builder toolConfigBuilder) Setter for toolConfig builder.Setter for tools.tools
(Tool.Builder... toolsBuilders) Setter for tools builder.abstract CreateCachedContentConfig.Builder
Setter for tools.abstract CreateCachedContentConfig.Builder
Setter for ttl.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
httpOptions
Setter for httpOptions.httpOptions: Used to override HTTP request options.
-
httpOptions
Setter for httpOptions builder.httpOptions: Used to override HTTP request options.
-
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".
-
expireTime
Setter for expireTime.expireTime: Timestamp of when this resource is considered expired. Uses RFC 3339 format, Example: 2014-10-02T15:01:23Z.
-
displayName
Setter for displayName.displayName: The user-generated meaningful display name of the cached content.
-
contents
Setter for contents.contents: The content to cache.
-
contents
Setter for contents.contents: The content to cache.
-
contents
Setter for contents builder.contents: The content to cache.
-
systemInstruction
Setter for systemInstruction.systemInstruction: Developer set system instruction.
-
systemInstruction
public CreateCachedContentConfig.Builder systemInstruction(Content.Builder systemInstructionBuilder) Setter for systemInstruction builder.systemInstruction: Developer set system instruction.
-
tools
Setter for tools.tools: A list of `Tools` the model may use to generate the next response.
-
tools
Setter for tools.tools: A list of `Tools` the model may use to generate the next response.
-
tools
Setter for tools builder.tools: A list of `Tools` the model may use to generate the next response.
-
toolConfig
Setter for toolConfig.toolConfig: Configuration for the tools to use. This config is shared for all tools.
-
toolConfig
Setter for toolConfig builder.toolConfig: Configuration for the tools to use. This config is shared for all tools.
-
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}
-
build
-