Class CreateCachedContentConfig.Builder
- Enclosing class:
- CreateCachedContentConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract CreateCachedContentConfigbuild()Clears the value of contents field.Clears the value of displayName field.Clears the value of expireTime field.Clears the value of httpOptions field.Clears the value of kmsKeyName field.Clears the value of systemInstruction field.Clears the value of toolConfig field.Clears the value of tools field.clearTtl()Clears the value of ttl field.Setter for contents.contents(Content.Builder... contentsBuilders) Setter for contents builder.abstract CreateCachedContentConfig.BuilderSetter for contents.abstract CreateCachedContentConfig.BuilderdisplayName(String displayName) Setter for displayName.abstract CreateCachedContentConfig.BuilderexpireTime(Instant expireTime) Setter for expireTime.abstract CreateCachedContentConfig.BuilderhttpOptions(HttpOptions httpOptions) Setter for httpOptions.httpOptions(HttpOptions.Builder httpOptionsBuilder) Setter for httpOptions builder.abstract CreateCachedContentConfig.BuilderkmsKeyName(String kmsKeyName) Setter for kmsKeyName.abstract CreateCachedContentConfig.BuildersystemInstruction(Content systemInstruction) Setter for systemInstruction.systemInstruction(Content.Builder systemInstructionBuilder) Setter for systemInstruction builder.abstract CreateCachedContentConfig.BuildertoolConfig(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.BuilderSetter for tools.abstract CreateCachedContentConfig.BuilderSetter for ttl.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
httpOptions
Setter for httpOptions.httpOptions: Used to override HTTP request options.
-
httpOptions
@CanIgnoreReturnValue public CreateCachedContentConfig.Builder httpOptions(HttpOptions.Builder httpOptionsBuilder) Setter for httpOptions builder.httpOptions: Used to override HTTP request options.
-
clearHttpOptions
Clears the value of httpOptions field. -
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
Clears the value of ttl field. -
expireTime
Setter for expireTime.expireTime: Timestamp of when this resource is considered expired. Uses RFC 3339 format, Example: 2014-10-02T15:01:23Z.
-
clearExpireTime
Clears the value of expireTime field. -
displayName
Setter for displayName.displayName: The user-generated meaningful display name of the cached content.
-
clearDisplayName
Clears the value of displayName field. -
contents
Setter for contents.contents: The content to cache.
-
contents
Setter for contents.contents: The content to cache.
-
contents
@CanIgnoreReturnValue public CreateCachedContentConfig.Builder contents(Content.Builder... contentsBuilders) Setter for contents builder.contents: The content to cache.
-
clearContents
Clears the value of contents field. -
systemInstruction
Setter for systemInstruction.systemInstruction: Developer set system instruction.
-
systemInstruction
@CanIgnoreReturnValue public CreateCachedContentConfig.Builder systemInstruction(Content.Builder systemInstructionBuilder) Setter for systemInstruction builder.systemInstruction: Developer set system instruction.
-
clearSystemInstruction
Clears the value of systemInstruction field. -
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.
-
clearTools
Clears the value of tools field. -
toolConfig
Setter for toolConfig.toolConfig: Configuration for the tools to use. This config is shared for all tools.
-
toolConfig
@CanIgnoreReturnValue public 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
Clears the value of toolConfig field. -
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
Clears the value of kmsKeyName field. -
build
-