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 resource name of the referenced Vertex AI Search document. This is used to identify the specific document that was retrieved. The format is `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`.
-
clearDocumentName
Clears the value of documentName field. -
ragChunk
Setter for ragChunk.ragChunk: Additional context for a Retrieval-Augmented Generation (RAG) retrieval result. This is populated only when the RAG retrieval tool is used.
-
ragChunk
@CanIgnoreReturnValue public GroundingChunkRetrievedContext.Builder ragChunk(RagChunk.Builder ragChunkBuilder) Setter for ragChunk builder.ragChunk: Additional context for a Retrieval-Augmented Generation (RAG) retrieval result. This is populated only when the RAG retrieval tool is used.
-
clearRagChunk
Clears the value of ragChunk field. -
text
Setter for text.text: The content of the retrieved data source.
-
clearText
Clears the value of text field. -
title
Setter for title.title: The title of the retrieved data source.
-
clearTitle
Clears the value of title field. -
uri
Setter for uri.uri: The URI of the retrieved data source.
-
clearUri
Clears the value of uri field. -
build
-