Package com.google.genai.types
Class CreateCachedContentParameters
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.CreateCachedContentParameters
Parameters for caches.create method.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for CreateCachedContentParameters. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Instantiates a builder for CreateCachedContentParameters.abstract Optional<CreateCachedContentConfig>
config()
Configuration that contains optional parameters.Deserializes a JSON string to a CreateCachedContentParameters object.model()
ID of the model to use.Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
CreateCachedContentParameters
public CreateCachedContentParameters()
-
-
Method Details
-
model
ID of the model to use. Example: gemini-2.0-flash -
config
Configuration that contains optional parameters. -
builder
Instantiates a builder for CreateCachedContentParameters. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a CreateCachedContentParameters object.
-