Package com.google.genai.types
Class ChunkingConfig
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.ChunkingConfig
Config for telling the service how to chunk the file.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ChunkingConfig.Builderbuilder()Instantiates a builder for ChunkingConfig.static ChunkingConfigDeserializes a JSON string to a ChunkingConfig object.abstract ChunkingConfig.BuilderCreates a builder with the same values as this instance.abstract Optional<WhiteSpaceConfig>White space chunking configuration.Methods inherited from class com.google.genai.JsonSerializable
setMaxReadLength, stringToJsonNode, toJson
-
Constructor Details
-
ChunkingConfig
public ChunkingConfig()
-
-
Method Details
-
whiteSpaceConfig
White space chunking configuration. -
builder
Instantiates a builder for ChunkingConfig. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a ChunkingConfig object.
-