Class GroundingChunkRetrievedContext.Builder
- Enclosing class:
- GroundingChunkRetrievedContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract GroundingChunkRetrievedContextbuild()Clears the value of customMetadata field.Clears the value of documentName field.Clears the value of fileSearchStore 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.customMetadata(GroundingChunkCustomMetadata... customMetadata) Setter for customMetadata.customMetadata(GroundingChunkCustomMetadata.Builder... customMetadataBuilders) Setter for customMetadata builder.customMetadata(List<GroundingChunkCustomMetadata> customMetadata) Setter for customMetadata.documentName(String documentName) Setter for documentName.fileSearchStore(String fileSearchStore) Setter for fileSearchStore.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}`. This field is not supported in Gemini API.
-
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. This field is not supported in Gemini API.
-
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. This field is not supported in Gemini API.
-
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. -
customMetadata
public abstract GroundingChunkRetrievedContext.Builder customMetadata(List<GroundingChunkCustomMetadata> customMetadata) Setter for customMetadata.customMetadata: Optional. User-provided metadata about the retrieved context. This field is not supported in Vertex AI.
-
customMetadata
@CanIgnoreReturnValue public GroundingChunkRetrievedContext.Builder customMetadata(GroundingChunkCustomMetadata... customMetadata) Setter for customMetadata.customMetadata: Optional. User-provided metadata about the retrieved context. This field is not supported in Vertex AI.
-
customMetadata
@CanIgnoreReturnValue public GroundingChunkRetrievedContext.Builder customMetadata(GroundingChunkCustomMetadata.Builder... customMetadataBuilders) Setter for customMetadata builder.customMetadata: Optional. User-provided metadata about the retrieved context. This field is not supported in Vertex AI.
-
clearCustomMetadata
Clears the value of customMetadata field. -
fileSearchStore
Setter for fileSearchStore.fileSearchStore: Optional. Name of the `FileSearchStore` containing the document. Example: `fileSearchStores/123`. This field is not supported in Vertex AI.
-
clearFileSearchStore
Clears the value of fileSearchStore field. -
build
-