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()Clears the value of pageSpan field.Clears the value of text field.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. -
build
-