Package com.google.genai.types
Class CreateCachedContentParameters
-
- All Implemented Interfaces:
@InternalApi() public abstract class CreateCachedContentParameters extends JsonSerializable
Parameters for caches.create method.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classCreateCachedContentParameters.BuilderBuilder for CreateCachedContentParameters.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description CreateCachedContentParameters()
-
Method Summary
Modifier and Type Method Description abstract Optional<String>model()ID of the model to use. abstract Optional<CreateCachedContentConfig>config()Configuration that contains optional parameters. static CreateCachedContentParameters.Builderbuilder()Instantiates a builder for CreateCachedContentParameters. abstract CreateCachedContentParameters.BuildertoBuilder()Creates a builder with the same values as this instance. static CreateCachedContentParametersfromJson(String jsonString)Deserializes a JSON string to a CreateCachedContentParameters object. -
Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
config
abstract Optional<CreateCachedContentConfig> config()
Configuration that contains optional parameters.
-
builder
static CreateCachedContentParameters.Builder builder()
Instantiates a builder for CreateCachedContentParameters.
-
toBuilder
abstract CreateCachedContentParameters.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static CreateCachedContentParameters fromJson(String jsonString)
Deserializes a JSON string to a CreateCachedContentParameters object.
-
-
-
-