Package com.google.genai.types
Class RagChunk.Builder
java.lang.Object
com.google.genai.types.RagChunk.Builder
- Enclosing class:
- RagChunk
Builder for RagChunk.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract RagChunkbuild()abstract RagChunk.BuilderSetter for chunkId.Clears the value of chunkId field.Clears the value of fileId field.Clears the value of pageSpan field.Clears the value of text field.abstract RagChunk.BuilderSetter for fileId.abstract RagChunk.BuilderpageSpan(RagChunkPageSpan pageSpan) Setter for pageSpan.pageSpan(RagChunkPageSpan.Builder pageSpanBuilder) Setter for pageSpan builder.abstract RagChunk.BuilderSetter for text.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
pageSpan
Setter for pageSpan.pageSpan: If populated, represents where the chunk starts and ends in the document.
-
pageSpan
Setter for pageSpan builder.pageSpan: If populated, represents where the chunk starts and ends in the document.
-
clearPageSpan
Clears the value of pageSpan field. -
text
Setter for text.text: The content of the chunk.
-
clearText
Clears the value of text field. -
chunkId
Setter for chunkId.chunkId: The ID of the chunk.
-
clearChunkId
Clears the value of chunkId field. -
fileId
Setter for fileId.fileId: The ID of the file that the chunk belongs to.
-
clearFileId
Clears the value of fileId field. -
build
-