Package com.google.genai.types
Class RagChunkPageSpan
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.RagChunkPageSpan
Represents where the chunk starts and ends in the document. This data type is not supported in
Gemini API.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for RagChunkPageSpan. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RagChunkPageSpan.Builderbuilder()Instantiates a builder for RagChunkPageSpan.Page where chunk starts in the document.static RagChunkPageSpanDeserializes a JSON string to a RagChunkPageSpan object.lastPage()Page where chunk ends in the document.abstract RagChunkPageSpan.BuilderCreates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
RagChunkPageSpan
public RagChunkPageSpan()
-
-
Method Details
-
firstPage
Page where chunk starts in the document. Inclusive. 1-indexed. -
lastPage
Page where chunk ends in the document. Inclusive. 1-indexed. -
builder
Instantiates a builder for RagChunkPageSpan. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a RagChunkPageSpan object.
-