Package com.google.genai.types
Class GroundingChunkRetrievedContext.Builder
java.lang.Object
com.google.genai.types.GroundingChunkRetrievedContext.Builder
- Enclosing class:
- GroundingChunkRetrievedContext
Builder for GroundingChunkRetrievedContext.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract GroundingChunkRetrievedContextbuild()Clears the value of documentName field.Clears the value of ragChunk field.Clears the value of text field.Clears the value of title field.clearUri()Clears the value of uri field.documentName(String documentName) Setter for documentName.Setter for ragChunk.ragChunk(RagChunk.Builder ragChunkBuilder) Setter for ragChunk builder.Setter for text.Setter for title.Setter for uri.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
documentName
Setter for documentName.documentName: Output only. The full document name for the referenced Vertex AI Search document.
-
clearDocumentName
Clears the value of documentName field. -
ragChunk
Setter for ragChunk.ragChunk: Additional context for the RAG retrieval result. This is only populated when using the RAG retrieval tool.
-
ragChunk
@CanIgnoreReturnValue public GroundingChunkRetrievedContext.Builder ragChunk(RagChunk.Builder ragChunkBuilder) Setter for ragChunk builder.ragChunk: Additional context for the RAG retrieval result. This is only populated when using the RAG retrieval tool.
-
clearRagChunk
Clears the value of ragChunk field. -
text
Setter for text.text: Text of the attribution.
-
clearText
Clears the value of text field. -
title
Setter for title.title: Title of the attribution.
-
clearTitle
Clears the value of title field. -
uri
Setter for uri.uri: URI reference of the attribution.
-
clearUri
Clears the value of uri field. -
build
-