Package com.google.genai.types
Class ChunkingConfig
-
- All Implemented Interfaces:
public abstract class ChunkingConfig extends JsonSerializable
Config for telling the service how to chunk the file.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classChunkingConfig.BuilderBuilder for ChunkingConfig.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description ChunkingConfig()
-
Method Summary
Modifier and Type Method Description abstract Optional<WhiteSpaceConfig>whiteSpaceConfig()White space chunking configuration. static ChunkingConfig.Builderbuilder()Instantiates a builder for ChunkingConfig. abstract ChunkingConfig.BuildertoBuilder()Creates a builder with the same values as this instance. static ChunkingConfigfromJson(String jsonString)Deserializes a JSON string to a ChunkingConfig 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
-
whiteSpaceConfig
abstract Optional<WhiteSpaceConfig> whiteSpaceConfig()
White space chunking configuration.
-
builder
static ChunkingConfig.Builder builder()
Instantiates a builder for ChunkingConfig.
-
toBuilder
abstract ChunkingConfig.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static ChunkingConfig fromJson(String jsonString)
Deserializes a JSON string to a ChunkingConfig object.
-
-
-
-